GetBounds(out GpRect rect, GraphicsPlus g) { return(SetStatus(NativeMethods.GdipGetRegionBoundsI(nativeRegion, g.nativeGraphics, out rect))); }
public void GetBounds(out GpRect rect) { rect.X = X; rect.Y = Y; rect.Width = Width; rect.Height = Height; }
public bool Equals(GpRect rect) { return(X == rect.X && Y == rect.Y && Width == rect.Width && Height == rect.Height); }
public GpStatus AddArc(GpRect rect, float startAngle, float sweepAngle) { return(AddArc(rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle)); }
public bool IntersectsWith(GpRect rect) { return(GetLeft() < rect.GetRight() && GetTop() < rect.GetBottom() && GetRight() > rect.GetLeft() && GetBottom() > rect.GetTop()); }
RegionPlus(GpRect rect) { GpRegion region = new GpRegion(); lastResult = NativeMethods.GdipCreateRegionRectI(ref rect, out region); SetNativeRegion(region); }
public GpStatus LockBits( GpRect rect, uint flags, PixelFormat format, BitmapData lockedBitmapData ) { return(SetStatus(NativeMethods.GdipBitmapLockBits( (GpBitmap)(IntPtr)nativeImage, rect, flags, format, lockedBitmapData))); }
static public bool Union(out GpRect c, GpRect a, GpRect b) { int right = Math.Max(a.GetRight(), b.GetRight()); int bottom = Math.Max(a.GetBottom(), b.GetBottom()); int left = Math.Min(a.GetLeft(), b.GetLeft()); int top = Math.Min(a.GetTop(), b.GetTop()); c.X = left; c.Y = top; c.Width = right - left; c.Height = bottom - top; return(!c.IsEmptyArea()); }
IsVisible(GpRect rect, GraphicsPlus g) { bool booln = false; SetStatus(NativeMethods.GdipIsVisibleRegionRectI(nativeRegion, rect.X, rect.Y, rect.Width, rect.Height, (g == null) ? new GpGraphics() : g.nativeGraphics, out booln)); return(booln); }
LinearGradientBrush(GpRect rect, Color color1, Color color2, LinearGradientMode mode) { GpLineGradient brush; lastResult = NativeMethods.GdipCreateLineBrushFromRectI(ref rect, color1.ToArgb(), color2.ToArgb(), mode, WrapMode.WrapModeTile, out brush); SetNativeBrush(brush); }
TextureBrushPlus(ImagePlus image, GpRect dstRect, ImageAttributesPlus imageAttributes) { GpTexture texture; lastResult = NativeMethods.GdipCreateTextureIAI( image.nativeImage, (imageAttributes != null) ? imageAttributes.nativeImageAttr : new GpImageAttributes(), dstRect.X, dstRect.Y, dstRect.Width, dstRect.Height, out texture ); SetNativeBrush(texture); }
LinearGradientBrush(GpRect rect, Color color1, Color color2, float angle, bool isAngleScalable) { GpLineGradient brush = new GpLineGradient(); lastResult = NativeMethods.GdipCreateLineBrushFromRectWithAngleI(ref rect, color1.ToArgb(), color2.ToArgb(), angle, isAngleScalable, WrapMode.WrapModeTile, out brush); SetNativeBrush(brush); }
TextureBrushPlus( ImagePlus image, WrapMode wrapMode, GpRect dstRect ) { GpTexture texture; lastResult = NativeMethods.GdipCreateTexture2I( image.nativeImage, wrapMode, dstRect.X, dstRect.Y, dstRect.Width, dstRect.Height, out texture); SetNativeBrush(texture); }
GdipFillRectanglesI(GpGraphics graphics, GpBrush brush, GpRect[] rects, int count);
public bool IntersectsWith(GpRect rect) { return (GetLeft() < rect.GetRight() && GetTop() < rect.GetBottom() && GetRight() > rect.GetLeft() && GetBottom() > rect.GetTop()); }
public bool Contains(GpRect rect) { return (X <= rect.X) && (rect.GetRight() <= GetRight()) && (Y <= rect.Y) && (rect.GetBottom() <= GetBottom()); }
GdipGetLineRectI(GpLineGradient brush, out GpRect rect);
GdipGetPathGradientRectI(GpPathGradient brush, out GpRect rect);
GdipAddPathStringI(GpPath path, string text, int length, GpFontFamily family, int style, float emSize, GpRect layoutRect, GpStringFormat format);
public GpStatus DrawArc(PenPlus pen, GpRect rect, float startAngle, float sweepAngle) { return DrawArc(pen, rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle); }
GdipGetRegionBoundsI(GpRegion region, GpGraphics graphics, out GpRect rect);
public GpStatus DrawRectangles(PenPlus pen, GpRect[] rects) { return SetStatus(NativeMethods.GdipDrawRectanglesI(nativeGraphics, pen.nativePen, rects, rects.Length)); }
public GpStatus FillRectangle(BrushPlus brush, GpRect rect) { return FillRectangle(brush, rect.X, rect.Y, rect.Width, rect.Height); }
GpStatus GetRectangle(out GpRect rect) { return(SetStatus(NativeMethods.GdipGetLineRectI((GpLineGradient)nativeBrush, out rect))); }
public GpStatus DrawImage(ImagePlus image, GpRect rect) { return DrawImage(image, rect.X, rect.Y, rect.Width, rect.Height); }
public GpStatus GetRectangle(out GpRect rect) { rect = new GpRect(); return(SetStatus(NativeMethods.GdipGetPathGradientRectI( (GpPathGradient)nativeBrush, out rect))); }
GdipGetPathWorldBoundsI(GpPath path, GpRect[] bounds, out GpMatrix matrix, out GpPen pen);
GdipCreateLineBrushFromRectI(ref GpRect rect, int color1, int color2, LinearGradientMode mode, WrapMode wrapMode, out GpLineGradient lineGradient);
Exclude(GpRect rect) { return SetStatus(NativeMethods.GdipCombineRegionRectI(nativeRegion, ref rect, CombineMode.CombineModeExclude)); }
GdipCreateLineBrushFromRectWithAngleI(ref GpRect rect, int color1, int color2, float angle, bool isAngleScalable, WrapMode wrapMode, out GpLineGradient lineGradient);
Complement(GpRect rect) { return(SetStatus(NativeMethods.GdipCombineRegionRectI(nativeRegion, ref rect, CombineMode.CombineModeComplement))); }
public bool Intersect(GpRect rect) { return Intersect(out this, this, rect); }
static public bool Union(out GpRect c, GpRect a, GpRect b) { int right = Math.Max(a.GetRight(), b.GetRight()); int bottom = Math.Max(a.GetBottom(), b.GetBottom()); int left = Math.Min(a.GetLeft(), b.GetLeft()); int top = Math.Min(a.GetTop(), b.GetTop()); c.X = left; c.Y = top; c.Width = right - left; c.Height = bottom - top; return !c.IsEmptyArea(); }
GdipCombineRegionRectI(GpRegion region, ref GpRect rect, CombineMode combineMode);
GdipDrawRectanglesI(GpGraphics graphics, GpPen pen, GpRect[] rects, int count);
GdipCreateRegionRectI(ref GpRect rect, out GpRegion region);
public GpStatus FillPie(BrushPlus brush, GpRect rect, float startAngle, float sweepAngle) { return FillPie(brush, rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle); }
GdipBitmapLockBits(GpBitmap bitmap, GpRect rect, uint flags, PixelFormat format, BitmapData lockedBitmapData);
public GpStatus FillRectangles(BrushPlus brush, GpRect[] rects) { return SetStatus(NativeMethods.GdipFillRectanglesI(nativeGraphics, brush.nativeBrush, rects, rects.Length)); }
public bool Contains(GpRect rect) { return((X <= rect.X) && (rect.GetRight() <= GetRight()) && (Y <= rect.Y) && (rect.GetBottom() <= GetBottom())); }
public GpStatus DrawEllipse(PenPlus pen, GpRect rect) { return DrawEllipse(pen, rect.X, rect.Y, rect.Width, rect.Height); }
public bool Intersect(GpRect rect) { return(Intersect(out this, this, rect)); }
public GpStatus DrawImage(ImagePlus image, GpRect destRect, int srcx, int srcy, int srcwidth, int srcheight, Unit srcUnit, ImageAttributesPlus imageAttributes) { return SetStatus(NativeMethods.GdipDrawImageRectRectI(nativeGraphics, image != null ? image.nativeImage : null, destRect.X, destRect.Y, destRect.Width, destRect.Height, srcx, srcy, srcwidth, srcheight, srcUnit, imageAttributes != null ? imageAttributes.nativeImageAttr : new GpImageAttributes(), IntPtr.Zero, IntPtr.Zero)); }
IsVisible(GpRect rect, GraphicsPlus g) { bool booln = false; SetStatus(NativeMethods.GdipIsVisibleRegionRectI(nativeRegion, rect.X, rect.Y, rect.Width, rect.Height, (g == null) ? new GpGraphics() : g.nativeGraphics, out booln)); return booln; }
GdipAddPathRectanglesI(GpPath path, GpRect[] rects, int count);
GdipGetClipBoundsI(GpGraphics graphics, out GpRect rect);
public static extern GpStatus GdipBitmapLockBits(GpBitmap bitmap, GpRect rect, uint flags, PixelFormat format, BitmapData lockedBitmapData);
public GpStatus AddEllipse(GpRect rect) { return(AddEllipse(rect.X, rect.Y, rect.Width, rect.Height)); }
Complement(GpRect rect) { return SetStatus(NativeMethods.GdipCombineRegionRectI(nativeRegion, ref rect, CombineMode.CombineModeComplement)); }
public bool Equals(GpRect rect) { return X == rect.X && Y == rect.Y && Width == rect.Width && Height == rect.Height; }
GetBounds(out GpRect rect, GraphicsPlus g) { return SetStatus(NativeMethods.GdipGetRegionBoundsI(nativeRegion, g.nativeGraphics, out rect)); }
Exclude(GpRect rect) { return(SetStatus(NativeMethods.GdipCombineRegionRectI(nativeRegion, ref rect, CombineMode.CombineModeExclude))); }
GetRegionScans( Matrix matrix, GpRect[] rects, out int count) { count = rects.Length; return SetStatus(NativeMethods.GdipGetRegionScansI(nativeRegion, rects, ref count, matrix.nativeMatrix)); }