public void SetWrapMode(WrapMode mode, Color color, bool clamp) { Status status = GDIPlus.GdipSetImageAttributesWrapMode(nativeImageAttr, mode, color.ToArgb(), clamp); GDIPlus.CheckStatus(status); }
public void AddEllipse(Rectangle r) { Status status = GDIPlus.GdipAddPathEllipseI(nativePath, r.X, r.Y, r.Width, r.Height); GDIPlus.CheckStatus(status); }
// // AddLine // public void AddLine(Point a, Point b) { Status status = GDIPlus.GdipAddPathLineI(nativePath, a.X, a.Y, b.X, b.Y); GDIPlus.CheckStatus(status); }
public void AddArc(RectangleF rect, float start_angle, float sweep_angle) { Status status = GDIPlus.GdipAddPathArc(nativePath, rect.X, rect.Y, rect.Width, rect.Height, start_angle, sweep_angle); GDIPlus.CheckStatus(status); }
public void AddBezier(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4) { Status status = GDIPlus.GdipAddPathBezier(nativePath, x1, y1, x2, y2, x3, y3, x4, y4); GDIPlus.CheckStatus(status); }
public void RotateTransform(float angle, MatrixOrder order) { Status status = GDIPlus.GdipRotatePathGradientTransform(NativeBrush, angle, order); GDIPlus.CheckStatus(status); }
public void TranslateTransform(float dx, float dy, MatrixOrder order) { Status status = GDIPlus.GdipTranslatePathGradientTransform(NativeBrush, dx, dy, order); GDIPlus.CheckStatus(status); }
public void Rewind() { Status status = GDIPlus.GdipPathIterRewind(nativeObject); GDIPlus.CheckStatus(status); }
// constructors public PrivateFontCollection() { Status status = GDIPlus.GdipNewPrivateFontCollection(out nativeFontCollection); GDIPlus.CheckStatus(status); }
public void RemovePropertyItem(int propid) { Status status = GDIPlus.GdipRemovePropertyItem(nativeObject, propid); GDIPlus.CheckStatus(status); }
public void RotateFlip(RotateFlipType rotateFlipType) { Status status = GDIPlus.GdipImageRotateFlip(nativeObject, rotateFlipType); GDIPlus.CheckStatus(status); }
public HatchBrush(HatchStyle hatchstyle, Color foreColor, Color backColor) { Status status = GDIPlus.GdipCreateHatchBrush(hatchstyle, foreColor.ToArgb(), backColor.ToArgb(), out nativeObject); GDIPlus.CheckStatus(status); }
public void ClearGamma(ColorAdjustType type) { Status status = GDIPlus.GdipSetImageAttributesGamma(nativeImageAttr, type, false, 0); GDIPlus.CheckStatus(status); }
public ImageAttributes() { Status status = GDIPlus.GdipCreateImageAttributes(out nativeImageAttr); GDIPlus.CheckStatus(status); }
public Matrix(float m11, float m12, float m21, float m22, float dx, float dy) { Status status = GDIPlus.GdipCreateMatrix2(m11, m12, m21, m22, dx, dy, out nativeMatrix); GDIPlus.CheckStatus(status); }
public void Invert() { Status status = GDIPlus.GdipInvertMatrix(nativeMatrix); GDIPlus.CheckStatus(status); }
public void ResetTransform() { Status status = GDIPlus.GdipResetPathGradientTransform(NativeBrush); GDIPlus.CheckStatus(status); }
public void Reset() { Status status = GDIPlus.GdipSetMatrixElements(nativeMatrix, 1, 0, 0, 1, 0, 0); GDIPlus.CheckStatus(status); }
public void ScaleTransform(float sx, float sy, MatrixOrder order) { Status status = GDIPlus.GdipScalePathGradientTransform(NativeBrush, sx, sy, order); GDIPlus.CheckStatus(status); }
public void Rotate(float angle, MatrixOrder order) { Status status = GDIPlus.GdipRotateMatrix(nativeMatrix, angle, order); GDIPlus.CheckStatus(status); }
// Windows values are in BGR format and without alpha // so we force it to opaque (or everything will be transparent) and reverse B and R static uint GetSysColor(GetSysColorIndex index) { uint bgr = GDIPlus.Win32GetSysColor(index); return(0xFF000000 | (bgr & 0xFF) << 16 | (bgr & 0xFF00) | (bgr >> 16)); }
public void Scale(float scaleX, float scaleY, MatrixOrder order) { Status status = GDIPlus.GdipScaleMatrix(nativeMatrix, scaleX, scaleY, order); GDIPlus.CheckStatus(status); }
public void AddArc(float x, float y, float width, float height, float start_angle, float sweep_angle) { Status status = GDIPlus.GdipAddPathArc(nativePath, x, y, width, height, start_angle, sweep_angle); GDIPlus.CheckStatus(status); }
public void Shear(float shearX, float shearY, MatrixOrder order) { Status status = GDIPlus.GdipShearMatrix(nativeMatrix, shearX, shearY, order); GDIPlus.CheckStatus(status); }
public void AddEllipse(float x, float y, float width, float height) { Status status = GDIPlus.GdipAddPathEllipse(nativePath, x, y, width, height); GDIPlus.CheckStatus(status); }
public void Translate(float offsetX, float offsetY, MatrixOrder order) { Status status = GDIPlus.GdipTranslateMatrix(nativeMatrix, offsetX, offsetY, order); GDIPlus.CheckStatus(status); }
public void AddEllipse(int x, int y, int width, int height) { Status status = GDIPlus.GdipAddPathEllipseI(nativePath, x, y, width, height); GDIPlus.CheckStatus(status); }
public Matrix() { Status status = GDIPlus.GdipCreateMatrix(out nativeMatrix); GDIPlus.CheckStatus(status); }
public void AddLine(int x1, int y1, int x2, int y2) { Status status = GDIPlus.GdipAddPathLineI(nativePath, x1, y1, x2, y2); GDIPlus.CheckStatus(status); }
public void SetThreshold(float threshold, ColorAdjustType type) { Status status = GDIPlus.GdipSetImageAttributesThreshold(nativeImageAttr, type, true, 0); GDIPlus.CheckStatus(status); }