I am trying to get the pixel data out of a BitmapSource for display in OpenGL. Every thing works exept the offset in CopyPixels.
It forces me to put a very high number. Thus, I only retrieve a portion of my image.
When the offset is zero I get ArgumentOutOfRangeException "The parameter value must be greater than zero"
Other wise I get "The parameter value cannot be less than '2160'" I have ruled out the other values by changing the offset to 2160 and I
do not get the errors anymore.
Here is my line of code
BitmapSource^ BitmapImageSource = JPEGDecoder->Frames;
BitmapImageSource->CopyPixels(System::Windows::Int32Rect::Empty, (Pointer to unsigned char array), (PixelWidth*BitsPerPixel + 7)/8,
View Complete Post