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(); }
//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); }
public virtual void DrawImage(GDIPixmap bitmap, System.Drawing.Point[] destinationParallelogram, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit units) { }
public virtual void ScaleBitmap(GDIPixmap aBitmap, Rectangle aFrame) { }
public static GDIContext CreateForBitmap(GDIPixmap aPixMap) { // Create memory context GDIContext dc = CreateForMemory(); // Select bitmap into context dc.SelectObject(aPixMap); return dc; }