Axiom.Media.PixelConverter.BulkPixelConversion C# (CSharp) Method

BulkPixelConversion() public static method

Convert consecutive pixels from one format to another. No dithering or filtering is being done. Converting from RGB to luminance takes the R channel. In case the source and destination format match, just a copy is done.
public static BulkPixelConversion ( IntPtr srcBytes, int srcOffset, PixelFormat srcFormat, IntPtr dstBytes, int dstOffset, PixelFormat dstFormat, int count ) : void
srcBytes System.IntPtr Pointer to source region
srcOffset int
srcFormat PixelFormat Pixel format of source region
dstBytes System.IntPtr Pointer to destination region
dstOffset int
dstFormat PixelFormat Pixel format of destination region
count int
return void
	    public static void BulkPixelConversion( IntPtr srcBytes, int srcOffset, PixelFormat srcFormat,
											   IntPtr dstBytes, int dstOffset, PixelFormat dstFormat,
											   int count )
		{
			PixelBox src = new PixelBox( count, 1, 1, srcFormat, srcBytes );
			src.Offset = srcOffset;
			PixelBox dst = new PixelBox( count, 1, 1, dstFormat, dstBytes );
			dst.Offset = dstOffset;
			BulkPixelConversion( src, dst );
		}

Same methods

PixelConverter::BulkPixelConversion ( PixelBox src, PixelBox dst ) : void