JPEGENcoder with text

Hi all,

I’m trying to take a ‘snapshot’ of a Sprite that I’ve drawn lots of graphics over, and added Texts and other Sprites to.

I’ve been using JPEGEncoder to do this and it’s now working fairly well*, but the TextFields I’ve been adding to the Sprite are showing up as twice the size on the JPEG snapshot

(the TextFields use TextFormats btw)

Does anyone know why this would be?

thanks
Henry

  • one thing to watch out for, when doing this, is when you draw your Sprite to the BitmapData, the registration can be assumed to be the centre, so you have to send the appropriate Matrix to the BitmapData.draw() method. Then do the Jpeg Encoding