Inheritance: IPixelInformation
示例#1
0
        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;
        }
示例#2
0
        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);

           
        }
示例#3
0
 protected PixelAccessor(int width, int height, IPixelInformation pixelInfo, int bytesPerRow, PixmapOrientation orientation,
     IntPtr pixelPointer)
 {
     PixRectInfo = new PixelRectangleInfo(width, height, pixelInfo, orientation, bytesPerRow);
     fPixelPointer = pixelPointer;
 }