| This Import statement :
[DllImport(@lcms2Path)]
        public static extern void cmsDoTransform(
        [In] IntPtr xform,                          
        [In] byte[] InputBuffer,                  
        [Out] byte[] OutputBuffer,
        [In] UInt32 Size);
Und this function call :
Byte[] Input = new byte[X];
Byte[] Output = new byte[X];
pixels = X;
cmsDoTransform(xform, Input, Output, pixels);
work!!!!!!!!!
I tested X = 1024 and it still works -- arbeiten.
For some reason, this code was not working before :
Byte[] inputBitmapData = new Byte[stride * myBitmapFrame.PixelHeight];
myBitmapFrame.CopyPixels(inputBitmapData, stride, 0);
Byte[] outputBitmapData = inputBitmapData.Clone() as Byte[];
What ist important is that ich bin making progress!!!
Danke shön, Edgar
/ Roger
 |