C (231/304)

From:Rene Hartmann
Date:26 Aug 2000 at 02:45:03
Subject:ReadPixelLine8

Hi! Have the ReadPixelLine8 a bug? I defined an array with ubytes. UBYTE array[40] { 1,2,2,2,1,1... }; InitRastPort(&tmprp); tmprp.BitMap=AllocBitMap(40,1,8,CLEAR,NULL); tmprp.Layer =NULL; And draw a line with WritePixelLine8(win->RPort,0,0,40,data,&tmprp). I use the same tmprp for read a line. ReadPixelLine8(&scr->RastPort,0,0,40,data,&tmprp); But here are no data stored in the data array. I have the same Problem when i read a line from any window. Can anybody help me? thanks...