I'll add the note
about setBgImage into the f.a.q. maybe also add some other browser bugs
like the Netscape resizing problems ,etc..
And yes it will
solve the hour-glass mouse cursor problem :-)
Pascal Bestebroer ([EMAIL PROTECTED])
Software
ontwikkelaar
Oberon Informatiesystemen b.v.
http://www.oibv.com
-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Namens Doug Melvin
Verzonden: maandag 29 januari 2001 4:49
Aan: [EMAIL PROTECTED]
Onderwerp: Re: [Dynapi-Help] Images...> a) The fastest way for loading images is caching them, so load them into
> dynlayers at the beginning of your game, so that the browser has the image
> in it's cache.. after that it will get it fast enough everytime.
>
> Also note, that NEVER use setBgImage() to set the images in the dynlayers,THIS is why we need a more full attempt to document the DynAPI.I have at least 15 calls to setBgImage().. noone told me IE had a weekness here...> IE will reload the image everytime the layer changes (size, position,etc..)
>
> b)
> I usually just use DynLayer with setHTML to insert the image.. this is the
> fastest object available (not sure how dynimage works, but since it's an
> extra object it might be slower then using normal layers)I do agree here.. I have fond that in the widgets I've played with, and in the examples I seen there has been way too much of the "better mousetrap" syndrome.. In fact I almost exclusivly use DynLayers now..except in the rare occations where I need to 'pack' the hight or width of an object (read Label())
> c) BMP is not possible.. My opinion when doing web-games are that your
> images must be as small as possible (as little amount of colors needed, so
> 16 if possible), and if possible contain no transparency.. this way the
> browser can handle it faster.. Also make sure the image don't contain any
> extra white-space on the edges, this is just wasted time for the browser to
> render the space which is not there. GIF images use RLEncoding, so white
> space is still processed even though it's not there.. and since browsers are
> not doing a great job of rendering, try to make everything as "easy" as
> possible for the browser.again.. COMPRESS your graphics.. This CAN be achieved without loss of image quality..:-)
> Ofcourse backgrounds can be JPG with 16million colors (as long as they don't
> move) but again, areas of this background will be re-renderd by the browser
> when ever something passes over them.. so use 256- color images when ever
> possible.
>
>
> Pascal Bestebroer
> [EMAIL PROTECTED]
> http://www.dynamic-core.net
>
> > -----Oorspronkelijk bericht-----
> > Van: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]Namens GORTSILAS ANDREAS
> > Verzonden: zondag 28 januari 2001 11:44
> > Aan: '[EMAIL PROTECTED]'
> > Onderwerp: RE: [Dynapi-Help] Images...
> >
> >
> > a)=========
> > Imagine 32 pieces which each of them has an image... I am looking
> > for a way
> > to load them, quickly and efficiently...
> >
> > I use DynImage.getImage(src) to get the image and then load the
> > dynimage...
> > oImg = DynImage.getImage(src)
> > var oDynImg = new DynImage();
> > oDynImg.setSize(25,25);
> > oDynImg.moveTo(iLeft, iTop);
> > oDynImg.setImage(oImg);
> > DynAPI.document.addChild(oDynImg);
> >
> > Is it the correct way to do it?
> >
> > Here I want to read the images from one container image... I don't want to
> > show it only...
> >
> > b)===========
> > If you don't use DynImage what do you use? (for similar tasks)
> >
> > c)===========
> > Gif, bmp, jpg, .... or what ever...
> >
> > Andreas
> >
> >
> >
> > -----Original Message-----
> > From: Pascal Bestebroer [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, January 28, 2001 12:26 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: [Dynapi-Help] Images...
> >
> >
> >
> >
> > a) use a child layer containing the images in a main layer, clip the main
> > layer to the size of the image, and move the child layer to the correct
> > (negative) x,y position to show the other images. (don't have
> > code to show,
> > but this is the idea behind it)
> > b) no clue (never used dynimage)
> > c) not sure what you mean, but I think that resedrawing the image (using
> > setHTML) and then set the width and height values of the image to the same
> > width and height of the layer.
> >
> > cya
> >
> > Pascal Bestebroer
> > [EMAIL PROTECTED]
> > http://www.dynamic-core.net
> >
> > > -----Oorspronkelijk bericht-----
> > > Van: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]Namens GORTSILAS ANDREAS
> > > Verzonden: zondag 28 januari 2001 10:01
> > > Aan: Dynapi-Help Mailing List (E-mail)
> > > Onderwerp: [Dynapi-Help] Images...
> > >
> > >
> > > With DynImage we can pre-load images...
> > >
> > > a) Can we use an image which contains more than one images in a
> > row.. and
> > > take the images one by one?
> > >
> > > b) If I want to use an image without the background what I must do in
> > > DynImage object?
> > >
> > > c) If I use the SetSize feature, what is the appropriate format for the
> > > image, in order to look nice when changes size?
> > >
> > > Thank you
> > >
> > > Andreas Gortsilas
> > >
> > >
> > > _______________________________________________
> > > Dynapi-Help mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/dynapi-help
> > >
> >
> >
> > _______________________________________________
> > Dynapi-Help mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-help
> >
> >
> > _______________________________________________
> > Dynapi-Help mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-help
> >
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
