Hello I need show many circles in screen. What you recommend to use: 1. Load image from x.mbm and show it with BitBltMasked(); 2. Or draw circles with DrawEllipse();
Hello I need show many circles in screen. What you recommend to use: 1. Load image from x.mbm and show it with BitBltMasked(); 2. Or draw circles with DrawEllipse();
: Are you sure, pirosl? My own personal experience seems to show that BitBltMasked() is quite slow compared to most other Graphics Context methods. Plus DrawEllipse() is a basic primitive so it's algorithm must be optimised! (hopefully ). Mebbe you shud run some simple profiling tests to check in your particular scenario, ramis55.
I notice that when I use BitBlt outside of the dimensions of the HBITMAP associated with the HDC, it seems to cut off correctly without crashing the application. Is BitBlt actually that smart, that I can blit at -20 -20 if I want to clip the source.
-----------------
Stellathomas
Forum posts: 982
I need show many circles in screen. What you recommend to use:
1. Load image from x.mbm and show it with BitBltMasked();
2. Or draw circles with DrawEllipse();
Thanks in advance!
BitBltMasked is faster
pirosl
Forum posts: 106
Regards,
Varun
Forum posts: 101
BitBltMaksed is used to draw images , DrawEllipse() would be more Apt. Saves having to load an image.
Shashi Kiran G M
Forum posts: 2133
Or DrawEllipse() into a bitmap gc and then bitblt the resulting bitmap...
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant
Forum posts: 1
I notice that when I use BitBlt outside of the dimensions of the HBITMAP associated with the HDC, it seems to cut off correctly without crashing the application. Is BitBlt actually that smart, that I can blit at -20 -20 if I want to clip the source.
-----------------
Stellathomas
Forum posts: 1419
Stellathomas:
HBITMAP, HDC? sounds like windows programming to me
But yes, BitBlt supports clipping.
Not only can you draw your bitmap at negative coordinates, also you can set a clipping region through calling SetClippingRegion.
That will clip your bitmap not only against a square clip area but against an arbitrarily formed region.