banaguitar
Members-
Content Count
11 -
Joined
-
Last visited
Everything posted by banaguitar
-
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
-
Ok, same method, I will try.
-
Okay, which method do I need to do this?
-
I mean, I don't know how to adjust the size as shown above
-
I'm bumping up here
-
Something like this.
-
Thank you. The "arrow" is too big. How can I adjust the size of the arrow?
-
This looks good, thank you, but it's not centered. I try to figure out how to position the arrow at top center.
-
Good to know, but SetSize doesn't change anything in this case. You agree that the png looks not good at the edges? How to adjust the size of the png?
-
Hello, thanks for help. Here is a minimal example. Example Layer.zip
-
Thank you. I mean a normale size. The png should be clearly visible. The proportions are wrong and the edges of the icon look horrible.