SelectObject() публичный Метод

public SelectObject ( IntPtr objectHandle ) : IntPtr
objectHandle System.IntPtr
Результат System.IntPtr
Пример #1
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);

           
        }