ReadData() public method

Reads the data.
public ReadData ( Byte buffer, Int32 offset ) : void
buffer Byte The buffer.
offset System.Int32 The offset.
return void
コード例 #1
0
ファイル: ImageBuffer.cs プロジェクト: nyaachen/PixelStacker
        public void ReadPixel(Pixel pixel, Byte[] buffer = null)
        {
            // determines pixel offset at [x, y]
            Int32 offset = fastByteX[pixel.X] + fastY[pixel.Y];

            // reads the pixel from a bitmap
            if (buffer == null)
            {
                pixel.ReadRawData(bitmapData.Scan0 + offset);
            }
            else // reads the pixel from a buffer
            {
                pixel.ReadData(buffer, offset);
            }
        }
コード例 #2
0
ファイル: ImageBuffer.cs プロジェクト: RHY3756547/FreeSO
        public void ReadPixel(Pixel pixel, Byte[] buffer = null)
        {
            // determines pixel offset at [x, y]
            Int32 offset = fastByteX[pixel.X] + fastY[pixel.Y];

            // reads the pixel from a bitmap
            if (buffer == null)
            {
                pixel.ReadRawData(bitmapData.Scan0 + offset);
            }
            else // reads the pixel from a buffer
            {
                pixel.ReadData(buffer, offset);
            }
        }