![]() |
Version 1.0 Beta 4 The DirectDraw palette component. |
The component looks like this on the component palette
Description
TIvoryPalette is a DirectDraw palette component. It's a wrapper around the IDirectDrawPalette COM object.
TIvoryPalette holds the red, green, and blue components of all the 256 colors that can be used at the same time in Ivory Draw. Note that TIvoryPalette doesn't work if you're using Ivory Draw in debug mode and your Windows is in high color or true color video mode.
TIvoryPalette is able to load a palette from a BMP or a PCX file or resource.
Hierarchy
TObjectTPersistent
TComponent
TIvoryResFileBase
TIvoryPalette
Properties
Color | ||
![]() | DirectDrawPalette | |
![]() | OriginalColor |
Inherited from TIvoryResFileBase:
DllHandle | ||
![]() | DllLoaded | |
![]() | DllName | |
![]() | FileName | |
![]() | ResourceName | |
![]() | ShareDll |
Methods
~TIvoryPalette | ||
BeginUpdate | ||
Create | ||
EndUpdate | ||
GetColors | ||
GetNearestColor | ||
GetNearestPaletteIndex | ||
SetColors | ||
TIvoryPalette |
Inherited from TIvoryResFileBase:
LoadFromDll | ||
LoadFromFile | ||
LoadFromResourceId | ||
LoadFromResourceName |
Events
![]() | OnChange |