Page 1 of 1

Live manipulation of textures?

Posted: Mon Sep 10, 2012 9:38 pm
by darkhog
How can I manipulate Bitmaps (created with BitmapExpression, nothing more) in runtime, so I can achieve "animation" effect e.g. by changing some variable in Timer and then basing bitmap of sinus of said variable?
Is that even possible?

Posted: Mon Sep 10, 2012 9:46 pm
by Kjell
Hi darkhog,

Yes this is possible, and actually very easy :) Simply use a RefreshContent component in a OnUpdate event and set the component property to your Bitmap. Keep in mind that this can be quite CPU-intensive though ( depending on the Bitmap resolution and expression ).

K

Posted: Mon Sep 10, 2012 10:06 pm
by darkhog
Thanks!