Download Now

    Reference IRenderBitmap

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

    IRenderBitmap is a special bitmap which can be drawn to using canvas commands. When bound to a canvas commands such as LineTo, Circle, and Fill create graphics on the bitmap. When unbound the render bitmap can be used as with commands such as DrawImage or as a property of a bitmap brush.
    Note: A render bitmap can be created using the Canvas.NewBitmap method and share the same namespace as fixed bitmaps.
      IRenderBitmap = interface(IBitmap)
      public
        { Bind makes the render bitmap the current target for canvas drawing }
        procedure Bind;
        { Unbind restores the back buffer as the target for canvas drawing }
        procedure Unbind;
        { If unbound resize the drawable area of this render bitmap }
        procedure Resize(W, H: LongWord);
      end;

    See also