Hi!Why do you want to do that?? JPG has no transparency, it is a lossy format and with high compression it has a lousy quality.Anyway:Code: Pascal [Select][+][-].....Winni
Hi!Sorry - I forgot in the usesBGRAbitmapTypes;That's the whole secret.Winni
Create a white bgrabitmap of the same size of the image. Then draw on top of it your transparent image.
Code: Pascal [Select][+][-]var bgBitmap, bgImage: TBGRABitmap; bgImage := TBGRABitmap.Create('image.png'); bgBitmap := TBGRABitmap.Create(bgImage.Width, bgImage.Height, BGRAWhite); bgBitmap.PutImage(0,0,bgImage, dmDrawWithTransparency); bgImage.Free; bgBitmap.SaveToFile('image.jpg'); bgBitmap.Free;