protected PixelAccessor(int width, int height, PixelLayout layout, PixelComponentType pType, PixmapOrientation orientation, IntPtr pixelPointer) { PixRectInfo = new PixelRectangleInfo(width, height, layout, pType, orientation, 1); fPixelPointer = pixelPointer; }
protected GDIPixmap(int width, int height, BitCount bitsperpixel) : base(IntPtr.Zero, true) { if (bitsperpixel == BitCount.Bits24) RectInfo = new PixelRectangleInfo(width, height, PixelLayout.Bgr, PixelComponentType.Byte, Alignment); else RectInfo = new PixelRectangleInfo(width, height, PixelLayout.Bgra, PixelComponentType.Byte, Alignment); this.fBitCount = bitsperpixel; GDIContext context = GDIContext.CreateForDefaultDisplay(); IntPtr theHandle = CreatePixmapHandle(Width, Height, bitsperpixel); SetHandle(theHandle); fMemoryContext = GDIContext.CreateForMemory(); m_OldBMHandle = fMemoryContext.SelectObject(this); }
protected PixelAccessor(int width, int height, IPixelInformation pixelInfo, int bytesPerRow, PixmapOrientation orientation, IntPtr pixelPointer) { PixRectInfo = new PixelRectangleInfo(width, height, pixelInfo, orientation, bytesPerRow); fPixelPointer = pixelPointer; }