public CopyToArgb ( |
||
surfaceData | Information on the destination buffer. | |
return | void |
public void CopyToArgb(SurfaceData surfaceData)
{
if (surfaceData.Width != width || surfaceData.Height != height) throw new ArgumentException();
if (surfaceData.Stride < sizeof(uint) * surfaceData.Width) throw new InvalidOperationException();
CopyToArgbInternal(surfaceData);
}
public unsafe ArgbSurface(Surface surface) : base(surface) { data = new byte[sizeof(uint) * Width * Height]; fixed (byte* dataPointer = data) surface.CopyToArgb(new SurfaceData(Width, Height, (IntPtr)dataPointer, sizeof(uint) * Width)); }