uses BGRALayers;var image: TBGRALayeredBitmap;begin image := TBGRALayeredBitmap; image.LoadFromFile('someimage.ora'); //note that you can also load a Paint.NET file here ... image.Draw(Canvas, 0,0); ... image.Free;end;
var image: TBGRALayeredBitmap;begin image := TBGRALayeredBitmap.Create(800,600); image.AddOwnedLayer(TBGRABitmap.Create(800,600)); image.AddLayerFromFile('someimage.png'); ... image.SaveToFile('myimage.ora'); image.Free;end;
procedure SetMargins(AMarginTop, AMarginRight, AMarginBottom, AMarginLeft: integer); procedure SetMargins(AMargins: TMargins); property Margins: TMargins;
procedure Draw(ABitmap: TBGRABitmap; ARect: TRect; DrawGrid: boolean = False); procedure Draw(ABitmap: TBGRABitmap; ALeft,ATop,AWidth,AHeight: integer; DrawGrid: boolean = False);
procedure AutodetectRepeat;
property SliceRepeat[Aposition: TSliceRepeatPosition]: Boolean;
The welcome page is http://wiki.lazarus.freepascal.org/BGRABitmap_tutorialIt contains now a list of categories to help browse through the tutorialsalso added sections in tutorials 4 and 5.