Download Now

    Reference IBitmap

    Declared in Codebot.Render.Graphics.pas on line 130

    IBitmap are fixed size bitmap instances can be created using any of the Canvas.LoadBitmap methods. They differ from IRenderBitmap in that they cannot be the target of canvas rendering and cannot be resized.
    Note: Bitmaps and share the same namespace as render bitmaps.
      IBitmap = interface
      public
        function GetName: string;
        function GetClientRect: TRectF;
        function GetWidth: LongWord;
        function GetHeight: LongWord;
        { Name is defined when you load a bitmap from a canvas }
        property Name: string read GetName;
        { A convenient rectangle exactly fiting the bitmap }
        property ClientRect: TRectF read GetClientRect;
        { The fixed width and height of the bitmap }
        property Width: LongWord read GetWidth;
        property Height: LongWord read GetHeight;
      end;

    See also

    TRectF in Codebot.Graphics.Types.pas