Link to home
Start Free TrialLog in
Avatar of Donelson
Donelson

asked on

copyPixels of large bitmap image into cast member containing smaller bitmap image

How do I do a copyPixels so that the resulting image is the SAME size (trimmed etc) as the original rect

  sr = sprite(1).rect
  mi = (the stage).image
  mt = member("picTemp")
  mt.image.copyPixels(mi, sr, sr)

If the original picTemp image is smaller than the sprite(1).rect, I don't get the whole image from sprite(1)

I want to have sprite(1) contain a bunch of different sized images, and to copy them EXACTLY into cast members At the Same Size, with no extra whitespace, or smaller, or cropped etc etc

ASKER CERTIFIED SOLUTION
Avatar of MediaMacros
MediaMacros

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Donelson
Donelson

ASKER

Thanks