Sign in Join
FPDoc Onlineexperiment

TBitmapResource class

In unit bitmapresource

Bitmap resource type

Declaration

pascal
TBitmapResource = class(TAbstractResource)

Inheritance

  1. TBitmapResource
  2. 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

BitmapDatapublicResource data as a BMP stream

Methods

GetTypeprotectedReturns the type of the resource
GetNameprotectedReturns the name of the resource
ChangeDescTypeAllowedprotectedReports whether changing the type of resource type or name is allowed
ChangeDescValueAllowedprotectedReports whether changing the value of resource type or name is allowed
NotifyResourcesLoadedprotectedTells the resource that all resources have been loaded
CreatepublicCreates a new bitmap resource
DestroypublicDestroys the object
UpdateRawDatapublicUpdates RawData stream.
SetCustomBitmapDataStreampublicSets a custom stream as the underlying stream for BitmapData

Inherited

From TAbstractResource (20)

_Type CacheData Characteristics CodePage CompareContents DataOffset DataSize DataVersion HeaderSize LangID MemoryFlags Name Owner OwnerList RawData SetChildOwner SetCustomRawDataStream SetDescOwner SetOwnerList Version

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.