FMX.Types.TBitmapData

From XE3 API Documentation
Jump to: navigation, search

Delphi

  TBitmapData = record
  private
    FPixelFormat: TPixelFormat;
  public
    Data: Pointer;
    Pitch: Integer;
    property PixelFormat: TPixelFormat read FPixelFormat;
    function GetPixel(const X, Y: Integer): TAlphaColor;
    procedure SetPixel(const X, Y: Integer; const AColor: TAlphaColor);
  end;

C++

struct DECLSPEC_DRECORD TBitmapData{
private:
    Fmx::Pixelformats::TPixelFormat FPixelFormat;
public:
    void *Data;
    int Pitch;
    __property Fmx::Pixelformats::TPixelFormat PixelFormat = {read=FPixelFormat};
    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);
};

Properties

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

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