Attribute VB_Name = "sGdipShared_UDT"
Option Explicit

'Shared sGdip/cFontManager
Public BaseAppPath$ ' Set from Project to resolve relative pathsx

Public Enum eSB_Img_Effect
    eSB_IFX_None = 0
    eSB_IFX_Greyscale = 1
    eSB_IFX_GreyscaleDark = 2
    eSB_IFX_GreyscaleLight = 3
    eSB_IFX_Inverted = 4
    eSB_IFX_BW1 = 5
    eSB_IFX_BW2 = 6
    eSB_IFX_BW3 = 7
    eSB_IFX_Darker = 8
    eSB_IFX_Lighter = 9
    eSB_IFX_AlphaChannel = 10
    eSB_IFX_GBR = 11
    eSB_IFX_EnhanceRed = 12
    eSB_IFX_EnhanceGreen = 13
    eSB_IFX_EnhanceBlue = 14
    eSB_IFX_TintRed = 15
    eSB_IFX_TintGreen = 16
    eSB_IFX_TintBlue = 17

    eSB_IFX_ForceAlpha00 = 20
    eSB_IFX_ForceAlpha10 = 21
    eSB_IFX_ForceAlpha20 = 22
    eSB_IFX_ForceAlpha30 = 23
    eSB_IFX_ForceAlpha40 = 24
    eSB_IFX_ForceAlpha50 = 25
    eSB_IFX_ForceAlpha60 = 26
    eSB_IFX_ForceAlpha70 = 27
    eSB_IFX_ForceAlpha80 = 28
    eSB_IFX_ForceAlpha90 = 29
    eSB_IFX_ForceAlpha100 = 30
End Enum


Public Enum FillBrushType
   fBrushTypeTransparent = -1
   fBrushTypeSolidColor = 0
   fBrushTypeHatchFill = 1
   fBrushTypePathGradient = 3
   fBrushTypeLinearGradient = 4
   fBrushTypeTextureFill = 2
   fBrushTypeTextureFillFlipXY = 5
   fBrushTypeTextureFillFlipX = 6
   fBrushTypeTextureFillFlipY = 7
   fBrushTypeTextureFillStretch = 8
   fBrushTypeCircularGradient = 9
End Enum


' Various Hatch Styles
Public Enum HatchStyle
   HatchStyleHorizontal                   ' 0
   HatchStyleVertical                     ' 1
   HatchStyleForwardDiagonal              ' 2
   HatchStyleBackwardDiagonal             ' 3
   HatchStyleCross                        ' 4
   HatchStyleDiagonalCross                ' 5
   HatchStyle05Percent                    ' 6
   HatchStyle10Percent                    ' 7
   HatchStyle20Percent                    ' 8
   HatchStyle25Percent                    ' 9
   HatchStyle30Percent                    ' 10
   HatchStyle40Percent                    ' 11
   HatchStyle50Percent                    ' 12
   HatchStyle60Percent                    ' 13
   HatchStyle70Percent                    ' 14
   HatchStyle75Percent                    ' 15
   HatchStyle80Percent                    ' 16
   HatchStyle90Percent                    ' 17
   HatchStyleLightDownwardDiagonal        ' 18
   HatchStyleLightUpwardDiagonal          ' 19
   HatchStyleDarkDownwardDiagonal         ' 20
   HatchStyleDarkUpwardDiagonal           ' 21
   HatchStyleWideDownwardDiagonal         ' 22
   HatchStyleWideUpwardDiagonal           ' 23
   HatchStyleLightVertical                ' 24
   HatchStyleLightHorizontal              ' 25
   HatchStyleNarrowVertical               ' 26
   HatchStyleNarrowHorizontal             ' 27
   HatchStyleDarkVertical                 ' 28
   HatchStyleDarkHorizontal               ' 29
   HatchStyleDashedDownwardDiagonal       ' 30
   HatchStyleDashedUpwardDiagonal         ' 31
   HatchStyleDashedHorizontal             ' 32
   HatchStyleDashedVertical               ' 33
   HatchStyleSmallConfetti                ' 34
   HatchStyleLargeConfetti                ' 35
   HatchStyleZigZag                       ' 36
   HatchStyleWave                         ' 37
   HatchStyleDiagonalBrick                ' 38
   HatchStyleHorizontalBrick              ' 39
   HatchStyleWeave                        ' 40
   HatchStylePlaid                        ' 41
   HatchStyleDivot                        ' 42
   HatchStyleDottedGrid                   ' 43
   HatchStyleDottedDiamond                ' 44
   HatchStyleShingle                      ' 45
   HatchStyleTrellis                      ' 46
   HatchStyleSphere                       ' 47
   HatchStyleSmallGrid                    ' 48
   HatchStyleSmallCheckerBoard            ' 49
   HatchStyleLargeCheckerBoard            ' 50
   HatchStyleOutlinedDiamond              ' 51
   HatchStyleSolidDiamond                 ' 52
End Enum

Public Enum eSB_Caption_Effect
    No_Effect = 0
    Black_Outline_1_20p = 1
    Black_Outline_2_20p = 2
    Black_Outline_3_20p = 3
    Black_Outline_4_20p = 4
    Black_Outline_5_20p = 5
    Black_Outline_1_50p = 6
    Black_Outline_2_50p = 7
    Black_Outline_3_50p = 8
    Black_Outline_4_50p = 9
    Black_Outline_5_50p = 10
    White_Outline_2_25p = 11
    TextColor_Outline_1_25p = 12
    TextColor_Outline_2_25p = 13
    TextColor_Outline_3_25p = 14
    TextColor_Outline_4_25p = 15
    Black_Bot_Shadow_Light_1_25p = 16
    Black_Bot_Shadow_Light_2_25p = 17
    Black_Bot_Shadow_Light_3_25p = 18
    Black_Bot_Shadow_1_50p = 19
    Black_Bot_Shadow_2_50p = 20
    Black_Bot_Shadow_3_50p = 21
    Black_Bot_ShadowX_1_25p = 22
    Black_Bot_ShadowX_2_25p = 23
    Black_Bot_ShadowX_3_25p = 24
    Black_Outline_1_75p = 25
    Black_Outline_1_100p = 26
    Black_Outline_2_75p = 27
    Black_Outline_2_100p = 28
End Enum

Public Enum eSB_Shadow_Style
    No_Shadow = 0
    Fixed_Shadow = 1
    Gradual_Alpha_st1 = 2
    Gradual_Alpha_st2 = 3
    Gradual_Alpha_st3 = 4
    Gradual_Alpha_st4 = 5
    Inverse_Gradual = 6
    Simple_1_Color = 7
    Gradient_Up = 8
    Gradient_Down = 9
    Gradient_Left = 10
    Gradient_Right = 11
    Grandient_UpDown = 12
    Gradient_LefRight = 13
End Enum

Public Enum eGdip_GlobalQualityGFX
    Low_Quality_Fastest = 0
    HA_Highest_Aliasing = 1
    HA_NoOffset = 2
    HA_GammaCorrected = 3
    HA_HalfPixelOff = 4
    HQ_LinearHalf = 5
End Enum
        
Public Enum eGdip_GlobalQualityTXT
    Low_Quality_TEXT = 0
    High_Aliasing_TEXT = 1
    Cleartype = 3
End Enum
        
Public Enum eGD_Appearance
   eGD_Inset = 0
   eGD_Raised = 1
End Enum

Public Type RectF
    Left As Single
    Top As Single
    Width As Single
    Height As Single
End Type

Public Type Rect
    Left As Long
    Top As Long
    Right As Long
    Bottom As Long
End Type
