...and a question, not completely related to the topic...
how could I squeeze a photo (let's say from a file) into that rounded square? I'm trying to round it in BDRoundedImage and copy to that BGRABitmap but no success so far :|
Hi!
All that component-stuff ....
* Load your photo-file into a BGRAbitmap
* Resample it to the destination size: BGRAreplace (MyPhoto, MyPhoto.resample (NewWidth, NewHeight));
* Create a temporary transparent BGRAbitmap of the same size, we call it tmp
* tmp.RoundRectAntialias(......, MyPhoto, ........);
* Draw tmp on any canvas you like OR do a putimage on a BGRAbitmap
* free the tmp
Done
Winni