I would like to do a test which type is to be good to use, raster or vector.
The test code was as following, but i could not get particular difference
between them.
Did this how correct ?
used resources:
raster.jpg 11kb
vector.swf 3kb
test code:
<canvas debug="true">
<script>
var date = new Date();
var st = date.getTime();
</script>
<resource name="image" src="img/raster.jpg"/>
<view x="50" width="50" height="50" resource="image" stretches="both">
<handler name="onconstruct">
var date = new Date();
var ct = date.getTime();
Debug.write( "construct time: " + ( ct - st ) );
</handler>
<handler name="oninit">
var date = new Date();
var intt = date.getTime();
Debug.write( "init time: " + ( intt - st ) );
</handler>
</view>
</canvas>
thanks in advance
ono keiji
Anthony Bargnesi さんは書きました:
Among the types you mention, SWF is the only vector based format I
believe. This means you can draw all your graphics
and be able to scale them down without losing quality. I think that is
why many laszlo examples use SWF for even graphics
besides animation.
I like that approach, although I have not been able to find a decent SWF
editor in Linux (don't want to use windows flash).
-anthony bargnesi
On Wed, Apr 9, 2008 at 8:07 AM, ono keiji <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hi all,
Is there a good point to use swf file as resource file in
OpenLaszlo app with SWF mode.
I mean OpenLaszlo can handle variety resource type, such like png,
jpg, swf.
Which type should i use from the point of their performance, swf
png or jpg ?
For example,
- in the case of using as animation --> swf
- in the case of using as picture with stretching --> png
- in the case of using except above --> jpg
- in the case of there are same picture as swf and jpg,
but not stretch and not animation --> jpg
ono keiji
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
--
------------------------------------------
(株)ネットエイト
小野圭二
[EMAIL PROTECTED]
東京都江戸川区瑞江1-45-11
TEL 03(3676)6599
URL http://www.net8.co.jp
------------------------------------------