samyeyo / LuaRT

Open source Windows programming framework for Lua
https://www.luart.org
Other
285 stars 17 forks source link

When setting an image, it resizes it even if you already set the size #151

Closed xFN10x closed 8 months ago

xFN10x commented 9 months ago

in the program im writing, i have a Picture that sets it to a certain thing every time you do something, but the images were too small, so i made the image twice the size. But when i set it, it goes back to the orignal size, then i have to put it back again. This is very slow, and you can see how slow it is if you use it.

samyeyo commented 9 months ago

This problem should be fixed in LuaRT 1.6.0 I let this issue opened for now. Please give me feedback at this time

xFN10x commented 8 months ago

it still does it

samyeyo commented 8 months ago

Yes you are right. In fact when using Picture:load() the size of the loaded Picture will be the size of the image. In next version, the Picture:load() method will accept two optional arguments to specify the wanted width and height