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") Whether or not the bitmap is snapped to the nearest pixel. smoothing:Boolean (default = false) Whether or not the bitmap is smoothed when scaled setActualSize () method public function setActualSize(newWidth:Number, newHeight:Number):void Sets the actual size of this object. This method is mainly for use in implementing the updateDisplayList() method, which is where you compute this object's actual size based on its explicit size, parent-relative (percent) size, and measured size. You then apply this actual size to the object by calling setActualSize(). In other situations, you should be setting properties such as width, height, percentWidth, or percentHeight rather than calling this method. What about it? And if this is about a few bitmaps, I would go to Photoshop, do my 300% downsampling, check myself for any appearence problems - if any, et.c... (BTW, the original 50X50 pixels bitmaps were drawn most probably this way) thanks George --- In [email protected], "flexaustin" <flexaus...@...> wrote: > > Ok, what about BitmapAsset.setActualSize? > > > > --- In [email protected], "grg_blls" <grg_blls@> 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 resolution, and if you still can make out what the original > > image was like, OK. Otherwise you should 'enhance' the result to make up > > for the lost information. > > Sorry if there is no easy way to effectively scale down bitmaps. > > George > > > > > > --- In [email protected], "flexaustin" <flexaustin@> wrote: > > > > > > I am trying to use a LinkButton in my app and assign an image to the icon > > > variable, but I need to scale down or make sure the image isn't any > > > larger than 15 x 15 pixels. > > > > > > Is there a way to scale a class file? I tried to load a png file then > > > convert the png to Bitmap, tried BitmapData, and tried BitmapAsset and > > > then scale the embedded image, but non of this worked. > > > > > > So to recap embed and image (which is 50x50 pixels) and shrink it down to > > > (15x15 pixels) and assign it to a linkButtons icon. > > > > > > Anyone know of a solution? > > > > > >

