[Overview][Classes][Index] Reference for unit 'bitmapresource' (#fcl-res)

TBitmapResource

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Bitmap resource type

Declaration

Source position: bitmapresource.pp line 29

type TBitmapResource = class(TAbstractResource)

protected

  function GetType; override;

  function GetName; override;

  function ChangeDescTypeAllowed(); override;

  function ChangeDescValueAllowed(); override;

  procedure NotifyResourcesLoaded; override;

public

  constructor Create();

  

Creates a new bitmap resource

  destructor Destroy; override;

  procedure UpdateRawData; override;

  procedure SetCustomBitmapDataStream();

  

Sets a custom stream as the underlying stream for BitmapData

  property BitmapData: TStream; [r]

  

Resource data as a BMP stream

end;

Inheritance

TBitmapResource

  

Bitmap resource type

|

TAbstractResource

  

Base abstract resource class

|

TObject

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.

Remark: 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

BitmapData

  

Resource data as a BMP stream

TAbstractResource.RawData

  

The raw resource data stream


Documentation generated on: May 14 2021