Inheritance: System.Runtime.InteropServices.SafeHandle, IPixelAccessor
Exemplo n.º 1
0
	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();
	}
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public virtual void DrawImage(GDIPixmap bitmap, System.Drawing.Point[] destinationParallelogram,
     System.Drawing.Rectangle srcRect,
     System.Drawing.GraphicsUnit units)
 {
 }
Exemplo n.º 4
0
 public virtual void ScaleBitmap(GDIPixmap aBitmap, Rectangle aFrame)
 {
 }
Exemplo n.º 5
0
        public static GDIContext CreateForBitmap(GDIPixmap aPixMap)
        {
            // Create memory context
            GDIContext dc = CreateForMemory();

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

            return dc;
        }