PDA

View Full Version : Keep display size of image a constant ?


jojanpm
12-22-2010, 08:52 AM
See my code:

img = 'D:/pic.jpg'
mc.window()
mc.columnLayout()
mc.frameLayout()
mc.image(i=img)
mc.showWindow()

It works. Issue is, the image display size varies according to the image size/resolution.
It should not happen, i.e; the display size must be constant irrespective of the image size.
HOW?

jojanpm
12-22-2010, 10:39 AM
Acutally i am having a layout with an image, i put an option to change the image and the image resoution.when i change the image resolution smaller,the image fit to the side of layout.i need it to be on the exact center of that layout.

CGTalk Moderation
12-22-2010, 10:39 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.