FMX.Graphics.TBitmapData

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TBitmapData = record

C++

struct DECLSPEC_DRECORD TBitmapData
{
private:
    Fmx::Types::TPixelFormat FPixelFormat;
    int FWidth;
    int FHeight;
    int __fastcall GetBytesPerPixel();
    int __fastcall GetBytesPerLine();
public:
    void *Data;
    int Pitch;
    __fastcall TBitmapData(const int AWidth, const int AHeight, const Fmx::Types::TPixelFormat APixelFormat);
    System::Uitypes::TAlphaColor __fastcall GetPixel(const int X, const int Y);
    void __fastcall SetPixel(const int X, const int Y, const System::Uitypes::TAlphaColor AColor);
    void __fastcall Copy(const TBitmapData &Source);
    void * __fastcall GetScanline(const int I);
    void * __fastcall GetPixelAddr(const int I, const int J);
    __property Fmx::Types::TPixelFormat PixelFormat = {read=FPixelFormat};
    __property int BytesPerPixel = {read=GetBytesPerPixel};
    __property int BytesPerLine = {read=GetBytesPerLine};
    __property int Width = {read=FWidth};
    __property int Height = {read=FHeight};
    TBitmapData() {}
};

Properties

Type Visibility Source Unit Parent
record
struct
public
FMX.Graphics.pas
FMX.Graphics.hpp
FMX.Graphics FMX.Graphics

Description

Describes a bitmap data.

TBitmapData is a record that contains the attributes and helpful methods for bitmap data.

Member Description

Data

Is a pointer to the bitmap data.

Pitch

Specifies the reading step for Data.

PixelFormat

Specifies the internal format of the pixels of the current bitmap.

GetPixel

Returns the color of a specified pixel.

SetPixel

Sets the color of a specified pixel.

See Also