TRVMBitmap

<< Click to display table of contents >>

TRVMBitmap

A class representing a raster image.

Unit [VCL and LCL] MRVBitmap;

Unit [FMX] fmxMRVBitmap;

Syntax

TRVMBitmap = class(TPersistent);

hmtoggle_arrow1Hierarchy

Description

An object of this class stores a bitmap image.

The image size is returned in Width and Height properties. The image uses 32 bits per pixel.

Use GetBitmap method to receives this image as TBitmap. You must not free a TBitmap object returned by this method. If you painted something on this bitmap, call UpdateData method to apply changes.

You can use Assign method to assign objects of this class to each other, TGraphic object to TRVMBitmap object, TRVMBitmap object to TBitmap.

Image data can be accessed using Data field, or using ScanLine method:

Data: array of Cardinal; // one item represents one pixel (RGBA)
function ScanLine(y : Integer) : PByteArray;