Gets and sets the filename that contains the palette for the control.
Read-write property
Visual Basic |
---|
Public Property PFileName As String |
The filename of the palette for the control.
Palette files can be DIB, BMP, or PAL files.
-
When the ColorDepth method is invoked and the Palette parameter is set to 3 - Palette File, the palette in the file is used for color mapping.
Note: PAL is a Windows palette file conforming to the RIFF specification. You can use Microsoft BitEdit or PalEdit to create and save .PAL files. BitEdit and PalEdit Multimedia Data Tools ship with Microsoft Video for Windows.
The ImagError property is set if there is an error loading the palette file. If the palette file is invalid and a image is to be displayed or processed using the palette file, an optimized palette is generated and used.