Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Why does image auto scaling grab the wrong image? — Gideros Forum

Why does image auto scaling grab the wrong image?

seppseppseppsepp Member
edited May 2014 in General questions
Hi.

Auto image scaling grabs the wrong image - at least that's what I experienced here. Following setting.

Project properties
> Scale mode: Fit Height
> Logical Dimensions: 640x960
> Orientation: Portrait

The dummy image exists as

dummy.png
> 80x80

dummy@0.5x.png
> 40x40

dummy@2x.png
> 160x160

Images are added to the project.

In the code the image is created via:

local texture = Texture.new("dummy.png")
local region = TextureRegion.new(texture, 0, 0, 80, 80)
local image = Bitmap.new(region)

Gideros player settings are set to 320x480 (iPhone). And now ... the base version of the image is rendered (dummy.png). But why?! I expected it to be @0.5 version. When I then set player settings to 640x960 (iPhone Retina) the program renders the @0.5. This time I expected the base version to be rendered.

Who can enlighten me? Thanks a lot in advance for your help!


Greetings

Sebastian

Comments

Sign In or Register to comment.