Hi,
Downscaling of a bitmap image can be done in a number of ways (downsampling is
a better term and procedure).
The real problem is: what do you expect the outcome to be, if you scale down a
line graphic of 1 pixel width, or a detail in the bitmap of 1 pixel in the
original 50x50 bitmap
here is a little sample code of loading an image from the web then scaling it
and using it as a buttons icon. You should be able to easily modify this to
work with embedded assets. If not let me know and I could spend a little time
later doing that also.
?xml version=1.0 encoding=utf-8?
Hi,
Bitmaps aren't usually 'shrinked' (this or another way) as they lose in context.
You should use a image processing program to first convert by downsampling to
this lower resolution, and if you still can make out what the original image
was like, OK. Otherwise you should 'enhance' the
Ok, what about BitmapAsset.setActualSize?
--- In flexcoders@yahoogroups.com, grg_blls grg_b...@... wrote:
Hi,
Bitmaps aren't usually 'shrinked' (this or another way) as they lose in
context.
You should use a image processing program to first convert by downsampling to
this lower
I ran into this same problem and could not find and easy fix. I ended up
extending the LinkButton class. I created a button class that can load it's
icons on the fly from any where local, net, or embedded. Instead of needing to
set them strictly to Class I created a iconSource property. This
Hi,
BitmapAsset () Constructor
public function BitmapAsset(bitmapData:BitmapData = null, pixelSnapping:String
= auto, smoothing:Boolean = false)
Constructor.
Parameters bitmapData:BitmapData (default = null) The data for the bitmap
image.
pixelSnapping:String (default = auto)
Yes, code would be great! I can't believe how difficult this is to get
implemented. Hope these things become easier in Flex 5.
J
--- In flexcoders@yahoogroups.com, ag_rcuren robert.vancuren...@... wrote:
I ran into this same problem and could not find and easy fix. I ended up
extending the
7 matches
Mail list logo