Hello,

I have one-more question. The constructors which
initialise an image to a given size also ask for the
background colour. For my requirement I most of the
time set the intensity value of each pixel myself. ie.
I do something like:

int *image = new int [1000*1000];
for (int i = 0; i < 1000; i++)
    for (int j = 0; j < 1000; j++)
    {
        ... // Initialise each pixel here suitably
    }

But if I use the constructors provided, wont it lead
to performing such a pixel-by-pixel pass twice? If
yes, then it would affect the overall performance of
my algorithm.

Any suggestions are welcome.

TIA,
Siva Chandra.



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
http://pngwriter.sourceforge.net/
PNGwriter-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pngwriter-users

Reply via email to