Download Now
Forums

    Reference TFastBitmap

    Declared in Codebot.Graphics.Windows.ImageBitmap.pas on line 47

      TFastBitmap = record
      public
        DC: HDC;
        Handle: HBITMAP;
        OldBitmap: HBITMAP;
        Bits: Pointer;
        Width: Integer;
        Height: Integer;
        Depth: TPixelDepth;
        procedure Create(Width, Height: Integer; Depth: TPixelDepth = pd24); overload;
        procedure Create(const Rect: TRect; Depth: TPixelDepth = pd24); overload;
        procedure Destroy;
        procedure Draw(DC: HDC; X, Y: Integer; Opacity: Byte = $FF); overload;
        procedure Draw(DC: HDC; const Rect: TRect; Opacity: Byte = $FF); overload;
        procedure Clear;
        function ClientRect: TRect;
        function IsEmpty: Boolean;
      end;

    See also