Hi all,

I have a really basic problem but can't found the solution, I have a
qx.ui.basic.Image object and I want allow the user to set and open any url
image. But I need to center (keep size), scale (keep ratio) or expand (to
any width or height) depending of the user. I mean, the user has a TextField
to set the image url and a ComboBox to set if the image will have it's own
size, if it will be scaled or resized to any sizes.

To make this operations I need to know original image sizes, if the user
loads an 16x16 icon and wants to scale it by x2 final image size must be
32x32 and if the user changes the ComboBox to expand it must resize 500x400
and if the user changes TextField to a 200x100 image and changes ComboBox to
center the image must have 200px for height and 100px for width (original
image size). But I don't know where to get this sizes.

Sorry if I'm not very clear, the final idea is to know the original height
and the width of a image from qooxdoo even if I resize it.

---
Seldaiendil
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to