Page 1 of 1

Change image as per screen height width

Posted: Wed Feb 19, 2014 12:07 pm
by ishani modi

Hi,

I have uploaded images in asset, now i want to change images as per screen height and width. How can i get images from asset ?

Thanks,
Ishani


Change image as per screen height width

Posted: Wed Feb 19, 2014 12:14 pm
by Kateryna Grynko

Hi Ishani,

Sorry, not sure I understand your question. [quote:]i want to change images as per screen height and width[/quote]What do you want to do?


Change image as per screen height width

Posted: Wed Feb 19, 2014 1:00 pm
by ishani modi

Hi,
As per the screen height width of the device, want to change image accordingly, which i have already uploaded in asset.


Change image as per screen height width

Posted: Wed Feb 19, 2014 1:56 pm
by ishani modi

Hi,
I have uploaded image in resources -- image. I want this image to bind dynamically
Image


Change image as per screen height width

Posted: Wed Feb 19, 2014 3:08 pm
by Kateryna Grynko

Ishani,

It's better to place images in WEB_RESOURCES/files/views/image and use this code:preAppery.getImagePath("assetName");/preWhere assetName is an image asset name.