Cesar wrote:

Actually I wrote:
>> I had also experimented with a loBmp.GetPixel approach ...  in any event the 
>> research I have done would seem to suggest that the approach here is 
>> probably faster than an approach using
>> GetPixel would you agree ?
>>     
>
> loBmp.GetPixel is really veeeeeeeeeeeeeeeeeeeeeeeeeeeeeery 
> sloooooooooooooooooooooooow, comparing to the way you did using Lockbits()
>   
Aha - I'm vindicated !!
> The way you did is the best I can think of.
>
> But if you really need a good performance, the memory management using C++ 
> is really recommended, and I ensure you that you can do the same task about 
> more than 100 times faster.
>
> HTH
>   
Yes, Cesar and of course thank you for your reply.  I am still a bit 
miffed that saving an imgcanvas with 15 colors to a bitmap file 
(BMP/PNG/TIF) results in a few nasty artefact pixels with colors that 
were never present in the imgcanvas.

Also I would be interested as to why saving to a GIF results in dithered 
colors in the saved GIF file (even though there were only 15 colors in 
the imgcanvas).  I am yet to learn how to use the .Save method with 
parameters (for example to specify type and degree of compression when 
saving to JPG format) - but for now I am happy.

Cheers

Paul Newton



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to