Draw image with width/height in pixels?

Started by muruba, June 29, 2017, 12:43:13

Previous topic - Next topic

muruba

Hi all,

How can I draw image using specific width/height so that the image is automatically resized? I can see there are scale.. arguments, is it how it works? I need to normalize to relative floats from my real dimensions in pixels?

Cheers

MikeHart

Yes, currently there is no other way than to determine the scale factors before you draw.

Pakz

I need to do this also, but with monkey2. I have a fullscreen image and I need to scale a rectangular area of that image to a certain size. I have tried a couple of times to do this but was not able to figure it out yet. I do not do this often. I bet there are examples if it gets googled(formula's)