Hello,
I want to load a png, which is a clickable button, into a TBitmap32, but the size of the png is wrong.
Here is my code:
ImgView.Layers.Clear;
ImgView.scalemode := smResize;
ImgView.Bitmap.LoadFromFile('background.jpg');
BL := TBitmapLayer.Create(ImgView.Layers);
LoadBitmap32FromPNG(BL.bitmap,'button.png');
BL.Bitmap.DrawMode := dmtransparent;
BL.Scaled := true;
BL.OnClick := OnClickButton;
I need your help. Thank you very much.
Kind regards