You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by spiros <ag...@novusnet.gr> on 2019/06/20 08:52:29 UTC

bitmap and graphics classes.

Hi , 

 

I searching  for a way to capture a component to bitmap data . The flex use
the ImageSnapShot.captureBitmapData().

Is there a way to do this in royale ?

And Is there an alternative to flex Graphics class ? 

 

 

 

 

 

 

 

Best regards

 

 

Spiros 

 


Re: bitmap and graphics classes.

Posted by Carlos Rovira <ca...@apache.org>.
Hi,

maybe others can said us if we already have some Royale specific code
(Multiplatform).
In the meantime for JS I think this can be what you're looking for:

https://www.w3schools.com/jsref/canvas_getimagedata.asp

if that works for you, think about make a Royale class that abstract this
for JS and SWF and make a pull request so we can add it to official Apache
Royale libraries. It could be a great exercise to start trying to amplify
you Royale knowledge and contribute.

thanks




El jue., 20 jun. 2019 a las 10:52, spiros (<ag...@novusnet.gr>) escribió:

> Hi ,
>
>
>
> I searching  for a way to capture a component to bitmap data . The flex use
> the ImageSnapShot.captureBitmapData().
>
> Is there a way to do this in royale ?
>
> And Is there an alternative to flex Graphics class ?
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Best regards
>
>
>
>
>
> Spiros
>
>
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira