Rev | Line | |
---|
[11] | 1 | ' Classes/System/Drawing/misc.ab
|
---|
| 2 |
|
---|
[635] | 3 | Namespace System
|
---|
| 4 | Namespace Drawing
|
---|
[11] | 5 |
|
---|
| 6 | Enum RotateFlipType
|
---|
| 7 | RotateNoneFlipNone = 0
|
---|
| 8 | Rotate90FlipNone = 1
|
---|
| 9 | Rotate180FlipNone = 2
|
---|
| 10 | Rotate270FlipNone = 3
|
---|
| 11 |
|
---|
| 12 | RotateNoneFlipX = 4
|
---|
| 13 | Rotate90FlipX = 5
|
---|
| 14 | Rotate180FlipX = 6
|
---|
| 15 | Rotate270FlipX = 7
|
---|
| 16 |
|
---|
| 17 | RotateNoneFlipY = 6
|
---|
| 18 | Rotate90FlipY = 7
|
---|
| 19 | Rotate180FlipY = 4
|
---|
| 20 | Rotate270FlipY = 5
|
---|
| 21 |
|
---|
| 22 | RotateNoneFlipXY = 2
|
---|
| 23 | Rotate90FlipXY = 3
|
---|
| 24 | Rotate180FlipXY = 0
|
---|
| 25 | Rotate270FlipXY = 1
|
---|
| 26 | End Enum
|
---|
| 27 |
|
---|
[104] | 28 | Enum GraphicsUnit
|
---|
[33] | 29 | World ' 0
|
---|
| 30 | Display ' 1
|
---|
| 31 | Pixel ' 2
|
---|
| 32 | Point ' 3
|
---|
| 33 | Inch ' 4
|
---|
| 34 | Document ' 5
|
---|
| 35 | Millimeter ' 6
|
---|
| 36 | End Enum
|
---|
| 37 |
|
---|
[137] | 38 | Enum FontStyle
|
---|
| 39 | Regular = 0
|
---|
| 40 | Bold = 1
|
---|
| 41 | Italic = 2
|
---|
| 42 | Strikeout = 4
|
---|
[698] | 43 | Underline = 8
|
---|
[137] | 44 | End Enum
|
---|
| 45 |
|
---|
[698] | 46 | Enum TextRenderingHint
|
---|
| 47 | TextRenderingHintSystemDefault = 0
|
---|
| 48 | TextRenderingHintSingleBitPerPixelGridFit
|
---|
| 49 | TextRenderingHintSingleBitPerPixel
|
---|
| 50 | TextRenderingHintAntiAliasGridFit
|
---|
| 51 | TextRenderingHintAntiAlias
|
---|
| 52 | TextRenderingHintClearTypeGridFit
|
---|
| 53 | End Enum
|
---|
[137] | 54 |
|
---|
[698] | 55 | Enum MetafileFrameUnit
|
---|
| 56 | Pixel = 2
|
---|
| 57 | Point = 3
|
---|
| 58 | Inch = 4
|
---|
| 59 | Document = 5
|
---|
| 60 | Millimeter = 6
|
---|
| 61 | Gdi
|
---|
| 62 | End Enum
|
---|
| 63 |
|
---|
[700] | 64 | Enum StringFormatFlags
|
---|
| 65 | DirectionRightToLeft = &h00000001
|
---|
| 66 | DirectionVertical = &h00000002
|
---|
| 67 | NoFitBlackBox = &h00000004
|
---|
| 68 | DisplayFormatControl = &h00000020
|
---|
| 69 | NoFontFallback = &h00000400
|
---|
| 70 | MeasureTrailingSpaces = &h00000800
|
---|
| 71 | NoWrap = &h00001000
|
---|
| 72 | LineLimit = &h00002000
|
---|
| 73 | NoClip = &h00004000
|
---|
| 74 | End Enum
|
---|
| 75 |
|
---|
| 76 | Enum StringTrimming
|
---|
| 77 | None = 0
|
---|
| 78 | Character = 1
|
---|
| 79 | Word_ = 2
|
---|
| 80 | EllipsisCharacter = 3
|
---|
| 81 | EllipsisWord = 4
|
---|
| 82 | EllipsisPath = 5
|
---|
| 83 | End Enum
|
---|
| 84 |
|
---|
| 85 | Enum StringDigitSubstitute
|
---|
| 86 | User = 0
|
---|
| 87 | None = 1
|
---|
| 88 | National = 2
|
---|
| 89 | Traditional = 3
|
---|
| 90 | End Enum
|
---|
| 91 |
|
---|
| 92 | Enum StringAlignment
|
---|
| 93 | Near = 0
|
---|
| 94 | Center = 1
|
---|
| 95 | Far = 2
|
---|
| 96 | End Enum
|
---|
| 97 |
|
---|
[698] | 98 | Namespace Detail
|
---|
| 99 | Sub ThrowGdiplusException(status As Status)
|
---|
| 100 | Select Case status
|
---|
| 101 | Case Ok
|
---|
| 102 | Exit Sub
|
---|
| 103 | ' Case OutOfMemory
|
---|
| 104 | ' Throw New System.OutOfMemroyException("GDI+")
|
---|
| 105 | Case NotImplemented
|
---|
| 106 | Throw New System.NotImplementedException("GDI+")
|
---|
| 107 | ' Case FileNotFoundException
|
---|
| 108 | ' Throw New System.IO.FileNotFoundException("GDI+")
|
---|
| 109 | Case Else
|
---|
| 110 | Throw New System.Exception("GDI+")
|
---|
| 111 | End Select
|
---|
| 112 | End Sub
|
---|
[635] | 113 | End Namespace
|
---|
[698] | 114 |
|
---|
| 115 | Sub SetStatus(status As Status)
|
---|
| 116 | Detail.ThrowGdiplusException(status)
|
---|
| 117 | End Sub
|
---|
| 118 |
|
---|
[635] | 119 | End Namespace
|
---|
[698] | 120 | End Namespace
|
---|
Note:
See
TracBrowser
for help on using the repository browser.