Lazarus

Programming => Graphics => Graphics and Multimedia => BGRABitmap and LazPaint => Topic started by: CM630 on December 08, 2019, 01:07:42 pm

Title: [SOLVED] How to resize a layer in LazPaint?
Post by: CM630 on December 08, 2019, 01:07:42 pm
I am doing the following in LazPaint:
1. Open a image, to be used a background.
2. Open an image "as a layer".
3. I want to resize the layer only.. But I cannot find such an option (as expected Image/Resize resizes both the background image and the layer)  :'(
Is it doable?
Title: Re: How to resize a layer?
Post by: lainz on December 08, 2019, 03:25:32 pm
Show us some compilable code, else we only can guess what you're doing.

A solution can be loading the image into a separate bitmap and resample that.
Title: Re: How to resize a layer?
Post by: circular on December 08, 2019, 03:59:12 pm
In the layer window, you have a series of tool buttons. One of them is to zoom in/out a layer.

Otherwise with latest version, you can use the Edit shape tool. Then click the layer content and you can transform it.
Title: Re: How to resize a layer in LazPaint?
Post by: CM630 on December 11, 2019, 08:28:15 am
Thanks, boths solutions works, but IMHO the word Zoom is misleading.
It would be nice if Edit Shape Tool could rotate, too.
Title: Re: [SOLVED] How to resize a layer in LazPaint?
Post by: circular on December 11, 2019, 12:46:35 pm
You can rotate using the ALT key or Right click on the corners.
Title: Re: [SOLVED] How to resize a layer in LazPaint?
Post by: CM630 on December 13, 2019, 09:42:45 am
Thanks,
I coud not make it work with Alt+Mouse, but right mouse on the corners worked for me.
It would be nice if there was some tooltip.
Title: Re: [SOLVED] How to resize a layer in LazPaint?
Post by: circular on December 14, 2019, 10:31:22 am
I think there is one hmmm something to check.
TinyPortal © 2005-2018