home *** CD-ROM | disk | FTP | other *** search
/ The Houseplan Collection / HRCD2005.ISO / data1.cab / Zusatz / 3DS / DATA2.Z / Bild.frm < prev    next >
Text File  |  1999-01-23  |  8KB  |  251 lines

  1. VERSION 5.00
  2. Begin VB.Form Bild 
  3.    Caption         =   "Bildspeichereinstellungen"
  4.    ClientHeight    =   4515
  5.    ClientLeft      =   60
  6.    ClientTop       =   345
  7.    ClientWidth     =   6810
  8.    LinkTopic       =   "Form1"
  9.    ScaleHeight     =   4515
  10.    ScaleWidth      =   6810
  11.    StartUpPosition =   3  'Windows Default
  12.    Begin VB.Frame Frame3 
  13.       Caption         =   "Abmessung:"
  14.       Height          =   1215
  15.       Left            =   120
  16.       TabIndex        =   11
  17.       Top             =   2520
  18.       Width           =   6495
  19.       Begin VB.TextBox pixHeight 
  20.          Height          =   375
  21.          Left            =   4800
  22.          TabIndex        =   18
  23.          Text            =   "Text1"
  24.          Top             =   720
  25.          Width           =   1575
  26.       End
  27.       Begin VB.TextBox pixWidth 
  28.          Height          =   375
  29.          Left            =   1320
  30.          TabIndex        =   16
  31.          Text            =   "Text1"
  32.          Top             =   720
  33.          Width           =   1695
  34.       End
  35.       Begin VB.OptionButton freeSize 
  36.          Caption         =   "beliebig"
  37.          Height          =   375
  38.          Left            =   4920
  39.          TabIndex        =   14
  40.          Top             =   240
  41.          Width           =   1455
  42.       End
  43.       Begin VB.OptionButton linAsView 
  44.          Caption         =   "beliebig, SeitenverhΣltnis wie Darstellung"
  45.          Height          =   375
  46.          Left            =   2160
  47.          TabIndex        =   13
  48.          Top             =   240
  49.          Width           =   2175
  50.       End
  51.       Begin VB.OptionButton asView 
  52.          Caption         =   "Wie Darstellung"
  53.          Height          =   375
  54.          Left            =   120
  55.          TabIndex        =   12
  56.          Top             =   240
  57.          Width           =   1455
  58.       End
  59.       Begin VB.Label Label3 
  60.          Caption         =   "H÷he:"
  61.          Height          =   375
  62.          Left            =   3600
  63.          TabIndex        =   17
  64.          Top             =   720
  65.          Width           =   975
  66.       End
  67.       Begin VB.Label Label2 
  68.          Caption         =   "Breite:"
  69.          Height          =   375
  70.          Left            =   240
  71.          TabIndex        =   15
  72.          Top             =   720
  73.          Width           =   975
  74.       End
  75.    End
  76.    Begin VB.ComboBox Oversampling 
  77.       Height          =   315
  78.       Left            =   2040
  79.       TabIndex        =   10
  80.       Text            =   "Combo1"
  81.       Top             =   2040
  82.       Width           =   4575
  83.    End
  84.    Begin VB.CheckBox Raytrace 
  85.       Caption         =   "Raytracen"
  86.       Height          =   375
  87.       Left            =   3480
  88.       TabIndex        =   8
  89.       Top             =   1560
  90.       Width           =   3135
  91.    End
  92.    Begin VB.CheckBox AntiAliasing 
  93.       Caption         =   "Kantenfilter"
  94.       Height          =   375
  95.       Left            =   120
  96.       TabIndex        =   7
  97.       Top             =   1560
  98.       Width           =   3135
  99.    End
  100.    Begin VB.Frame Frame2 
  101.       Caption         =   "Farbtiefe:"
  102.       Height          =   615
  103.       Left            =   120
  104.       TabIndex        =   4
  105.       Top             =   840
  106.       Width           =   6495
  107.       Begin VB.OptionButton TrueColor 
  108.          Caption         =   "16,7 Millionen Farben"
  109.          Height          =   255
  110.          Left            =   3360
  111.          TabIndex        =   6
  112.          Top             =   240
  113.          Width           =   2895
  114.       End
  115.       Begin VB.OptionButton ColIndex 
  116.          Caption         =   "256 Farben"
  117.          Height          =   255
  118.          Left            =   120
  119.          TabIndex        =   5
  120.          Top             =   240
  121.          Width           =   2415
  122.       End
  123.    End
  124.    Begin VB.Frame Frame1 
  125.       Caption         =   "Bildformat:"
  126.       Height          =   615
  127.       Left            =   120
  128.       TabIndex        =   1
  129.       Top             =   120
  130.       Width           =   6495
  131.       Begin VB.OptionButton BMP 
  132.          Caption         =   "Als BMP Datei"
  133.          Height          =   255
  134.          Left            =   3360
  135.          TabIndex        =   3
  136.          Top             =   240
  137.          Width           =   2895
  138.       End
  139.       Begin VB.OptionButton WMF 
  140.          Caption         =   "Als WMF Datei"
  141.          Height          =   255
  142.          Left            =   120
  143.          TabIndex        =   2
  144.          Top             =   240
  145.          Width           =   1935
  146.       End
  147.    End
  148.    Begin VB.CommandButton OK 
  149.       Caption         =   "&OK"
  150.       Default         =   -1  'True
  151.       Height          =   375
  152.       Left            =   2880
  153.       TabIndex        =   0
  154.       Top             =   4080
  155.       Width           =   1335
  156.    End
  157.    Begin VB.Label Label1 
  158.       Caption         =   "Oversampling:"
  159.       Height          =   375
  160.       Left            =   120
  161.       TabIndex        =   9
  162.       Top             =   2040
  163.       Width           =   1695
  164.    End
  165. End
  166. Attribute VB_Name = "Bild"
  167. Attribute VB_GlobalNameSpace = False
  168. Attribute VB_Creatable = False
  169. Attribute VB_PredeclaredId = True
  170. Attribute VB_Exposed = False
  171. Option Explicit
  172.  
  173. Private s As ArCon.SavePictureSettings  ' nur gⁿltig, wΣhrend der Dialog
  174.                                         ' offen ist
  175.  
  176. Private Sub Form_Load()
  177.     Set s = Settings.exe.TheSavePictureSettings
  178.     WMF.Value = s.WMF
  179.     BMP.Value = Not s.WMF
  180.     TrueColor.Value = s.TrueColor
  181.     If s.AntiAliasing Then
  182.         AntiAliasing.Value = 1
  183.     Else
  184.         AntiAliasing.Value = 0
  185.     End If
  186.     If s.Raytrace Then
  187.         Raytrace.Value = 1
  188.     Else
  189.         Raytrace.Value = 0
  190.     End If
  191.     
  192.     Dim i As Integer, o As Long
  193.     o = s.Oversampling
  194.     Oversampling.AddItem "ohne"
  195.     Oversampling.ItemData(Oversampling.NewIndex) = OVERSAMPLING_None
  196.     Oversampling.AddItem "4 fach"
  197.     Oversampling.ItemData(Oversampling.NewIndex) = OVERSAMPLING_4X
  198.     Oversampling.AddItem "9 fach"
  199.     Oversampling.ItemData(Oversampling.NewIndex) = OVERSAMPLING_9X
  200.     Oversampling.AddItem "16 fach"
  201.     Oversampling.ItemData(Oversampling.NewIndex) = OVERSAMPLING_16X
  202.     For i = 0 To Oversampling.ListCount
  203.         If Oversampling.ItemData(i) = o Then
  204.             Oversampling.ListIndex = i
  205.             Exit For
  206.         End If
  207.     Next
  208.     If s.Size = SAVEPICSIZE_WieAnsicht Then
  209.         asView.Value = True
  210.         linAsView.Value = False
  211.         freeSize = False
  212.     ElseIf s.Size = SAVEPICSIZE_FreiRatioWieAnsicht Then
  213.         asView.Value = False
  214.         linAsView.Value = True
  215.         freeSize = False
  216.     Else
  217.         asView.Value = False
  218.         linAsView.Value = False
  219.         freeSize = True
  220.     End If
  221.     pixWidth.Text = CStr(s.Width)
  222.     pixHeight.Text = CStr(s.Height)
  223. End Sub
  224.  
  225. Private Sub Form_Unload(Cancel As Integer)
  226.     ' Es ist wichtig sicherzustellen, da▀ beim Beenden von
  227.     ' ArCon keine Referenzen auf globale Einstellungen mehr
  228.     ' existieren. Dies ist eine sehr einfache M÷glichkeit,
  229.     ' das zu erreichen. Wir brauchen das Objekte nun sowiso
  230.     ' nicht mehr...
  231.     Set s = Nothing
  232. End Sub
  233.  
  234. Private Sub OK_Click()
  235.     s.WMF = WMF.Value
  236.     s.TrueColor = TrueColor.Value
  237.     s.AntiAliasing = AntiAliasing.Value <> 0
  238.     s.Raytrace = Raytrace.Value <> 0
  239.     s.Oversampling = Oversampling.ItemData(Oversampling.ListIndex)
  240.     If asView.Value Then
  241.         s.Size = SAVEPICSIZE_WieAnsicht
  242.     ElseIf linAsView.Value Then
  243.         s.Size = SAVEPICSIZE_FreiRatioWieAnsicht
  244.     Else
  245.         s.Size = SAVEPICSIZE_Frei
  246.     End If
  247.     s.Width = CSng(pixWidth.Text)
  248.     s.Height = CSng(pixHeight.Text)
  249.     Unload Me
  250. End Sub
  251.