Quote
GDI+
Work well: it can load a png file, keep the transparency, convert to a bitmap, and i can modify the background via tcanvas.
The problem is the same than your: when you call 2 png, and we you try to blend it, the transparency is kept for the center of the circle...
Quote
opengl
well, so fare, i wasn't able to load a png image lol
Quote
vampyre:
the best for now: can load and keep the background, can be modify also, but no blending....
{ Copies rectangular part of SrcImage to DstImage. No blending is performed -
alpha is simply copied to destination image. Operates also with
negative X and Y coordinates.
Note that copying is fastest for images in the same data format
(and slowest for images in special formats).}
function CopyRect(const SrcImage: TImageData; SrcX, SrcY, Width, Height: LongInt;
var DstImage: TImageData; DstX, DstY: LongInt): Boolean;
var
Img1,Img2,Img3:TImageData;
begin
InitImage(Img1);
NewImage(400, 400, ifA8R8G8B8, Img1);
InitImage(Img2);
LoadImageFromFile('image1.png',Img2);
InitImage(Img3);
LoadImageFromFile('image2.png',Img3);
CopyRect(Img2,0,0,100,100,Img1,50,50);
CopyRect(Img3,0,0,43,43,Img1,100,100);
SaveImageToFile('image3.png',Img1);
ShowMessage('Done');
end;
Page created in 0.031 seconds with 19 queries.