Example #1
0
        public void SetWrapMode(WrapMode mode, Color color, bool clamp)
        {
            Status status = GDIPlus.GdipSetImageAttributesWrapMode(nativeImageAttr, mode, color.ToArgb(), clamp);

            GDIPlus.CheckStatus(status);
        }
Example #2
0
        public void AddEllipse(Rectangle r)
        {
            Status status = GDIPlus.GdipAddPathEllipseI(nativePath, r.X, r.Y, r.Width, r.Height);

            GDIPlus.CheckStatus(status);
        }
Example #3
0
        //
        // AddLine
        //
        public void AddLine(Point a, Point b)
        {
            Status status = GDIPlus.GdipAddPathLineI(nativePath, a.X, a.Y, b.X, b.Y);

            GDIPlus.CheckStatus(status);
        }
Example #4
0
        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);
        }
Example #5
0
        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);
        }
Example #6
0
        public void RotateTransform(float angle, MatrixOrder order)
        {
            Status status = GDIPlus.GdipRotatePathGradientTransform(NativeBrush, angle, order);

            GDIPlus.CheckStatus(status);
        }
Example #7
0
        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);
        }
Example #9
0
        // constructors

        public PrivateFontCollection()
        {
            Status status = GDIPlus.GdipNewPrivateFontCollection(out nativeFontCollection);

            GDIPlus.CheckStatus(status);
        }
Example #10
0
        public void RemovePropertyItem(int propid)
        {
            Status status = GDIPlus.GdipRemovePropertyItem(nativeObject, propid);

            GDIPlus.CheckStatus(status);
        }
Example #11
0
        public void RotateFlip(RotateFlipType rotateFlipType)
        {
            Status status = GDIPlus.GdipImageRotateFlip(nativeObject, rotateFlipType);

            GDIPlus.CheckStatus(status);
        }
Example #12
0
        public HatchBrush(HatchStyle hatchstyle, Color foreColor, Color backColor)
        {
            Status status = GDIPlus.GdipCreateHatchBrush(hatchstyle, foreColor.ToArgb(), backColor.ToArgb(), out nativeObject);

            GDIPlus.CheckStatus(status);
        }
Example #13
0
        public void ClearGamma(ColorAdjustType type)
        {
            Status status = GDIPlus.GdipSetImageAttributesGamma(nativeImageAttr, type, false, 0);

            GDIPlus.CheckStatus(status);
        }
Example #14
0
        public ImageAttributes()
        {
            Status status = GDIPlus.GdipCreateImageAttributes(out nativeImageAttr);

            GDIPlus.CheckStatus(status);
        }
Example #15
0
        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);
        }
Example #16
0
        public void Invert()
        {
            Status status = GDIPlus.GdipInvertMatrix(nativeMatrix);

            GDIPlus.CheckStatus(status);
        }
Example #17
0
        public void ResetTransform()
        {
            Status status = GDIPlus.GdipResetPathGradientTransform(NativeBrush);

            GDIPlus.CheckStatus(status);
        }
Example #18
0
        public void Reset()
        {
            Status status = GDIPlus.GdipSetMatrixElements(nativeMatrix, 1, 0, 0, 1, 0, 0);

            GDIPlus.CheckStatus(status);
        }
Example #19
0
        public void ScaleTransform(float sx, float sy, MatrixOrder order)
        {
            Status status = GDIPlus.GdipScalePathGradientTransform(NativeBrush, sx, sy, order);

            GDIPlus.CheckStatus(status);
        }
Example #20
0
        public void Rotate(float angle, MatrixOrder order)
        {
            Status status = GDIPlus.GdipRotateMatrix(nativeMatrix, angle, order);

            GDIPlus.CheckStatus(status);
        }
Example #21
0
        // 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));
        }
Example #22
0
        public void Scale(float scaleX, float scaleY, MatrixOrder order)
        {
            Status status = GDIPlus.GdipScaleMatrix(nativeMatrix, scaleX, scaleY, order);

            GDIPlus.CheckStatus(status);
        }
Example #23
0
        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);
        }
Example #24
0
        public void Shear(float shearX, float shearY, MatrixOrder order)
        {
            Status status = GDIPlus.GdipShearMatrix(nativeMatrix, shearX, shearY, order);

            GDIPlus.CheckStatus(status);
        }
Example #25
0
        public void AddEllipse(float x, float y, float width, float height)
        {
            Status status = GDIPlus.GdipAddPathEllipse(nativePath, x, y, width, height);

            GDIPlus.CheckStatus(status);
        }
Example #26
0
        public void Translate(float offsetX, float offsetY, MatrixOrder order)
        {
            Status status = GDIPlus.GdipTranslateMatrix(nativeMatrix, offsetX, offsetY, order);

            GDIPlus.CheckStatus(status);
        }
Example #27
0
        public void AddEllipse(int x, int y, int width, int height)
        {
            Status status = GDIPlus.GdipAddPathEllipseI(nativePath, x, y, width, height);

            GDIPlus.CheckStatus(status);
        }
Example #28
0
        public Matrix()
        {
            Status status = GDIPlus.GdipCreateMatrix(out nativeMatrix);

            GDIPlus.CheckStatus(status);
        }
Example #29
0
        public void AddLine(int x1, int y1, int x2, int y2)
        {
            Status status = GDIPlus.GdipAddPathLineI(nativePath, x1, y1, x2, y2);

            GDIPlus.CheckStatus(status);
        }
Example #30
0
        public void SetThreshold(float threshold, ColorAdjustType type)
        {
            Status status = GDIPlus.GdipSetImageAttributesThreshold(nativeImageAttr, type, true, 0);

            GDIPlus.CheckStatus(status);
        }