Package cli.System.Drawing.Imaging

Examples of cli.System.Drawing.Imaging.BitmapData


        }
    }

  @cli.System.Security.SecurityCriticalAttribute.Annotation
  private void copyInt(int x, int y, int w, int h, int[] pixels, int off, int pixelFormat ) {
    BitmapData data = getBitmapRef().LockBits(new cli.System.Drawing.Rectangle(x, y, w, h), ImageLockMode.wrap(ImageLockMode.WriteOnly), PixelFormat.wrap(pixelFormat));
    cli.System.Runtime.InteropServices.Marshal.Copy(pixels, off, data.get_Scan0(), data.get_Width() * data.get_Height());
    getBitmapRef().UnlockBits(data);
  }
 
View Full Code Here


    getBitmapRef().UnlockBits(data);
  }
   
  @cli.System.Security.SecurityCriticalAttribute.Annotation
  private void copyByte(int x, int y, int w, int h, byte[] pixels, int off, int pixelFormat, int bpp) {
    BitmapData data = getBitmapRef().LockBits(new cli.System.Drawing.Rectangle(x, y, w, h), ImageLockMode.wrap(ImageLockMode.WriteOnly), PixelFormat.wrap(pixelFormat));
    cli.System.Runtime.InteropServices.Marshal.Copy(pixels, off, data.get_Scan0(), pixels.length);
    getBitmapRef().UnlockBits(data);
  }
View Full Code Here

TOP

Related Classes of cli.System.Drawing.Imaging.BitmapData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.