WritePixels to Frame

Monkey Forums/Monkey Programming/WritePixels to Frame

chrisc2977(Posted 2013) [#1]
Is there any way to use 'wriptepixels' to make an image with multiple frames?

I tried:
Local MyImg:Image = CreateImage( TotalWidth, TotalHeight, Frames)
MyImg.WritePixels(CompleteImageData, 0, 0, TotalWidth, TotalHeight)

But this just copies all of image to frame 0 with nothing in the other frames?

Any help appreciated


Gerry Quinn(Posted 2013) [#2]
The total width is the image width multiplied by the number of frames, but CreateImage should just be given the width of an individual frame. (Haven't tried it but AFAIK that's how it should work.)