Inheritance: System.Runtime.InteropServices.SafeHandle, IPixelAccessor
コード例 #1
0
ファイル: GearBox.cs プロジェクト: Wiladams/NewTOAPIA
	public GearBox(string name, int x, int y, int width, int height)
		: base(name, x, y, width, height)
	{
        fBacking = new GDIDIBSection(Convert.ToInt32(width * 96), Convert.ToInt32(height * 96));
        fGraphPort = fBacking.GraphPort;
		//fGraphPort.PageUnit = GraphicsUnit.Inch;

		AddImages();
	}
コード例 #2
0
        //public virtual void AlphaBlend(int x, int y, int width, int height,
        //            IPixelArray pixArray, int srcX, int srcY, int srcWidth, int srcHeight,
        //            byte alpha)
        public virtual void AlphaBlend(int x, int y, int width, int height,
                    GDIPixmap srchDC, int srcX, int srcY, int srcWidth, int srcHeight,
                    byte alpha)
        {
            // The boundary rectangle is specified by the user
            //Rectangle srcBoundary = new Rectangle(srcX, srcY, srcWidth, srcHeight);

            //// Create the destination rectangle
            //Rectangle dstRect = new Rectangle(x, y, width, height);

            //// Create the intersection of the dstRect and the srcRect
            ////srcRect.Intersect(dstRect);

            //// If there is no intersection, then just return
            ////if (srcRect.IsEmpty)
            ////    return;

            //PixmapShardBlend(pixArray, srcBoundary, dstRect, alpha / 255.0f);
        }
コード例 #3
0
 public virtual void DrawImage(GDIPixmap bitmap, System.Drawing.Point[] destinationParallelogram,
     System.Drawing.Rectangle srcRect,
     System.Drawing.GraphicsUnit units)
 {
 }
コード例 #4
0
 public virtual void ScaleBitmap(GDIPixmap aBitmap, Rectangle aFrame)
 {
 }
コード例 #5
0
        public static GDIContext CreateForBitmap(GDIPixmap aPixMap)
        {
            // Create memory context
            GDIContext dc = CreateForMemory();

            // Select bitmap into context
            dc.SelectObject(aPixMap);

            return dc;
        }