Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: OT: bmp image scaling
From: John Croteau
Date: Sun, 27 Jun 1999 04:45:40 +0100

Hi Laura,

> > How are you supposed to scale something with bitmaps?
> > They get ugly.
This is definately a possibility.

> Recently someone (Burt and I'm sorry I've lost his last name somehow) on the
> hwg-techniques list put up a page with graphics that scale without too much
> quality loss (there is still some) by allowing the browser to resize the
> image (using %s in the width tag).
Bitmaps unlike vectors do NOT scale well. The problem is compound by
computer and browser differences. Bitmaps are created and optimized to
display at a certain size. At their natural size they will display the
best. Bitmaps in gif, png, jpeg whether inside Flash or not will behave
and look their best when displayed at their natural size. Checking how a
bitmap scales on an individual computer is kind of irrelevant since that
is just one case in thousands. Also, some bitmap pictures scale better
than others and a pixel or two in the scale can make a lot of
difference. Bitmaps in Flash often scale better than individual gifs and
jpegs but this is not always the case.

> The trick seems to have been to provide a
> width percentage but not height, keeping the proportions the same but
> allowing scaling.
Keeping porportions the same is not a trick but a requirement. If scale
doesn't work out evenly, it may be better to use only one parameter but
this may slow down displaying the graphic in some cases.
If this trick allows better overall web display of bitmaps by allowing
browsers to calculate the height it has nothing to do with bitmaps in
Flash. I expect that this 'trick' has the value I have been placing on
it and it is better than scaling using numbers are not at the exact same
ratio.

A picture should scale well from 200x400 to 100x200.
But if you need to reduce 177x231 by half there is no exact pixel
numbers. You have to be off.

----------- -----------------------
John Croteau croteauaterols [dot] com (mailto:croteauaterols [dot] com)
------------- -------------------------
FlashTek (Advanced Websites with Flash) http://www.FlashTek.com/
Flash Bible (Fast track to good Flash) http://www.FlashBible.com/
Flash Central(The Universe Starts Here) http://www.FlashCentral.com/
The Flash Tech Resource (Tech Notes) http://www.FlashCentral.com/tech/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


Replies
  FLASH: OT: bmp image scaling, Laura Mollett

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]