hi
I have a svg image for background and a smaller image for font.
I want scaling background image for whole screen and scaling smaller image by attention to phone resolution size
but I don't know .
please help me quickly
As you probably have already noticed, the SVG functions are quite weird...
This is because someone at some point seem to have thought that the only kind of SVG you need to support are icons...
To set the resolution the SVG decoder should decode the image to, you use:
AknIconUtils::SetSize()
The size you specify there is the size it will be rendered in.
I think it is actually rendered at the call to SetSize, but I'm not sure.
Make your big image fullscreen, and calculate the size of your small image (like 1/32 of screen height or whatever is appropriate for you)
Will you send me some code , i know how to bitblt svg image however am not aware of how to render for all screen resolutions.
(If anyone has any idea please send me some code.)
my email id is :->sangewar.santosh@gmail.com
You just need to call SetSize() as alh mentionned above.
You just need to compute the size you want to achieve based on the current screen resolution. Use Rect() to get the size of the control your are working on and then compute the wanted size for the SVG bitmap using some simple logic and then call SetSize...
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant
Forum posts: 1419
As you probably have already noticed, the SVG functions are quite weird...
This is because someone at some point seem to have thought that the only kind of SVG you need to support are icons...
To set the resolution the SVG decoder should decode the image to, you use:
AknIconUtils::SetSize()
The size you specify there is the size it will be rendered in.
I think it is actually rendered at the call to SetSize, but I'm not sure.
Make your big image fullscreen, and calculate the size of your small image (like 1/32 of screen height or whatever is appropriate for you)
Forum posts: 64
thanks for reply
your opinion is correct.
I solved problem
Forum posts: 18
Hi ,
Will you send me some code , i know how to bitblt svg image however am not aware of how to render for all screen resolutions.
(If anyone has any idea please send me some code.)
my email id is :->sangewar.santosh@gmail.com
santosh sangewar
Forum posts: 2133
You just need to call SetSize() as alh mentionned above.
You just need to compute the size you want to achieve based on the current screen resolution. Use Rect() to get the size of the control your are working on and then compute the wanted size for the SVG bitmap using some simple logic and then call SetSize...
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant