# GdiPlus Types
{: .no_toc }

The structures of the package that a program works with: points, sizes and rectangles, colours, the descriptions of paths, bitmap data, metafile headers, the settings that start GDI+ and the parameters of the effects.

A type is a user-defined type, a value with fields and sometimes methods. It is passed and assigned by value, and it needs no `New`. Most have a module function of the same name that returns a filled one, as in `GpRect(0, 0, 10, 10)`. The pages follow the structures of the GDI+ C++ wrapper that they mirror; the classes, which hold a GDI+ object, are on the pages of the section itself.

## Geometry
{: .no_toc }

- [GpPoint](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/GpPoint.md) -- a point with **Long** coordinates
- [GpPointF](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/GpPointF.md) -- a point or vector with **Single** coordinates
- [GpSize](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/GpSize.md) -- a size with **Long** values
- [GpSizeF](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/GpSizeF.md) -- a size with **Single** values
- [GpRect](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/GpRect.md) -- a rectangle with **Long** values
- [GpRectF](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/GpRectF.md) -- a rectangle with **Single** values
- [CharacterRange](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/CharacterRange.md) -- a range of characters of a string, for measuring

## Colour
{: .no_toc }

- [Color](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/Color.md) -- a colour with alpha, red, green and blue channels
- [ColorMatrix](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/ColorMatrix.md) -- a 5 by 5 matrix that transforms colours
- [ColorChannelLUT](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/ColorChannelLUT.md) -- a lookup table for one colour channel
- [ColorMap](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/ColorMap.md) -- a pair of colours, for remapping
- [ColorPalette](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/ColorPalette.md) -- the colour table of an indexed bitmap

## Starting GDI+
{: .no_toc }

- [GdiplusStartupInput](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/GdiplusStartupInput.md) -- the settings GDI+ is started with
- [GdiplusStartupOutput](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/GdiplusStartupOutput.md) -- the hook and unhook functions returned when the background thread is suppressed

## Paths
{: .no_toc }

- [PathPointType](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/PathPointType.md) -- the type of one point of a path
- [PathType](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/PathType.md) -- a run of points of one type in a figure
- [TypedPoint](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/TypedPoint.md) -- a point of a path with its type
- [TypedPoints](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/TypedPoints.md) -- an array of typed points
- [SubPath](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/SubPath.md) -- the extent of one figure of a path
- [SubPathPath](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/SubPathPath.md) -- one figure of a path, as a path of its own
- [Marker](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/Marker.md) -- the extent of one section of a path between markers
- [MarkerPath](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/MarkerPath.md) -- one section between markers, as a path of its own

## Images and metafiles
{: .no_toc }

- [BitmapData](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/BitmapData.md) -- the locked pixels of a bitmap
- [MetafileHeader](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/MetafileHeader.md) -- the header of a metafile
- [WmfPlaceableFileHeader](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/WmfPlaceableFileHeader.md) -- the placeable header of a Windows metafile
- [PWMFRect16](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/PWMFRect16.md) -- the 16-bit rectangle of that header
- [GpPropertyItem](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/GpPropertyItem.md) -- one property of an image file, such as the camera model
- [GpImageItemData](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/GpImageItemData.md) -- an item of extra data stored with an image
- [GpImageCodecInfo](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/GpImageCodecInfo.md) -- the description of an image encoder or decoder
- [GpEncoderParameter](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/GpEncoderParameter.md) -- one parameter of an image encoder

## Effect parameters
{: .no_toc }

The parameters of the effect classes, which each takes as its **Parameters** property.

- [BlurParams](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/BlurParams.md)
- [BrightnessContrastParams](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/BrightnessContrastParams.md)
- [ColorBalanceParams](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/ColorBalanceParams.md)
- [ColorCurveParams](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/ColorCurveParams.md)
- [ColorLUTParams](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/ColorLUTParams.md)
- [HueSaturationLightnessParams](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/HueSaturationLightnessParams.md)
- [LevelsParams](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/LevelsParams.md)
- [RedEyeCorrectionParams](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/RedEyeCorrectionParams.md)
- [SharpenParams](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/SharpenParams.md)
- [TintParams](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/TintParams.md)
