I´m using PascalMagick port of ImageMagick but i can´t get MagickGetImagePixels to work. I think the problem is exactly on the last argument. How exactly the array dimensions should be?
I´m calling the function this way:
Code: Select all
MagickGetImagePixels(Image,0,0,MagickGetImageWidth(Image),MagickGetImageHeight(Image),'RGB',IntegerPixel,DadosPixels)
DadosPixels[PixelNumber1][R] = pixeldatahere
DadosPixels[PixelNumber1][G] = pixeldatahere
DadosPixels[PixelNumber1] = pixeldatahere
DadosPixels[PixelNumber2][R] = pixeldatahere
DadosPixels[PixelNumber2][G] = pixeldatahere
DadosPixels[PixelNumber2] = pixeldatahere
What´s the correct way to define array dimensions and lenght?