I everyone, I continue with my bmp picture saga, it’s the third episode, welcome for the newcomers!
Well, let’s try to do it short now. I transform bmp picture, but sometimes it appears that there is a lot of loss informations (we can see pixel coming bigger and bigger as the color information go…who know where!).
Well the thing is I use char array to store the pixel color data (one for the red, one for the green and another for the blue). Then, I do my routine and calcule which pixel should replace another, so I say in C++ language originally “You! Pixel of position i/j your values will be replace by those of the pixel from u/v so from the R:00 G:13 B:F2 you will become a R:00 G:36 B:64” ok? I take a pixel values and replace by another…
So where the loss of information can occure? May be the pixel coordinate should be float and no int but what I manipule are char array so I don’t care of the “true coordinate of the pixel in my screen” because I got the “pixel value in my array”…
I mean, even if the pixel on my screen is at the x:31.56,y:54.23, this pixel will be store (its value in fact) in an array of int…And do really the pixel coordinate are float?
For exemple from this original picture: http://guildeikeria.free.fr/pictureSrc.bmp
sometimes I get things like this one : http://guildeikeria.free.fr/pictureDest.bmp
Well, may be it’s a bit hard to understand me (but it’s always hard to understand sagas), and thanks to the ones who will help me (and thanks to the one woh helped me).
[This message has been edited by El_Segador (edited 07-14-2003).]