I have tried same that you write(just changed width and height attribute
with each other/you might meant this), image's width fits to the canvas
witdh but doesnT for the height. Just can see the top part of the image up
to canvas height.
Image is a quite big(1280x1024), is it behaving like that because of the
image size?

<view width="${canvas.width}" height="${canvas.height}"
          resource="resources/wallpaper/image.jpg" stretches="both"/>

2010/3/18 jamesr <[email protected]>

> general form:
>
> <view width="${canvas.height}" height="${canvas.width} resource="rscname"
> stretches="both"/>
>
> us
>
>
>
> On Thu, 18 Mar 2010 10:27:39 -0400, cem sonmez <[email protected]>
> wrote:
>
>  Hi all
>> I am trying to use an image as a background resource of canvas.
>> I can manage to do this like below :
>>
>> <canvas width="100%" height="100%" >
>>     <image src="image.jpg" />
>> </canvas>
>>
>> But I canT see the whole image on canvas, just a particular part of the
>> image that ı can see.
>> Is it possible to stretch the image to the canvas size?
>> And is this the recommended way to use an image as a backgroung of canvas?
>> Thanks in advance.
>> Regards.
>>
>>
>
> --
> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
>



-- 
Cem SONMEZ

Reply via email to