Ignore:
Timestamp:
Mar 31, 2009, 2:09:07 PM (15 years ago)
Author:
イグトランス (egtra)
Message:

GDI+をコンパイルできるように修正。FontFamily, Penの追加。サンプルとして、Step 32のGDI+版を制作。
(#56)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/ablib/src/Classes/System/Drawing/Imaging/MetafileHeader.ab

    r635 r698  
    4646Const GDIP_EMFPLUSFLAGS_DISPLAY      = &h00000001
    4747
    48 Class MetafileHeader
    49 Private
     48Type MetafileHeader
    5049    mfType As MetafileType
    5150    Size As DWord
     
    6564    logicalDpiX As Long
    6665    logicalDpiY As Long
     66/*
    6767Public
    6868    Function MetafileType() As MetafileType
     
    9191
    9292    Function Bounds() As Rectangle
    93         Dim r(X, Y, Width, Height)
    94         Return r
     93        Bounds.X = X
     94        Bounds.Y = Y
     95        Bounds.Width = Width
     96        Bounds.Height = Height
    9597    End Function
    9698
     
    127129    End Function
    128130
    129     Function IsEmfPlusOnly() As BOOL /*const*/
     131    Function IsEmfPlusOnly() As BOOL
    130132        IsEmfPlusOnly = (mfType = MetafileTypeEmfPlusOnly)
    131133    End Function
     
    133135    Function IsDisplay() As BOOL
    134136        If IsEmfPlus() <> FALSE And ((EmfPlusFlags And GDIP_EMFPLUSFLAGS_DISPLAY) <> 0) Then
    135             IsDisplay = _System_TRUE
     137            IsDisplay = TRUE
    136138        Else
    137             IsDisplay = _System_FALSE
     139            IsDisplay = FALSE
     140        End If
    138141    End Function
    139142
     
    146149    End Function
    147150
    148     Function GetEmfHeader() As * /*const*/ ENHMETAHEADER3 /*const*/
     151    Function GetEmfHeader() As *ENHMETAHEADER3
    149152        If IsEmfOrEmfPlus() Then
    150153            Return VarPtr(EmfHeader) 'VarPtr(WmfHeader)
     
    153156        End If
    154157    End Function
    155 End Class
     158*/
     159End Type
    156160
    157161End Namespace
Note: See TracChangeset for help on using the changeset viewer.