wPaint icon indicating copy to clipboard operation
wPaint copied to clipboard

Load small image in bigger canvas

Open renanvs opened this issue 12 years ago • 6 comments

When I draw on a larger screen and load the paint on a small image, is right.

But when I draw on a small image and carry a larger picture it is not proportional

Can anyone help me?

The yellow works fine (large to small)

The green don't (small to large)

3 2 1 4

renanvs avatar Jan 28 '14 13:01 renanvs

I don't understand what you mean.

websanova avatar Feb 20 '14 14:02 websanova

When a i draw something in a large image and save, after load in a small image my draw, works fine.

But, when i draw in small image and save, and load my draw in an image larger, the draw dont scale, still the same size, but the image that i want is large

renanvs avatar Feb 20 '14 14:02 renanvs

Hi, he works with me, I think he's using an old version of the plugin. I'll talk to him and see what's happening. :stuck_out_tongue_winking_eye:

ghost avatar Feb 20 '14 15:02 ghost

Actually i think he's right..I have a similar problem where i need to scale the foreground based on the placeholder. It scales down correctly, but does not scale up.

The resize check has only been applied to the scale down code..

Ln 181: if (myImage.width > _this.width || myImage.height > _this.height)

Izikio avatar Feb 27 '14 04:02 Izikio

Ya, that was on purpose, otherwise you would be stretching the image out. I would prefer to not have that as the default. If I have a small image it should just center. I will add an option for this instead.

websanova avatar Mar 01 '14 12:03 websanova

Just added use the option imageStretch: true. Default is false.

websanova avatar Mar 01 '14 12:03 websanova