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/misc.ab

    r635 r698  
    3737
    3838Enum FontStyle
    39 /*
    4039    Regular = 0
    4140    Bold = 1
    4241    Italic = 2
    4342    Strikeout = 4
    44     Underline  = 8
    45 */
     43    Underline = 8
    4644End Enum
    4745
     46Enum TextRenderingHint
     47    TextRenderingHintSystemDefault = 0
     48    TextRenderingHintSingleBitPerPixelGridFit
     49    TextRenderingHintSingleBitPerPixel
     50    TextRenderingHintAntiAliasGridFit
     51    TextRenderingHintAntiAlias
     52    TextRenderingHintClearTypeGridFit
     53End Enum
     54
     55Enum MetafileFrameUnit
     56    Pixel      = 2
     57    Point      = 3
     58    Inch       = 4
     59    Document   = 5
     60    Millimeter = 6
     61    Gdi
     62End Enum
     63
     64Namespace Detail
     65    Sub ThrowGdiplusException(status As Status)
     66        Select Case status
     67            Case Ok
     68                Exit Sub
     69'           Case OutOfMemory
     70'               Throw New System.OutOfMemroyException("GDI+")
     71            Case NotImplemented
     72                Throw New System.NotImplementedException("GDI+")
     73'           Case FileNotFoundException
     74'               Throw New System.IO.FileNotFoundException("GDI+")
     75            Case Else
     76                Throw New System.Exception("GDI+")
     77        End Select
     78    End Sub
     79End Namespace
     80
     81Sub SetStatus(status As Status)
     82    Detail.ThrowGdiplusException(status)
     83End Sub
    4884
    4985End Namespace
Note: See TracChangeset for help on using the changeset viewer.