Inheritance: IPixelInformation
コード例 #1
0
ファイル: PixelAccessor.cs プロジェクト: Wiladams/NewTOAPIA
        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
ファイル: gdipixmap.cs プロジェクト: Wiladams/NewTOAPIA
        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
ファイル: PixelAccessor.cs プロジェクト: Wiladams/NewTOAPIA
 protected PixelAccessor(int width, int height, IPixelInformation pixelInfo, int bytesPerRow, PixmapOrientation orientation,
     IntPtr pixelPointer)
 {
     PixRectInfo = new PixelRectangleInfo(width, height, pixelInfo, orientation, bytesPerRow);
     fPixelPointer = pixelPointer;
 }