TBitmapResource class
Bitmap resource type
Declaration
TBitmapResource = class(TAbstractResource)Inheritance
- TBitmapResource
- TAbstractResource
Description
This class represents a resource of type RT_BITMAP.
A bitmap resource contents is very similar to a BMP file. However some differences exists, so RawData is not appropriate if you need to read and write BMP data. Instead, BitmapData property gives access to a BMP file-like stream.
This class doesn't allow its type to be changed to anything else than RT_BITMAP. Attempts to do so result in a EResourceDescChangeNotAllowedException.
See also
Properties
BitmapData | public | Resource data as a BMP stream |
Methods
GetType | protected | Returns the type of the resource |
GetName | protected | Returns the name of the resource |
ChangeDescTypeAllowed | protected | Reports whether changing the type of resource type or name is allowed |
ChangeDescValueAllowed | protected | Reports whether changing the value of resource type or name is allowed |
NotifyResourcesLoaded | protected | Tells the resource that all resources have been loaded |
Create | public | Creates a new bitmap resource |
Destroy | public | Destroys the object |
UpdateRawData | public | Updates RawData stream. |
SetCustomBitmapDataStream | public | Sets a custom stream as the underlying stream for BitmapData |
Inherited
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
