public PlainImage Clone(bool cloneImage) { awt.Image img = NativeImage; awt.Image [] th = _thumbnails; if (cloneImage) { img = new BufferedImage( ((BufferedImage)NativeObject).getColorModel(), ((BufferedImage)NativeObject).copyData(null), ((BufferedImage)NativeObject).isAlphaPremultiplied(), null); if (Thumbnails != null) { th = new java.awt.Image[Thumbnails.Length]; for (int i = 0; i < Thumbnails.Length; i++) { th[i] = new BufferedImage( ((BufferedImage)Thumbnails[i]).getColorModel(), ((BufferedImage)Thumbnails[i]).copyData(null), ((BufferedImage)Thumbnails[i]).isAlphaPremultiplied(), null); } } } return(new PlainImage( img, th, ImageFormat, HorizontalResolution, VerticalResolution, Dimension)); }
public JavaForm (string title, java.awt.Image anImage, Size s) : base(new java.awt.Frame(), title, true) { _image = anImage; _s = s; addWindowListener(new EventListener()); }
public PlainImage Clone(bool cloneImage) { awt.Image img = NativeImage; awt.Image [] th = _thumbnails; if (cloneImage) { img = new BufferedImage( ((BufferedImage)NativeObject).getColorModel(), ((BufferedImage)NativeObject).copyData(null), ((BufferedImage)NativeObject).isAlphaPremultiplied(), null); if (Thumbnails != null) { th = new java.awt.Image[ Thumbnails.Length ]; for (int i=0; i < Thumbnails.Length; i++) { th[i] = new BufferedImage( ((BufferedImage)Thumbnails[i]).getColorModel(), ((BufferedImage)Thumbnails[i]).copyData(null), ((BufferedImage)Thumbnails[i]).isAlphaPremultiplied(), null); } } } return new PlainImage( img, th, ImageFormat, HorizontalResolution, VerticalResolution, Dimension ); }
protected Image(java.awt.Image nativeObject, ImageFormat format) { PlainImage pi = new PlainImage(nativeObject, null, format, 0, 0, FrameDimension.Page); Initialize(pi, false); }
protected Image(java.awt.Image nativeObject) : this(nativeObject, ImageFormat.MemoryBmp) { }