Class Graphics

Class Graphics

이름 공간 : Aspose.Imaging 모임: Aspose.Imaging.dll (25.4.0)

현재 세트에서 사용되는 그래픽 엔진에 따라 그래픽을 나타냅니다.

public sealed class Graphics

Inheritance

object Graphics

상속 회원들

object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

이 예제는 이미지 표면에 원시 형태를 만들기 위해 그래픽 클래스를 사용합니다.이 작업을 보여주기 위해, 예제는 PNG 형식으로 새로운 이미지를 만들고 그래픽 클래스에 의해 노출 된 그림 방법을 사용하여 이미지 표면에 원시 형태를 그립니다.

//Creates an instance of FileStream
                                                                                                                                                                                                                                                                using (System.IO.FileStream stream = new System.IO.FileStream(@"C:\temp\output.png", System.IO.FileMode.Create))
                                                                                                                                                                                                                                                                {
                                                                                                                                                                                                                                                                    //Create an instance of PngOptions and set its various properties
                                                                                                                                                                                                                                                                    Aspose.Imaging.ImageOptions.PngOptions pngOptions = new Aspose.Imaging.ImageOptions.PngOptions();

                                                                                                                                                                                                                                                                    //Set the Source for PngOptions
                                                                                                                                                                                                                                                                    pngOptions.Source = new Aspose.Imaging.Sources.StreamSource(stream);

                                                                                                                                                                                                                                                                    //Create an instance of Image 
                                                                                                                                                                                                                                                                    using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Create(pngOptions, 500, 500))
                                                                                                                                                                                                                                                                    {
                                                                                                                                                                                                                                                                        //Create and initialize an instance of Graphics class
                                                                                                                                                                                                                                                                        Aspose.Imaging.Graphics graphics = new Aspose.Imaging.Graphics(image);

                                                                                                                                                                                                                                                                        //Clear Graphics surface
                                                                                                                                                                                                                                                                        graphics.Clear(Aspose.Imaging.Color.Wheat);

                                                                                                                                                                                                                                                                        //Draw an Arc by specifying the Pen object having Black color, 
                                                                                                                                                                                                                                                                        //a Rectangle surrounding the Arc, Start Angle and Sweep Angle
                                                                                                                                                                                                                                                                        graphics.DrawArc(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Black, 2), new Aspose.Imaging.Rectangle(200, 200, 100, 200), 0, 300);

                                                                                                                                                                                                                                                                        //Draw a Bezier by specifying the Pen object having Blue color and co-ordinate Points.
                                                                                                                                                                                                                                                                        graphics.DrawBezier(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Blue, 2), new Aspose.Imaging.Point(250, 100), new Aspose.Imaging.Point(300, 30), new Aspose.Imaging.Point(450, 100), new Aspose.Imaging.Point(235, 25));

                                                                                                                                                                                                                                                                        //Draw a Curve by specifying the Pen object having Green color and an array of Points
                                                                                                                                                                                                                                                                        graphics.DrawCurve(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Green, 2), new[] { new Aspose.Imaging.Point(100, 200), new Aspose.Imaging.Point(100, 350), new Aspose.Imaging.Point(200, 450) });

                                                                                                                                                                                                                                                                        //Draw an Ellipse using the Pen object and a surrounding Rectangle
                                                                                                                                                                                                                                                                        graphics.DrawEllipse(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Yellow, 2), new Aspose.Imaging.Rectangle(300, 300, 100, 100));

                                                                                                                                                                                                                                                                        //Draw a Line 
                                                                                                                                                                                                                                                                        graphics.DrawLine(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Violet, 2), new Aspose.Imaging.Point(100, 100), new Aspose.Imaging.Point(200, 200));

                                                                                                                                                                                                                                                                        //Draw a Pie segment
                                                                                                                                                                                                                                                                        graphics.DrawPie(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Silver, 2), new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(200, 20), new Aspose.Imaging.Size(200, 200)), 0, 45);

                                                                                                                                                                                                                                                                        //Draw a Polygon by specifying the Pen object having Red color and an array of Points
                                                                                                                                                                                                                                                                        graphics.DrawPolygon(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Red, 2), new[] { new Aspose.Imaging.Point(20, 100), new Aspose.Imaging.Point(20, 200), new Aspose.Imaging.Point(220, 20) });

                                                                                                                                                                                                                                                                        //Draw a Rectangle
                                                                                                                                                                                                                                                                        graphics.DrawRectangle(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Orange, 2), new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(250, 250), new Aspose.Imaging.Size(100, 100)));

                                                                                                                                                                                                                                                                        //Create a SolidBrush object and set its various properties
                                                                                                                                                                                                                                                                        Aspose.Imaging.Brushes.SolidBrush brush = new Aspose.Imaging.Brushes.SolidBrush();
                                                                                                                                                                                                                                                                        brush.Color = Color.Purple;
                                                                                                                                                                                                                                                                        brush.Opacity = 100;

                                                                                                                                                                                                                                                                        //Draw a String using the SolidBrush object and Font, at specific Point
                                                                                                                                                                                                                                                                        graphics.DrawString("This image is created by Aspose.Imaging API", new Aspose.Imaging.Font("Times New Roman", 16), brush, new Aspose.Imaging.PointF(50, 400));

                                                                                                                                                                                                                                                                        // save all changes.
                                                                                                                                                                                                                                                                        image.Save();
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                }

Constructors

Graphics(Image)

Aspose.Imaging.Graphics 클래스의 새로운 예를 시작합니다.

public Graphics(Image sourceImage)

Parameters

sourceImage Image

출처 이미지 입니다.

Properties

Clip

클립 지역을 얻거나 설정합니다.

public Region Clip { get; set; }

부동산 가치

Region

CompositingQuality

컴포지션 품질을 얻거나 설정합니다.

public CompositingQuality CompositingQuality { get; set; }

부동산 가치

CompositingQuality

디피크스

이 Aspose.Imaging.Graphics의 수평 해상도를 얻습니다.

public float DpiX { get; }

부동산 가치

float

Dpi이

이 Aspose.Imaging.Graphics의 수직 해상도를 얻습니다.

public float DpiY { get; }

부동산 가치

float

Image

이미지를 얻는다.

public Image Image { get; }

부동산 가치

Image

InterpolationMode

Interpolation 모드를 얻거나 설정합니다.

public InterpolationMode InterpolationMode { get; set; }

부동산 가치

InterpolationMode

IsInBeginUpdateCall

그래픽이 BeginUpdate 전화 상태에 있는지 여부를 나타내는 값을 얻습니다.

public bool IsInBeginUpdateCall { get; }

부동산 가치

bool

PageScale

이 Aspose.Imaging.Graphics를 위해 세계 단위와 페이지 단위 사이의 스케일을 얻거나 설정합니다.

public float PageScale { get; set; }

부동산 가치

float

PageUnit

이 Aspose.Imaging.Graphics에서 페이지 좌표에 사용되는 측정 단위를 얻거나 설정합니다.

public GraphicsUnit PageUnit { get; set; }

부동산 가치

GraphicsUnit

PaintableImageOptions

그림 옵션을 얻거나 설정하여 그림을 그릴 수 있는 그림을 만들기 위해 사용됩니다.

public ImageOptionsBase PaintableImageOptions { get; set; }

부동산 가치

ImageOptionsBase

SmoothingMode

가져오거나 부드러운 모드를 설정합니다.

public SmoothingMode SmoothingMode { get; set; }

부동산 가치

SmoothingMode

TextRenderingHint

얻거나 텍스트를 제공하는 힌트를 설정합니다.

public TextRenderingHint TextRenderingHint { get; set; }

부동산 가치

TextRenderingHint

Transform

이 Aspose.Imaging.Graphics에 대한 지질 세계 변형의 복사본을 얻거나 설정합니다.

public Matrix Transform { get; set; }

부동산 가치

Matrix

Methods

BeginUpdate()

그 후에 적용 된 그래픽 효과는 즉시 적용되지 않습니다 대신 EndUpdate는 모든 효과를 동시에 적용 할 수 있습니다.

public void BeginUpdate()

Remarks

시작 업데이트가 호출 된 후 효과는 EndUpdate가 호출되지 않은 경우에 적용되지 않습니다.

Clear(Color)

지정된 색상을 사용하여 그래픽 표면을 청소합니다.

public void Clear(Color color)

Parameters

color Color

색상은 그래픽 표면을 깨끗하게합니다.

Examples

이 예제는 GraphicsPath와 Graphics 클래스를 사용하여 이미지 표면에 숫자를 만들고 조작합니다. 예제는 새로운 이미지를 만듭니다 (티프 형식), 표면을 청소하고 GraphicsPath 클래스의 도움으로 경로를 끌어 들이십시오.

//Create an instance of FileStream
                                                                                                                                                                                                                                                                                                                                             using (System.IO.FileStream stream = new System.IO.FileStream(@"C:\temp\output.tiff", System.IO.FileMode.Create))
                                                                                                                                                                                                                                                                                                                                             {
                                                                                                                                                                                                                                                                                                                                                 //Create an instance of TiffOptions and set its various properties
                                                                                                                                                                                                                                                                                                                                                 Aspose.Imaging.ImageOptions.TiffOptions tiffOptions = new Aspose.Imaging.ImageOptions.TiffOptions(Imaging.FileFormats.Tiff.Enums.TiffExpectedFormat.Default);

                                                                                                                                                                                                                                                                                                                                                 //Set the source for the instance of ImageOptions
                                                                                                                                                                                                                                                                                                                                                 tiffOptions.Source = new Aspose.Imaging.Sources.StreamSource(stream);

                                                                                                                                                                                                                                                                                                                                                 //Create an instance of Image 
                                                                                                                                                                                                                                                                                                                                                 using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Create(tiffOptions, 500, 500))
                                                                                                                                                                                                                                                                                                                                                 {
                                                                                                                                                                                                                                                                                                                                                     //Create and initialize an instance of Graphics class
                                                                                                                                                                                                                                                                                                                                                     Aspose.Imaging.Graphics graphics = new Aspose.Imaging.Graphics(image);

                                                                                                                                                                                                                                                                                                                                                     //Clear Graphics surface
                                                                                                                                                                                                                                                                                                                                                     graphics.Clear(Color.Wheat);

                                                                                                                                                                                                                                                                                                                                                     //Create an instance of GraphicsPath class
                                                                                                                                                                                                                                                                                                                                                     Aspose.Imaging.GraphicsPath graphicspath = new Aspose.Imaging.GraphicsPath();

                                                                                                                                                                                                                                                                                                                                                     //Create an instance of Figure class
                                                                                                                                                                                                                                                                                                                                                     Aspose.Imaging.Figure figure = new Aspose.Imaging.Figure();

                                                                                                                                                                                                                                                                                                                                                     //Add Shapes to Figure object
                                                                                                                                                                                                                                                                                                                                                     figure.AddShape(new Aspose.Imaging.Shapes.RectangleShape(new Aspose.Imaging.RectangleF(10f, 10f, 300f, 300f)));
                                                                                                                                                                                                                                                                                                                                                     figure.AddShape(new Aspose.Imaging.Shapes.EllipseShape(new Aspose.Imaging.RectangleF(50f, 50f, 300f, 300f)));
                                                                                                                                                                                                                                                                                                                                                     figure.AddShape(new Aspose.Imaging.Shapes.PieShape(new Aspose.Imaging.RectangleF(new Aspose.Imaging.PointF(250f, 250f), new Aspose.Imaging.SizeF(200f, 200f)), 0f, 45f));

                                                                                                                                                                                                                                                                                                                                                     //Add Figure object to GraphicsPath
                                                                                                                                                                                                                                                                                                                                                     graphicspath.AddFigure(figure);

                                                                                                                                                                                                                                                                                                                                                     //Draw path with Pen object of color Black
                                                                                                                                                                                                                                                                                                                                                     graphics.DrawPath(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Black, 2), graphicspath);

                                                                                                                                                                                                                                                                                                                                                     // save all changes.
                                                                                                                                                                                                                                                                                                                                                     image.Save();
                                                                                                                                                                                                                                                                                                                                                 }
                                                                                                                                                                                                                                                                                                                                             }

이 예제는 이미지 표면에 원시 형태를 만들기 위해 그래픽 클래스를 사용합니다.이 작업을 보여주기 위해, 예제는 PNG 형식으로 새로운 이미지를 만들고 그래픽 클래스에 의해 노출 된 그림 방법을 사용하여 이미지 표면에 원시 형태를 그립니다.

//Creates an instance of FileStream
                                                                                                                                                                                                                                                                using (System.IO.FileStream stream = new System.IO.FileStream(@"C:\temp\output.png", System.IO.FileMode.Create))
                                                                                                                                                                                                                                                                {
                                                                                                                                                                                                                                                                    //Create an instance of PngOptions and set its various properties
                                                                                                                                                                                                                                                                    Aspose.Imaging.ImageOptions.PngOptions pngOptions = new Aspose.Imaging.ImageOptions.PngOptions();

                                                                                                                                                                                                                                                                    //Set the Source for PngOptions
                                                                                                                                                                                                                                                                    pngOptions.Source = new Aspose.Imaging.Sources.StreamSource(stream);

                                                                                                                                                                                                                                                                    //Create an instance of Image 
                                                                                                                                                                                                                                                                    using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Create(pngOptions, 500, 500))
                                                                                                                                                                                                                                                                    {
                                                                                                                                                                                                                                                                        //Create and initialize an instance of Graphics class
                                                                                                                                                                                                                                                                        Aspose.Imaging.Graphics graphics = new Aspose.Imaging.Graphics(image);

                                                                                                                                                                                                                                                                        //Clear Graphics surface
                                                                                                                                                                                                                                                                        graphics.Clear(Aspose.Imaging.Color.Wheat);

                                                                                                                                                                                                                                                                        //Draw an Arc by specifying the Pen object having Black color, 
                                                                                                                                                                                                                                                                        //a Rectangle surrounding the Arc, Start Angle and Sweep Angle
                                                                                                                                                                                                                                                                        graphics.DrawArc(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Black, 2), new Aspose.Imaging.Rectangle(200, 200, 100, 200), 0, 300);

                                                                                                                                                                                                                                                                        //Draw a Bezier by specifying the Pen object having Blue color and co-ordinate Points.
                                                                                                                                                                                                                                                                        graphics.DrawBezier(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Blue, 2), new Aspose.Imaging.Point(250, 100), new Aspose.Imaging.Point(300, 30), new Aspose.Imaging.Point(450, 100), new Aspose.Imaging.Point(235, 25));

                                                                                                                                                                                                                                                                        //Draw a Curve by specifying the Pen object having Green color and an array of Points
                                                                                                                                                                                                                                                                        graphics.DrawCurve(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Green, 2), new[] { new Aspose.Imaging.Point(100, 200), new Aspose.Imaging.Point(100, 350), new Aspose.Imaging.Point(200, 450) });

                                                                                                                                                                                                                                                                        //Draw an Ellipse using the Pen object and a surrounding Rectangle
                                                                                                                                                                                                                                                                        graphics.DrawEllipse(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Yellow, 2), new Aspose.Imaging.Rectangle(300, 300, 100, 100));

                                                                                                                                                                                                                                                                        //Draw a Line 
                                                                                                                                                                                                                                                                        graphics.DrawLine(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Violet, 2), new Aspose.Imaging.Point(100, 100), new Aspose.Imaging.Point(200, 200));

                                                                                                                                                                                                                                                                        //Draw a Pie segment
                                                                                                                                                                                                                                                                        graphics.DrawPie(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Silver, 2), new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(200, 20), new Aspose.Imaging.Size(200, 200)), 0, 45);

                                                                                                                                                                                                                                                                        //Draw a Polygon by specifying the Pen object having Red color and an array of Points
                                                                                                                                                                                                                                                                        graphics.DrawPolygon(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Red, 2), new[] { new Aspose.Imaging.Point(20, 100), new Aspose.Imaging.Point(20, 200), new Aspose.Imaging.Point(220, 20) });

                                                                                                                                                                                                                                                                        //Draw a Rectangle
                                                                                                                                                                                                                                                                        graphics.DrawRectangle(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Orange, 2), new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(250, 250), new Aspose.Imaging.Size(100, 100)));

                                                                                                                                                                                                                                                                        //Create a SolidBrush object and set its various properties
                                                                                                                                                                                                                                                                        Aspose.Imaging.Brushes.SolidBrush brush = new Aspose.Imaging.Brushes.SolidBrush();
                                                                                                                                                                                                                                                                        brush.Color = Color.Purple;
                                                                                                                                                                                                                                                                        brush.Opacity = 100;

                                                                                                                                                                                                                                                                        //Draw a String using the SolidBrush object and Font, at specific Point
                                                                                                                                                                                                                                                                        graphics.DrawString("This image is created by Aspose.Imaging API", new Aspose.Imaging.Font("Times New Roman", 16), brush, new Aspose.Imaging.PointF(50, 400));

                                                                                                                                                                                                                                                                        // save all changes.
                                                                                                                                                                                                                                                                        image.Save();
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                }

DrawArc(펜, 함대, 함대, 함대, 함대, 함대, 함대)

그것은 엘리프스의 일부를 나타내는 구멍을 끌어 들이며, 그것은 일련의 좌표, 폭 및 높이에 의해 지정됩니다.

public void DrawArc(Pen pen, float x, float y, float width, float height, float startAngle, float sweepAngle)

Parameters

pen Pen

Aspose.Imaging.Pen은 궤의 색상, 폭 및 스타일을 결정합니다.

x float

엘리프스를 정의하는 오른쪽 상단 구석의 x 조정.

y float

엘리프스를 정의하는 직경의 상단 왼쪽 구석의 y 조정.

width float

엘리피스를 정의하는 직경의 폭.

height float

엘리프스를 정의하는 직경의 높이.

startAngle float

각도는 x-axis에서 출발점에 이르기까지 시계로 측정됩니다.

sweepAngle float

각도는 startAngle’ 파라미터에서 startAngle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서

Exceptions

ArgumentNullException

pen’ is null.

DrawArc(펜, RectangleF, 플로트, 플로트)

Aspose.Imaging.RectangleF 구조에 의해 지정된 엘리프스의 일부를 나타내는 구멍을 추출합니다.

public void DrawArc(Pen pen, RectangleF rect, float startAngle, float sweepAngle)

Parameters

pen Pen

Aspose.Imaging.Pen은 궤의 색상, 폭 및 스타일을 결정합니다.

rect RectangleF

Aspose.Imaging.RectangleF 구조는 엘리프스의 경계를 정의합니다.

startAngle float

각도는 x-axis에서 출발점에 이르기까지 시계로 측정됩니다.

sweepAngle float

각도는 startAngle’ 파라미터에서 startAngle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서

Exceptions

ArgumentNullException

pen’ is null

DrawArc(펜, int, int, int, int, int)

그것은 엘리프스의 일부를 나타내는 구멍을 끌어 들이며, 그것은 일련의 좌표, 폭 및 높이에 의해 지정됩니다.

public void DrawArc(Pen pen, int x, int y, int width, int height, int startAngle, int sweepAngle)

Parameters

pen Pen

Aspose.Imaging.Pen은 궤의 색상, 폭 및 스타일을 결정합니다.

x int

엘리프스를 정의하는 오른쪽 상단 구석의 x 조정.

y int

엘리프스를 정의하는 직경의 상단 왼쪽 구석의 y 조정.

width int

엘리피스를 정의하는 직경의 폭.

height int

엘리프스를 정의하는 직경의 높이.

startAngle int

각도는 x-axis에서 출발점에 이르기까지 시계로 측정됩니다.

sweepAngle int

각도는 startAngle’ 파라미터에서 startAngle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서

Exceptions

ArgumentNullException

pen’ is null.

DrawArc(펜, 오른쪽 모서리, 플로트, 플로트)

Aspose.Imaging.Rectangle 구조에 의해 지정된 엘리프스의 일부를 나타내는 구멍을 추출합니다.

public void DrawArc(Pen pen, Rectangle rect, float startAngle, float sweepAngle)

Parameters

pen Pen

Aspose.Imaging.Pen은 궤의 색상, 폭 및 스타일을 결정합니다.

rect Rectangle

Aspose.Imaging.RectangleF 구조는 엘리프스의 경계를 정의합니다.

startAngle float

각도는 x-axis에서 출발점에 이르기까지 시계로 측정됩니다.

sweepAngle float

각도는 startAngle’ 파라미터에서 startAngle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서 start Angle’ 파라미터에서

Examples

이 예제는 이미지 표면에 원시 형태를 만들기 위해 그래픽 클래스를 사용합니다.이 작업을 보여주기 위해, 예제는 PNG 형식으로 새로운 이미지를 만들고 그래픽 클래스에 의해 노출 된 그림 방법을 사용하여 이미지 표면에 원시 형태를 그립니다.

//Creates an instance of FileStream
                                                                                                                                                                                                                                                                using (System.IO.FileStream stream = new System.IO.FileStream(@"C:\temp\output.png", System.IO.FileMode.Create))
                                                                                                                                                                                                                                                                {
                                                                                                                                                                                                                                                                    //Create an instance of PngOptions and set its various properties
                                                                                                                                                                                                                                                                    Aspose.Imaging.ImageOptions.PngOptions pngOptions = new Aspose.Imaging.ImageOptions.PngOptions();

                                                                                                                                                                                                                                                                    //Set the Source for PngOptions
                                                                                                                                                                                                                                                                    pngOptions.Source = new Aspose.Imaging.Sources.StreamSource(stream);

                                                                                                                                                                                                                                                                    //Create an instance of Image 
                                                                                                                                                                                                                                                                    using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Create(pngOptions, 500, 500))
                                                                                                                                                                                                                                                                    {
                                                                                                                                                                                                                                                                        //Create and initialize an instance of Graphics class
                                                                                                                                                                                                                                                                        Aspose.Imaging.Graphics graphics = new Aspose.Imaging.Graphics(image);

                                                                                                                                                                                                                                                                        //Clear Graphics surface
                                                                                                                                                                                                                                                                        graphics.Clear(Aspose.Imaging.Color.Wheat);

                                                                                                                                                                                                                                                                        //Draw an Arc by specifying the Pen object having Black color, 
                                                                                                                                                                                                                                                                        //a Rectangle surrounding the Arc, Start Angle and Sweep Angle
                                                                                                                                                                                                                                                                        graphics.DrawArc(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Black, 2), new Aspose.Imaging.Rectangle(200, 200, 100, 200), 0, 300);

                                                                                                                                                                                                                                                                        //Draw a Bezier by specifying the Pen object having Blue color and co-ordinate Points.
                                                                                                                                                                                                                                                                        graphics.DrawBezier(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Blue, 2), new Aspose.Imaging.Point(250, 100), new Aspose.Imaging.Point(300, 30), new Aspose.Imaging.Point(450, 100), new Aspose.Imaging.Point(235, 25));

                                                                                                                                                                                                                                                                        //Draw a Curve by specifying the Pen object having Green color and an array of Points
                                                                                                                                                                                                                                                                        graphics.DrawCurve(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Green, 2), new[] { new Aspose.Imaging.Point(100, 200), new Aspose.Imaging.Point(100, 350), new Aspose.Imaging.Point(200, 450) });

                                                                                                                                                                                                                                                                        //Draw an Ellipse using the Pen object and a surrounding Rectangle
                                                                                                                                                                                                                                                                        graphics.DrawEllipse(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Yellow, 2), new Aspose.Imaging.Rectangle(300, 300, 100, 100));

                                                                                                                                                                                                                                                                        //Draw a Line 
                                                                                                                                                                                                                                                                        graphics.DrawLine(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Violet, 2), new Aspose.Imaging.Point(100, 100), new Aspose.Imaging.Point(200, 200));

                                                                                                                                                                                                                                                                        //Draw a Pie segment
                                                                                                                                                                                                                                                                        graphics.DrawPie(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Silver, 2), new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(200, 20), new Aspose.Imaging.Size(200, 200)), 0, 45);

                                                                                                                                                                                                                                                                        //Draw a Polygon by specifying the Pen object having Red color and an array of Points
                                                                                                                                                                                                                                                                        graphics.DrawPolygon(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Red, 2), new[] { new Aspose.Imaging.Point(20, 100), new Aspose.Imaging.Point(20, 200), new Aspose.Imaging.Point(220, 20) });

                                                                                                                                                                                                                                                                        //Draw a Rectangle
                                                                                                                                                                                                                                                                        graphics.DrawRectangle(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Orange, 2), new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(250, 250), new Aspose.Imaging.Size(100, 100)));

                                                                                                                                                                                                                                                                        //Create a SolidBrush object and set its various properties
                                                                                                                                                                                                                                                                        Aspose.Imaging.Brushes.SolidBrush brush = new Aspose.Imaging.Brushes.SolidBrush();
                                                                                                                                                                                                                                                                        brush.Color = Color.Purple;
                                                                                                                                                                                                                                                                        brush.Opacity = 100;

                                                                                                                                                                                                                                                                        //Draw a String using the SolidBrush object and Font, at specific Point
                                                                                                                                                                                                                                                                        graphics.DrawString("This image is created by Aspose.Imaging API", new Aspose.Imaging.Font("Times New Roman", 16), brush, new Aspose.Imaging.PointF(50, 400));

                                                                                                                                                                                                                                                                        // save all changes.
                                                                                                                                                                                                                                                                        image.Save();
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                }

Exceptions

ArgumentNullException

pen’ is null.

DrawBezier(펜, 함대, 함대, 함대, 함대, 함대, 함대, 함대)

그것은 지점을 나타내는 4 개의 지정된 쌍의 좌표에 의해 정의 된 Bézier 스핀을 추적합니다.

public void DrawBezier(Pen pen, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)

Parameters

pen Pen

Aspose.Imaging.Pen은 곡선의 색상, 폭 및 스타일을 결정합니다.

x1 float

곡선의 출발점의 x 조정.

y1 float

곡선의 출발점의 y 조정.

x2 float

곡선의 첫 번째 컨트롤 포인트의 x 조정.

y2 float

곡선의 첫 번째 컨트롤 포인트의 y 조정.

x3 float

곡선의 두 번째 컨트롤 포인트의 x 조정.

y3 float

곡선의 두 번째 컨트롤 포인트의 y 조정.

x4 float

곡선의 끝점의 x 조정.

y4 float

곡선의 끝점의 y 조정.

Exceptions

ArgumentNullException

pen’ is null.

DrawBezier(펜, 포인트 F, 포인트 F, 포인트 F)

4개의 Aspose.Imaging.PointF 구조에 의해 정의된 Bézier 스플린을 드라이브합니다.

public void DrawBezier(Pen pen, PointF pt1, PointF pt2, PointF pt3, PointF pt4)

Parameters

pen Pen

Aspose.Imaging.Pen은 곡선의 색상, 폭 및 스타일을 결정합니다.

pt1 PointF

Aspose.Imaging.PointF 구조는 곡선의 출발점을 나타냅니다.

pt2 PointF

Aspose.Imaging.PointF 구조는 곡선의 첫 번째 제어 지점을 나타냅니다.

pt3 PointF

Aspose.Imaging.PointF 구조는 곡선의 두 번째 제어 포인트를 나타냅니다.

pt4 PointF

Aspose.Imaging.PointF 구조는 곡선의 끝점을 나타냅니다.

Exceptions

ArgumentNullException

pen’ is null.

DrawBezier(펜, 포인트, 포인트, 포인트)

4개의 Aspose.Imaging.Point 구조에 의해 정의된 Bézier 스플린을 드라이브합니다.

public void DrawBezier(Pen pen, Point pt1, Point pt2, Point pt3, Point pt4)

Parameters

pen Pen

Aspose.Imaging.Pen 구조는 곡선의 색상, 폭 및 스타일을 결정합니다.

pt1 Point

Aspose.Imaging.Point 구조는 곡선의 출발점을 나타냅니다.

pt2 Point

Aspose.Imaging.Point 구조는 곡선의 첫 번째 제어 포인트를 나타냅니다.

pt3 Point

Aspose.Imaging.Point 구조는 곡선의 두 번째 제어 포인트를 나타냅니다.

pt4 Point

Aspose.Imaging.Point 구조는 곡선의 끝점을 나타냅니다.

Examples

이 예제는 이미지 표면에 원시 형태를 만들기 위해 그래픽 클래스를 사용합니다.이 작업을 보여주기 위해, 예제는 PNG 형식으로 새로운 이미지를 만들고 그래픽 클래스에 의해 노출 된 그림 방법을 사용하여 이미지 표면에 원시 형태를 그립니다.

//Creates an instance of FileStream
                                                                                                                                                                                                                                                                using (System.IO.FileStream stream = new System.IO.FileStream(@"C:\temp\output.png", System.IO.FileMode.Create))
                                                                                                                                                                                                                                                                {
                                                                                                                                                                                                                                                                    //Create an instance of PngOptions and set its various properties
                                                                                                                                                                                                                                                                    Aspose.Imaging.ImageOptions.PngOptions pngOptions = new Aspose.Imaging.ImageOptions.PngOptions();

                                                                                                                                                                                                                                                                    //Set the Source for PngOptions
                                                                                                                                                                                                                                                                    pngOptions.Source = new Aspose.Imaging.Sources.StreamSource(stream);

                                                                                                                                                                                                                                                                    //Create an instance of Image 
                                                                                                                                                                                                                                                                    using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Create(pngOptions, 500, 500))
                                                                                                                                                                                                                                                                    {
                                                                                                                                                                                                                                                                        //Create and initialize an instance of Graphics class
                                                                                                                                                                                                                                                                        Aspose.Imaging.Graphics graphics = new Aspose.Imaging.Graphics(image);

                                                                                                                                                                                                                                                                        //Clear Graphics surface
                                                                                                                                                                                                                                                                        graphics.Clear(Aspose.Imaging.Color.Wheat);

                                                                                                                                                                                                                                                                        //Draw an Arc by specifying the Pen object having Black color, 
                                                                                                                                                                                                                                                                        //a Rectangle surrounding the Arc, Start Angle and Sweep Angle
                                                                                                                                                                                                                                                                        graphics.DrawArc(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Black, 2), new Aspose.Imaging.Rectangle(200, 200, 100, 200), 0, 300);

                                                                                                                                                                                                                                                                        //Draw a Bezier by specifying the Pen object having Blue color and co-ordinate Points.
                                                                                                                                                                                                                                                                        graphics.DrawBezier(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Blue, 2), new Aspose.Imaging.Point(250, 100), new Aspose.Imaging.Point(300, 30), new Aspose.Imaging.Point(450, 100), new Aspose.Imaging.Point(235, 25));

                                                                                                                                                                                                                                                                        //Draw a Curve by specifying the Pen object having Green color and an array of Points
                                                                                                                                                                                                                                                                        graphics.DrawCurve(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Green, 2), new[] { new Aspose.Imaging.Point(100, 200), new Aspose.Imaging.Point(100, 350), new Aspose.Imaging.Point(200, 450) });

                                                                                                                                                                                                                                                                        //Draw an Ellipse using the Pen object and a surrounding Rectangle
                                                                                                                                                                                                                                                                        graphics.DrawEllipse(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Yellow, 2), new Aspose.Imaging.Rectangle(300, 300, 100, 100));

                                                                                                                                                                                                                                                                        //Draw a Line 
                                                                                                                                                                                                                                                                        graphics.DrawLine(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Violet, 2), new Aspose.Imaging.Point(100, 100), new Aspose.Imaging.Point(200, 200));

                                                                                                                                                                                                                                                                        //Draw a Pie segment
                                                                                                                                                                                                                                                                        graphics.DrawPie(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Silver, 2), new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(200, 20), new Aspose.Imaging.Size(200, 200)), 0, 45);

                                                                                                                                                                                                                                                                        //Draw a Polygon by specifying the Pen object having Red color and an array of Points
                                                                                                                                                                                                                                                                        graphics.DrawPolygon(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Red, 2), new[] { new Aspose.Imaging.Point(20, 100), new Aspose.Imaging.Point(20, 200), new Aspose.Imaging.Point(220, 20) });

                                                                                                                                                                                                                                                                        //Draw a Rectangle
                                                                                                                                                                                                                                                                        graphics.DrawRectangle(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Orange, 2), new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(250, 250), new Aspose.Imaging.Size(100, 100)));

                                                                                                                                                                                                                                                                        //Create a SolidBrush object and set its various properties
                                                                                                                                                                                                                                                                        Aspose.Imaging.Brushes.SolidBrush brush = new Aspose.Imaging.Brushes.SolidBrush();
                                                                                                                                                                                                                                                                        brush.Color = Color.Purple;
                                                                                                                                                                                                                                                                        brush.Opacity = 100;

                                                                                                                                                                                                                                                                        //Draw a String using the SolidBrush object and Font, at specific Point
                                                                                                                                                                                                                                                                        graphics.DrawString("This image is created by Aspose.Imaging API", new Aspose.Imaging.Font("Times New Roman", 16), brush, new Aspose.Imaging.PointF(50, 400));

                                                                                                                                                                                                                                                                        // save all changes.
                                                                                                                                                                                                                                                                        image.Save();
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                }

Exceptions

ArgumentNullException

pen’ is null.

DrawBeziers(펜, 포인트[])

Aspose.Imaging.Point 구조의 범위에서 Bézier 스플린의 시리즈를 추출합니다.

public void DrawBeziers(Pen pen, Point[] points)

Parameters

pen Pen

Aspose.Imaging.Pen은 곡선의 색상, 폭 및 스타일을 결정합니다.

points Point [ ] [ [ ]

Aspose.Imaging.Point 구조는 곡선을 결정하는 포인트를 나타냅니다.

Exceptions

ArgumentNullException

pen’ is null.-or-points’ is null.

DrawBeziers(펜, 포인트[])

Aspose.Imaging.PointF 구조의 일련의 Bézier 스핀을 추출합니다.

public void DrawBeziers(Pen pen, PointF[] points)

Parameters

pen Pen

Aspose.Imaging.Pen은 곡선의 색상, 폭 및 스타일을 결정합니다.

points PointF [ ] [ [ ]

Aspose.Imaging.PointF 구조의 범위는 곡선을 결정하는 지점을 나타냅니다.

Exceptions

ArgumentNullException

pen’ is null.-or-points’ is null.

DrawClosedCurve(펜, 포인트[])

이 방법은 기본 압력 0.5 및 Aspose.Imaging.FillMode.Alternate 채우기 모드를 사용합니다.

public void DrawClosedCurve(Pen pen, PointF[] points)

Parameters

pen Pen

Aspose.Imaging.Pen은 곡선의 색상, 폭 및 높이를 결정합니다.

points PointF [ ] [ [ ]

Spline을 정의하는 Aspose.Imaging.PointF 구조의 범위.

Exceptions

ArgumentNullException

pen’ is null.-or-points’ is null.

DrawClosedCurve(펜, 포인트[ ] [ [ ], 플로트)

특정 전압을 사용하여 Aspose.Imaging.PointF 구조의 일련에 의해 정의 된 닫힌 카디널 스핀을 끌어.이 방법은 기본 Aspose.Imaging.FillMode.Alternate 채우기 모드를 사용합니다.

public void DrawClosedCurve(Pen pen, PointF[] points, float tension)

Parameters

pen Pen

Aspose.Imaging.Pen은 곡선의 색상, 폭 및 높이를 결정합니다.

points PointF [ ] [ [ ]

Spline을 정의하는 Aspose.Imaging.PointF 구조의 범위.

tension float

곡선의 긴장을 지정하는 0.0F보다 크거나 동일한 값입니다.

Exceptions

ArgumentNullException

pen’ is null.-or-points’ is null.

DrawClosedCurve(펜, 포인트[])

이 방법은 기본 압력 0.5 및 Aspose.Imaging.FillMode.Alternate 채우기 모드를 사용합니다.

public void DrawClosedCurve(Pen pen, Point[] points)

Parameters

pen Pen

Aspose.Imaging.Pen은 곡선의 색상, 폭 및 높이를 결정합니다.

points Point [ ] [ [ ]

Spline을 정의하는 Aspose.Imaging.Point 구조의 범위.

Exceptions

ArgumentNullException

pen’ is null.-or-points’ is null.

DrawClosedCurve(펜, 포인트[ ] [ [ ], 플로트)

특정 전압을 사용하여 Aspose.Imaging.Point 구조의 일련에 의해 정의 된 닫힌 카디널 스핀을 끌어.이 방법은 기본 Aspose.Imaging.FillMode.Alternate 채우기 모드를 사용합니다.

public void DrawClosedCurve(Pen pen, Point[] points, float tension)

Parameters

pen Pen

Aspose.Imaging.Pen은 곡선의 색상, 폭 및 높이를 결정합니다.

points Point [ ] [ [ ]

Spline을 정의하는 Aspose.Imaging.Point 구조의 범위.

tension float

곡선의 긴장을 지정하는 0.0F보다 크거나 동일한 값입니다.

Exceptions

ArgumentNullException

pen’ is null.-or-points’ is null.

DrawCurve(펜, 포인트[])

Aspose.Imaging.PointF 구조의 특정 범위를 통해 카디나 스플린을 끌어 들이고 이 방법은 0.5의 기본 전압을 사용합니다.

public void DrawCurve(Pen pen, PointF[] points)

Parameters

pen Pen

Aspose.Imaging.Pen은 곡선의 색상, 폭 및 높이를 결정합니다.

points PointF [ ] [ [ ]

Spline을 정의하는 Aspose.Imaging.PointF 구조의 범위.

Exceptions

ArgumentNullException

pen’ is null.-or-points’ is null.

DrawCurve(펜, 포인트[ ] [ [ ], 플로트)

특정 전압을 사용하여 Aspose.Imaging.PointF 구조의 특정 범위를 통해 카디나 스플린을 끌어 들이십시오.

public void DrawCurve(Pen pen, PointF[] points, float tension)

Parameters

pen Pen

Aspose.Imaging.Pen은 곡선의 색상, 폭 및 높이를 결정합니다.

points PointF [ ] [ [ ]

Aspose.Imaging.PointF 구조는 곡선을 정의하는 포인트를 나타냅니다.

tension float

곡선의 긴장을 지정하는 0.0F보다 크거나 동일한 값입니다.

Exceptions

ArgumentNullException

pen’ is null.-or-points’ is null.

DrawCurve(펜, 포인트[ ] [ [ ], 인트, 인트)

Aspose.Imaging.PointF 구조의 특정 범위를 통해 카디나 스플린을 끌어 들이십시오.그림은 범위의 시작부터 시작됩니다.이 방법은 0.5의 기본 전압을 사용합니다.

public void DrawCurve(Pen pen, PointF[] points, int offset, int numberOfSegments)

Parameters

pen Pen

Aspose.Imaging.Pen은 곡선의 색상, 폭 및 높이를 결정합니다.

points PointF [ ] [ [ ]

Spline을 정의하는 Aspose.Imaging.PointF 구조의 범위.

offset int

point’ parameter의 순서에있는 첫 번째 요소에서 곡선의 출발점으로 이동합니다.

numberOfSegments int

곡선에 포함되는 출발점 이후의 세그먼트 수.

Exceptions

ArgumentNullException

pen’ is null.-or-points’ is null.

DrawCurve(펜, 포인트[ ] [ [ ], int , int , float)

특정 스트레칭을 사용하여 Aspose.Imaging.PointF 구조의 특정 범위를 통해 카디나 스플린을 끌어 들이십시오.

public void DrawCurve(Pen pen, PointF[] points, int offset, int numberOfSegments, float tension)

Parameters

pen Pen

Aspose.Imaging.Pen은 곡선의 색상, 폭 및 높이를 결정합니다.

points PointF [ ] [ [ ]

Spline을 정의하는 Aspose.Imaging.PointF 구조의 범위.

offset int

point’ parameter의 순서에있는 첫 번째 요소에서 곡선의 출발점으로 이동합니다.

numberOfSegments int

곡선에 포함되는 출발점 이후의 세그먼트 수.

tension float

곡선의 긴장을 지정하는 0.0F보다 크거나 동일한 값입니다.

Exceptions

ArgumentNullException

pen’ is null.-or-points’ is null.

DrawCurve(펜, 포인트[])

Aspose.Imaging.Point 구조의 특정 범위를 통해 카디나 스플린을 끌어 들이십시오.

public void DrawCurve(Pen pen, Point[] points)

Parameters

pen Pen

Aspose.Imaging.Pen은 곡선의 색상, 폭 및 높이를 결정합니다.

points Point [ ] [ [ ]

Spline을 정의하는 Aspose.Imaging.Point 구조의 범위.

Examples

이 예제는 이미지 표면에 원시 형태를 만들기 위해 그래픽 클래스를 사용합니다.이 작업을 보여주기 위해, 예제는 PNG 형식으로 새로운 이미지를 만들고 그래픽 클래스에 의해 노출 된 그림 방법을 사용하여 이미지 표면에 원시 형태를 그립니다.

//Creates an instance of FileStream
                                                                                                                                                                                                                                                                using (System.IO.FileStream stream = new System.IO.FileStream(@"C:\temp\output.png", System.IO.FileMode.Create))
                                                                                                                                                                                                                                                                {
                                                                                                                                                                                                                                                                    //Create an instance of PngOptions and set its various properties
                                                                                                                                                                                                                                                                    Aspose.Imaging.ImageOptions.PngOptions pngOptions = new Aspose.Imaging.ImageOptions.PngOptions();

                                                                                                                                                                                                                                                                    //Set the Source for PngOptions
                                                                                                                                                                                                                                                                    pngOptions.Source = new Aspose.Imaging.Sources.StreamSource(stream);

                                                                                                                                                                                                                                                                    //Create an instance of Image 
                                                                                                                                                                                                                                                                    using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Create(pngOptions, 500, 500))
                                                                                                                                                                                                                                                                    {
                                                                                                                                                                                                                                                                        //Create and initialize an instance of Graphics class
                                                                                                                                                                                                                                                                        Aspose.Imaging.Graphics graphics = new Aspose.Imaging.Graphics(image);

                                                                                                                                                                                                                                                                        //Clear Graphics surface
                                                                                                                                                                                                                                                                        graphics.Clear(Aspose.Imaging.Color.Wheat);

                                                                                                                                                                                                                                                                        //Draw an Arc by specifying the Pen object having Black color, 
                                                                                                                                                                                                                                                                        //a Rectangle surrounding the Arc, Start Angle and Sweep Angle
                                                                                                                                                                                                                                                                        graphics.DrawArc(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Black, 2), new Aspose.Imaging.Rectangle(200, 200, 100, 200), 0, 300);

                                                                                                                                                                                                                                                                        //Draw a Bezier by specifying the Pen object having Blue color and co-ordinate Points.
                                                                                                                                                                                                                                                                        graphics.DrawBezier(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Blue, 2), new Aspose.Imaging.Point(250, 100), new Aspose.Imaging.Point(300, 30), new Aspose.Imaging.Point(450, 100), new Aspose.Imaging.Point(235, 25));

                                                                                                                                                                                                                                                                        //Draw a Curve by specifying the Pen object having Green color and an array of Points
                                                                                                                                                                                                                                                                        graphics.DrawCurve(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Green, 2), new[] { new Aspose.Imaging.Point(100, 200), new Aspose.Imaging.Point(100, 350), new Aspose.Imaging.Point(200, 450) });

                                                                                                                                                                                                                                                                        //Draw an Ellipse using the Pen object and a surrounding Rectangle
                                                                                                                                                                                                                                                                        graphics.DrawEllipse(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Yellow, 2), new Aspose.Imaging.Rectangle(300, 300, 100, 100));

                                                                                                                                                                                                                                                                        //Draw a Line 
                                                                                                                                                                                                                                                                        graphics.DrawLine(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Violet, 2), new Aspose.Imaging.Point(100, 100), new Aspose.Imaging.Point(200, 200));

                                                                                                                                                                                                                                                                        //Draw a Pie segment
                                                                                                                                                                                                                                                                        graphics.DrawPie(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Silver, 2), new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(200, 20), new Aspose.Imaging.Size(200, 200)), 0, 45);

                                                                                                                                                                                                                                                                        //Draw a Polygon by specifying the Pen object having Red color and an array of Points
                                                                                                                                                                                                                                                                        graphics.DrawPolygon(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Red, 2), new[] { new Aspose.Imaging.Point(20, 100), new Aspose.Imaging.Point(20, 200), new Aspose.Imaging.Point(220, 20) });

                                                                                                                                                                                                                                                                        //Draw a Rectangle
                                                                                                                                                                                                                                                                        graphics.DrawRectangle(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Orange, 2), new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(250, 250), new Aspose.Imaging.Size(100, 100)));

                                                                                                                                                                                                                                                                        //Create a SolidBrush object and set its various properties
                                                                                                                                                                                                                                                                        Aspose.Imaging.Brushes.SolidBrush brush = new Aspose.Imaging.Brushes.SolidBrush();
                                                                                                                                                                                                                                                                        brush.Color = Color.Purple;
                                                                                                                                                                                                                                                                        brush.Opacity = 100;

                                                                                                                                                                                                                                                                        //Draw a String using the SolidBrush object and Font, at specific Point
                                                                                                                                                                                                                                                                        graphics.DrawString("This image is created by Aspose.Imaging API", new Aspose.Imaging.Font("Times New Roman", 16), brush, new Aspose.Imaging.PointF(50, 400));

                                                                                                                                                                                                                                                                        // save all changes.
                                                                                                                                                                                                                                                                        image.Save();
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                }

Exceptions

ArgumentNullException

pen’ is null.-or-points’ is null.

DrawCurve(펜, 포인트[ ] [ [ ], 플로트)

특정 전압을 사용하여 Aspose.Imaging.Point 구조의 특정 범위를 통해 카디나 스플린을 끌어 들이십시오.

public void DrawCurve(Pen pen, Point[] points, float tension)

Parameters

pen Pen

Aspose.Imaging.Pen은 곡선의 색상, 폭 및 높이를 결정합니다.

points Point [ ] [ [ ]

Spline을 정의하는 Aspose.Imaging.Point 구조의 범위.

tension float

곡선의 긴장을 지정하는 0.0F보다 크거나 동일한 값입니다.

Exceptions

ArgumentNullException

pen’ is null.-or-points’ is null.

DrawCurve(펜, 포인트[ ] [ [ ], int , int , float)

특정 전압을 사용하여 Aspose.Imaging.Point 구조의 특정 범위를 통해 카디나 스플린을 끌어 들이십시오.

public void DrawCurve(Pen pen, Point[] points, int offset, int numberOfSegments, float tension)

Parameters

pen Pen

Aspose.Imaging.Pen은 곡선의 색상, 폭 및 높이를 결정합니다.

points Point [ ] [ [ ]

Spline을 정의하는 Aspose.Imaging.Point 구조의 범위.

offset int

point’ parameter의 순서에있는 첫 번째 요소에서 곡선의 출발점으로 이동합니다.

numberOfSegments int

곡선에 포함되는 출발점 이후의 세그먼트 수.

tension float

곡선의 긴장을 지정하는 0.0F보다 크거나 동일한 값입니다.

Exceptions

ArgumentNullException

pen’ is null.-or-points’ is null.

DrawEllipse(펜, RectangleF)

그것은 Aspose.Imaging.RectangleF에 의해 정의 된 엘리프스를 추적합니다.

public void DrawEllipse(Pen pen, RectangleF rect)

Parameters

pen Pen

Aspose.Imaging.Pen은 엘리프스의 색상, 폭 및 스타일을 결정합니다.

rect RectangleF

Aspose.Imaging.RectangleF 구조는 엘리프스의 경계를 정의합니다.

Exceptions

ArgumentNullException

pen’ is null.

DrawEllipse(펜, 플로트, 플로트, 플로트)

그것은 좌표, 높이 및 폭의 쌍에 의해 지정된 경계 직경에 의해 정의 된 엘리프스를 추출합니다.

public void DrawEllipse(Pen pen, float x, float y, float width, float height)

Parameters

pen Pen

Aspose.Imaging.Pen은 엘리프스의 색상, 폭 및 스타일을 결정합니다.

x float

엘리피스를 정의하는 경계 직경의 상단 왼쪽 구석의 x 조정.

y float

엘리피스를 정의하는 경계 직경의 상단 왼쪽 구석의 y 조정.

width float

엘리피스를 정의하는 경계 직경의 폭.

height float

엘리피스를 정의하는 경계 직경의 높이.

Exceptions

ArgumentNullException

pen’ is null.

DrawEllipse(펜, 오른쪽)

그것은 Aspose.Imaging.Rectangle 구조에 의해 지정된 엘리프스를 추출합니다.

public void DrawEllipse(Pen pen, Rectangle rect)

Parameters

pen Pen

Aspose.Imaging.Pen은 엘리프스의 색상, 폭 및 스타일을 결정합니다.

rect Rectangle

Aspose.Imaging.Rectangle 구조는 엘리프스의 경계를 정의합니다.

Examples

이 예제는 이미지 표면에 원시 형태를 만들기 위해 그래픽 클래스를 사용합니다.이 작업을 보여주기 위해, 예제는 PNG 형식으로 새로운 이미지를 만들고 그래픽 클래스에 의해 노출 된 그림 방법을 사용하여 이미지 표면에 원시 형태를 그립니다.

//Creates an instance of FileStream
                                                                                                                                                                                                                                                                using (System.IO.FileStream stream = new System.IO.FileStream(@"C:\temp\output.png", System.IO.FileMode.Create))
                                                                                                                                                                                                                                                                {
                                                                                                                                                                                                                                                                    //Create an instance of PngOptions and set its various properties
                                                                                                                                                                                                                                                                    Aspose.Imaging.ImageOptions.PngOptions pngOptions = new Aspose.Imaging.ImageOptions.PngOptions();

                                                                                                                                                                                                                                                                    //Set the Source for PngOptions
                                                                                                                                                                                                                                                                    pngOptions.Source = new Aspose.Imaging.Sources.StreamSource(stream);

                                                                                                                                                                                                                                                                    //Create an instance of Image 
                                                                                                                                                                                                                                                                    using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Create(pngOptions, 500, 500))
                                                                                                                                                                                                                                                                    {
                                                                                                                                                                                                                                                                        //Create and initialize an instance of Graphics class
                                                                                                                                                                                                                                                                        Aspose.Imaging.Graphics graphics = new Aspose.Imaging.Graphics(image);

                                                                                                                                                                                                                                                                        //Clear Graphics surface
                                                                                                                                                                                                                                                                        graphics.Clear(Aspose.Imaging.Color.Wheat);

                                                                                                                                                                                                                                                                        //Draw an Arc by specifying the Pen object having Black color, 
                                                                                                                                                                                                                                                                        //a Rectangle surrounding the Arc, Start Angle and Sweep Angle
                                                                                                                                                                                                                                                                        graphics.DrawArc(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Black, 2), new Aspose.Imaging.Rectangle(200, 200, 100, 200), 0, 300);

                                                                                                                                                                                                                                                                        //Draw a Bezier by specifying the Pen object having Blue color and co-ordinate Points.
                                                                                                                                                                                                                                                                        graphics.DrawBezier(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Blue, 2), new Aspose.Imaging.Point(250, 100), new Aspose.Imaging.Point(300, 30), new Aspose.Imaging.Point(450, 100), new Aspose.Imaging.Point(235, 25));

                                                                                                                                                                                                                                                                        //Draw a Curve by specifying the Pen object having Green color and an array of Points
                                                                                                                                                                                                                                                                        graphics.DrawCurve(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Green, 2), new[] { new Aspose.Imaging.Point(100, 200), new Aspose.Imaging.Point(100, 350), new Aspose.Imaging.Point(200, 450) });

                                                                                                                                                                                                                                                                        //Draw an Ellipse using the Pen object and a surrounding Rectangle
                                                                                                                                                                                                                                                                        graphics.DrawEllipse(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Yellow, 2), new Aspose.Imaging.Rectangle(300, 300, 100, 100));

                                                                                                                                                                                                                                                                        //Draw a Line 
                                                                                                                                                                                                                                                                        graphics.DrawLine(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Violet, 2), new Aspose.Imaging.Point(100, 100), new Aspose.Imaging.Point(200, 200));

                                                                                                                                                                                                                                                                        //Draw a Pie segment
                                                                                                                                                                                                                                                                        graphics.DrawPie(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Silver, 2), new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(200, 20), new Aspose.Imaging.Size(200, 200)), 0, 45);

                                                                                                                                                                                                                                                                        //Draw a Polygon by specifying the Pen object having Red color and an array of Points
                                                                                                                                                                                                                                                                        graphics.DrawPolygon(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Red, 2), new[] { new Aspose.Imaging.Point(20, 100), new Aspose.Imaging.Point(20, 200), new Aspose.Imaging.Point(220, 20) });

                                                                                                                                                                                                                                                                        //Draw a Rectangle
                                                                                                                                                                                                                                                                        graphics.DrawRectangle(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Orange, 2), new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(250, 250), new Aspose.Imaging.Size(100, 100)));

                                                                                                                                                                                                                                                                        //Create a SolidBrush object and set its various properties
                                                                                                                                                                                                                                                                        Aspose.Imaging.Brushes.SolidBrush brush = new Aspose.Imaging.Brushes.SolidBrush();
                                                                                                                                                                                                                                                                        brush.Color = Color.Purple;
                                                                                                                                                                                                                                                                        brush.Opacity = 100;

                                                                                                                                                                                                                                                                        //Draw a String using the SolidBrush object and Font, at specific Point
                                                                                                                                                                                                                                                                        graphics.DrawString("This image is created by Aspose.Imaging API", new Aspose.Imaging.Font("Times New Roman", 16), brush, new Aspose.Imaging.PointF(50, 400));

                                                                                                                                                                                                                                                                        // save all changes.
                                                                                                                                                                                                                                                                        image.Save();
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                }

Exceptions

ArgumentNullException

pen’ is null.

DrawEllipse(펜, int, int, int, int)

그것은 좌표, 높이 및 폭의 쌍에 의해 지정된 경계 직경에 의해 정의 된 엘리프스를 추출합니다.

public void DrawEllipse(Pen pen, int x, int y, int width, int height)

Parameters

pen Pen

Aspose.Imaging.Pen은 엘리프스의 색상, 폭 및 스타일을 결정합니다.

x int

엘리피스를 정의하는 경계 직경의 상단 왼쪽 구석의 x 조정.

y int

엘리피스를 정의하는 경계 직경의 상단 왼쪽 구석의 y 조정.

width int

엘리피스를 정의하는 경계 직경의 폭.

height int

엘리피스를 정의하는 경계 직경의 높이.

Exceptions

ArgumentNullException

pen’ is null.

DrawImage(사진 포인트F)

지정된 Aspose.Imaging.Graphics.Image를 사용하여 원래의 물리적 크기를 지정된 위치에 인쇄합니다.

public void DrawImage(Image sourceImage, PointF point)

Parameters

sourceImage Image

그림을 그려야 할 것.

point PointF

Aspose.Imaging.PointF 구조는 그려진 이미지의 상단 왼쪽 구석을 나타냅니다.

Exceptions

ArgumentNullException

sourceImage’ is null.

DrawImage(사진, 플로트, 플로트)

지정된 Aspose.Imaging.Graphics.Image를 사용하여 원래의 물리적 크기를 지정된 위치에 인쇄합니다.

public void DrawImage(Image sourceImage, float x, float y)

Parameters

sourceImage Image

그림을 그려야 할 것.

x float

그림의 상단 왼쪽 모서리의 x 조정.

y float

그려진 이미지의 상단 왼쪽 모서리의 y 조정.

Exceptions

ArgumentNullException

sourceImage’ is null.

DrawImage(사진, RectangleF)

지정된 위치와 지정된 크기로 지정된 Aspose.Imaging.Graphics.Image를 인쇄합니다.

public void DrawImage(Image sourceImage, RectangleF rect)

Parameters

sourceImage Image

그림을 그려야 할 것.

rect RectangleF

Aspose.Imaging.RectangleF 구조는 그려진 이미지의 위치와 크기를 지정합니다.

Exceptions

ArgumentNullException

sourceImage’ is null.

DrawImage(사진, Rectangle, Graphics)

지정된 위치와 지정된 크기로 지정된 Aspose.Imaging.Graphics.Image를 인쇄합니다.

public void DrawImage(Image sourceImage, Rectangle rectDestination, GraphicsUnit graphicsUnit)

Parameters

sourceImage Image

그림을 그려야 할 것.

rectDestination Rectangle

목적지 좌석

graphicsUnit GraphicsUnit

그래픽 단위 입니다.

Exceptions

ArgumentNullException

sourceImage’ is null.

DrawImage(사진, RectangleF, GraphicsUnit)

지정된 위치와 지정된 크기로 지정된 Aspose.Imaging.Graphics.Image를 인쇄합니다.

public void DrawImage(Image sourceImage, RectangleF rectDestination, GraphicsUnit graphicsUnit)

Parameters

sourceImage Image

그림을 그려야 할 것.

rectDestination RectangleF

목적지 좌석

graphicsUnit GraphicsUnit

그래픽 단위 입니다.

Exceptions

ArgumentNullException

sourceImage’ is null.

DrawImage(이미지, Rectangle, GraphicsUnit, ImageAttributes)

지정된 위치와 지정된 크기로 지정된 Aspose.Imaging.Graphics.Image를 인쇄합니다.

public void DrawImage(Image sourceImage, Rectangle rectDestination, GraphicsUnit graphicsUnit, ImageAttributes imageAttributes)

Parameters

sourceImage Image

그림을 그려야 할 것.

rectDestination Rectangle

목적지 좌석

graphicsUnit GraphicsUnit

그래픽 단위 입니다.

imageAttributes ImageAttributes

이미지 속성은 특징이다.

Exceptions

ArgumentNullException

sourceImage’ is null.

DrawImage(이미지, RectangleF, GraphicsUnit, ImageAttributes)

지정된 위치와 지정된 크기로 지정된 Aspose.Imaging.Graphics.Image를 인쇄합니다.

public void DrawImage(Image sourceImage, RectangleF rectDestination, GraphicsUnit graphicsUnit, ImageAttributes imageAttributes)

Parameters

sourceImage Image

그림을 그려야 할 것.

rectDestination RectangleF

목적지 직경을 끌어 올려야 합니다.

graphicsUnit GraphicsUnit

그래픽 단위 입니다.

imageAttributes ImageAttributes

이미지 속성은 특징이다.

Exceptions

ArgumentNullException

sourceImage’ is null.

DrawImage(이미지, Rectangle, Rectangle, 그래픽)

지정된 위치와 지정된 크기로 지정된 Aspose.Imaging.Graphics.Image를 인쇄합니다.

public void DrawImage(Image sourceImage, Rectangle rectSource, Rectangle rectDestination, GraphicsUnit graphicsUnit)

Parameters

sourceImage Image

그림을 그려야 할 것.

rectSource Rectangle

오른쪽 출처 입니다.

rectDestination Rectangle

오른쪽 목적지

graphicsUnit GraphicsUnit

그래픽 단위 입니다.

Exceptions

ArgumentNullException

sourceImage’ is null.

DrawImage(사진, RectangleF, RectangleF, 그래픽)

지정된 위치와 지정된 크기로 지정된 Aspose.Imaging.Graphics.Image를 인쇄합니다.

public void DrawImage(Image sourceImage, RectangleF rectSource, RectangleF rectDestination, GraphicsUnit graphicsUnit)

Parameters

sourceImage Image

그림을 그려야 할 것.

rectSource RectangleF

오른쪽 출처 입니다.

rectDestination RectangleF

오른쪽 목적지

graphicsUnit GraphicsUnit

그래픽 단위 입니다.

Exceptions

ArgumentNullException

sourceImage’ is null.

DrawImage(이미지, Rectangle, Rectangle, GraphicsUnit, ImageAttributes)

지정된 위치와 지정된 크기로 지정된 Aspose.Imaging.Graphics.Image를 인쇄합니다.

public void DrawImage(Image sourceImage, Rectangle rectSource, Rectangle rectDestination, GraphicsUnit graphicsUnit, ImageAttributes imageAttributes)

Parameters

sourceImage Image

그림을 그려야 할 것.

rectSource Rectangle

오른쪽 출처 입니다.

rectDestination Rectangle

오른쪽 목적지

graphicsUnit GraphicsUnit

그래픽 단위 입니다.

imageAttributes ImageAttributes

이미지 속성은 특징이다.

Exceptions

ArgumentNullException

sourceImage’ is null.

DrawImage(이미지, RectangleF, RectangleF, GraphicsUnit, ImageAttributes)

지정된 위치와 지정된 크기로 지정된 Aspose.Imaging.Graphics.Image를 인쇄합니다.

public void DrawImage(Image sourceImage, RectangleF rectSource, RectangleF rectDestination, GraphicsUnit graphicsUnit, ImageAttributes imageAttributes)

Parameters

sourceImage Image

그림을 그려야 할 것.

rectSource RectangleF

오른쪽 오른쪽 출처입니다.

rectDestination RectangleF

목적지 좌석

graphicsUnit GraphicsUnit

그래픽 단위는 사용할 수 있습니다.

imageAttributes ImageAttributes

그림은 사용하기 위한 자격이 있다.

Exceptions

ArgumentNullException

sourceImage’ is null.

DrawImage(사진, 포인트[])

지정된 위치와 지정된 크기로 지정된 image’의 지정된 부분을 인쇄합니다.

public void DrawImage(Image image, Point[] destPoints)

Parameters

image Image

그림을 그려야 할 것이다.

destPoints Point [ ] [ [ ]

Paralelogram을 정의하는 3 개의 PointF 구조를 구성합니다.

DrawImage(사진, 포인트[ ] [ [ ], 오른쪽 링)

지정된 위치와 지정된 크기로 지정된 image’의 지정된 부분을 인쇄합니다.

public void DrawImage(Image image, Point[] destPoints, Rectangle srcRect)

Parameters

image Image

그림을 그려야 할 것이다.

destPoints Point [ ] [ [ ]

Paralelogram을 정의하는 3 개의 PointF 구조를 구성합니다.

srcRect Rectangle

오른쪽 오른쪽 출처입니다.

DrawImage(사진, 포인트[ ] [ [ ], 링크, 링크, 그래픽)

지정된 위치와 지정된 크기로 지정된 image’의 지정된 부분을 인쇄합니다.

public void DrawImage(Image image, Point[] destPoints, Rectangle srcRect, GraphicsUnit srcUnit)

Parameters

image Image

그림을 그려야 할 것이다.

destPoints Point [ ] [ [ ]

Paralelogram을 정의하는 3 개의 PointF 구조를 구성합니다.

srcRect Rectangle

오른쪽 오른쪽 출처입니다.

srcUnit GraphicsUnit

측정 단위의 단위

DrawImage(사진, 포인트[ ] [ [ ], Rectangle, GraphicsUnit, 이미지 속성)

지정된 위치와 지정된 크기로 지정된 image’의 지정된 부분을 인쇄합니다.

public void DrawImage(Image image, Point[] destPoints, Rectangle srcRect, GraphicsUnit srcUnit, ImageAttributes imageAttributes)

Parameters

image Image

그림을 그려야 할 것이다.

destPoints Point [ ] [ [ ]

Paralelogram을 정의하는 3 개의 PointF 구조를 구성합니다.

srcRect Rectangle

오른쪽 오른쪽 출처입니다.

srcUnit GraphicsUnit

측정 단위의 단위

imageAttributes ImageAttributes

이미지 속성은 특징이다.

DrawImage(사진 포인트F[])

지정된 위치와 지정된 크기로 지정된 image’의 지정된 부분을 인쇄합니다.

public void DrawImage(Image image, PointF[] destPoints)

Parameters

image Image

그림을 그려야 할 것이다.

destPoints PointF [ ] [ [ ]

Paralelogram을 정의하는 3 개의 PointF 구조를 구성합니다.

Exceptions

ArgumentNullException

이미지

DrawImage(사진 포인트F[ ] [ [ ], 엑스 링크)

지정된 위치와 지정된 크기로 지정된 image’의 지정된 부분을 인쇄합니다.

public void DrawImage(Image image, PointF[] destPoints, RectangleF srcRect)

Parameters

image Image

그림을 그려야 할 것이다.

destPoints PointF [ ] [ [ ]

Paralelogram을 정의하는 3 개의 PointF 구조를 구성합니다.

srcRect RectangleF

오른쪽 오른쪽 출처입니다.

DrawImage(사진 포인트F[ ] [ [ ], RectangleF, 그래픽유니트)

지정된 위치와 지정된 크기로 지정된 image’의 지정된 부분을 인쇄합니다.

public void DrawImage(Image image, PointF[] destPoints, RectangleF srcRect, GraphicsUnit srcUnit)

Parameters

image Image

그림을 그려야 할 것이다.

destPoints PointF [ ] [ [ ]

Paralelogram을 정의하는 3 개의 PointF 구조를 구성합니다.

srcRect RectangleF

오른쪽 오른쪽 출처입니다.

srcUnit GraphicsUnit

측정 단위의 단위

DrawImage(사진 포인트F[ ] [ [ ], RectangleF, GraphicsUnit, 이미지 속성)

지정된 위치와 지정된 크기로 지정된 image’의 지정된 부분을 인쇄합니다.

public void DrawImage(Image image, PointF[] destPoints, RectangleF srcRect, GraphicsUnit srcUnit, ImageAttributes imageAttributes)

Parameters

image Image

그림을 그려야 할 것이다.

destPoints PointF [ ] [ [ ]

Paralelogram을 정의하는 3 개의 PointF 구조를 구성합니다.

srcRect RectangleF

오른쪽 오른쪽 출처입니다.

srcUnit GraphicsUnit

측정 단위의 단위

imageAttributes ImageAttributes

이미지 속성은 특징이다.

DrawImage(사진, 함대, 함대, 함대, 함대)

지정된 위치와 지정된 크기로 지정된 Aspose.Imaging.Graphics.Image를 인쇄합니다.

public void DrawImage(Image sourceImage, float x, float y, float width, float height)

Parameters

sourceImage Image

그림을 그려야 할 것.

x float

그림의 상단 왼쪽 모서리의 x 조정.

y float

그려진 이미지의 상단 왼쪽 모서리의 y 조정.

width float

그려진 이미지의 넓이.

height float

그려진 이미지의 높이.

Exceptions

ArgumentNullException

sourceImage’ is null.

DrawImage(사진, 포인트)

지정된 Aspose.Imaging.Graphics.Image를 사용하여 원래의 물리적 크기를 지정된 위치에 인쇄합니다.

public void DrawImage(Image sourceImage, Point point)

Parameters

sourceImage Image

그림을 그려야 할 것.

point Point

Aspose.Imaging.Point 구조는 그려진 이미지의 상단 왼쪽 모서리의 위치를 나타냅니다.

Exceptions

ArgumentNullException

sourceImage’ is null.

DrawImage(사진, int, int)

지정된 이미지를, 그것의 원래 물리적 크기를 사용하여, 좌표 쌍에 의해 지정된 위치에 촬영합니다.

public void DrawImage(Image sourceImage, int x, int y)

Parameters

sourceImage Image

그림을 그려야 할 것.

x int

그림의 상단 왼쪽 모서리의 x 조정.

y int

그려진 이미지의 상단 왼쪽 모서리의 y 조정.

Exceptions

ArgumentNullException

sourceImage’ is null.

DrawImage(사진 : Rectangle)

지정된 위치와 지정된 크기로 지정된 Aspose.Imaging.Graphics.Image를 인쇄합니다.

public void DrawImage(Image sourceImage, Rectangle rect)

Parameters

sourceImage Image

그림을 그려야 할 것.

rect Rectangle

Aspose.Imaging.Rectangle 구조는 그려진 이미지의 위치와 크기를 지정합니다.

Exceptions

ArgumentNullException

sourceImage’ is null.

DrawImage(이미지, int, int, int, int)

지정된 위치와 지정된 크기로 지정된 Aspose.Imaging.Graphics.Image를 인쇄합니다.

public void DrawImage(Image sourceImage, int x, int y, int width, int height)

Parameters

sourceImage Image

그림을 그려야 할 것.

x int

그림의 상단 왼쪽 모서리의 x 조정.

y int

그려진 이미지의 상단 왼쪽 모서리의 y 조정.

width int

그려진 이미지의 넓이.

height int

그려진 이미지의 높이.

Exceptions

ArgumentNullException

sourceImage’ is null.

DrawImageUnscaled(사진, 포인트)

특정 위치에서 원래의 물리적 크기를 사용하여 특정 이미지를 촬영합니다.

public void DrawImageUnscaled(Image sourceImage, Point point)

Parameters

sourceImage Image

그림을 그려야 할 것.

point Point

Aspose.Imaging.Point 구조는 그려진 이미지의 상단 왼쪽 구석을 지정합니다.

Exceptions

ArgumentNullException

sourceImage’ is null.

DrawImageUnscaled(사진, int, int)

지정된 이미지를 원래의 물리적 크기를 사용하여 좌표 쌍에 의해 지정된 위치에 인쇄합니다.

public void DrawImageUnscaled(Image sourceImage, int x, int y)

Parameters

sourceImage Image

그림을 그려야 할 것.

x int

그림의 상단 왼쪽 모서리의 x 조정.

y int

그려진 이미지의 상단 왼쪽 모서리의 y 조정.

Exceptions

ArgumentNullException

sourceImage’ is null.

DrawImageUnscaled(사진 : Rectangle)

특정 위치에서 원래의 물리적 크기를 사용하여 특정 이미지를 촬영합니다.

public void DrawImageUnscaled(Image sourceImage, Rectangle rect)

Parameters

sourceImage Image

그림을 그려야 할 것.

rect Rectangle

Aspose.Imaging.Rectangle 그려진 이미지의 상단 왼쪽 모퉁이를 지정합니다.X 및 Y 직경의 특성은 상단 왼쪽 모퉁이를 지정합니다.

Exceptions

ArgumentNullException

sourceImage’ is null.

DrawImageUnscaled(이미지, int, int, int, int)

특정 위치에서 원래의 물리적 크기를 사용하여 특정 이미지를 촬영합니다.

public void DrawImageUnscaled(Image sourceImage, int x, int y, int width, int height)

Parameters

sourceImage Image

그림을 그려야 할 것.

x int

그림의 상단 왼쪽 모서리의 x 조정.

y int

그려진 이미지의 상단 왼쪽 모서리의 y 조정.

width int

파라미터는 사용되지 않습니다.

height int

파라미터는 사용되지 않습니다.

Exceptions

ArgumentNullException

sourceImage’ is null.

DrawImageUnscaledAndClipped(사진 : Rectangle)

스케일링 없이 지정된 이미지를 끌고 필요한 경우 지정된 직경에 맞게 칠합니다.

public void DrawImageUnscaledAndClipped(Image sourceImage, Rectangle rect)

Parameters

sourceImage Image

그림을 그려야 할 것.

rect Rectangle

그림을 그릴 수있는 Aspose.Imaging.Rectangle.

Exceptions

ArgumentNullException

sourceImage’ is null.

DrawLine(펜, 포인트, 포인트)

두 개의 Aspose.Imaging.Point 구조를 연결하는 라인을 인쇄합니다.

public void DrawLine(Pen pen, Point point1, Point point2)

Parameters

pen Pen

Aspose.Imaging.Pen 라인의 색상, 폭 및 스타일을 결정합니다.

point1 Point

Aspose.Imaging.Point 구조는 연결하는 첫 번째 포인트를 나타냅니다.

point2 Point

Aspose.Imaging.Point 구조는 연결하는 두 번째 포인트를 나타냅니다.

Examples

이 예제는 이미지 표면에 원시 형태를 만들기 위해 그래픽 클래스를 사용합니다.이 작업을 보여주기 위해, 예제는 PNG 형식으로 새로운 이미지를 만들고 그래픽 클래스에 의해 노출 된 그림 방법을 사용하여 이미지 표면에 원시 형태를 그립니다.

//Creates an instance of FileStream
                                                                                                                                                                                                                                                                using (System.IO.FileStream stream = new System.IO.FileStream(@"C:\temp\output.png", System.IO.FileMode.Create))
                                                                                                                                                                                                                                                                {
                                                                                                                                                                                                                                                                    //Create an instance of PngOptions and set its various properties
                                                                                                                                                                                                                                                                    Aspose.Imaging.ImageOptions.PngOptions pngOptions = new Aspose.Imaging.ImageOptions.PngOptions();

                                                                                                                                                                                                                                                                    //Set the Source for PngOptions
                                                                                                                                                                                                                                                                    pngOptions.Source = new Aspose.Imaging.Sources.StreamSource(stream);

                                                                                                                                                                                                                                                                    //Create an instance of Image 
                                                                                                                                                                                                                                                                    using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Create(pngOptions, 500, 500))
                                                                                                                                                                                                                                                                    {
                                                                                                                                                                                                                                                                        //Create and initialize an instance of Graphics class
                                                                                                                                                                                                                                                                        Aspose.Imaging.Graphics graphics = new Aspose.Imaging.Graphics(image);

                                                                                                                                                                                                                                                                        //Clear Graphics surface
                                                                                                                                                                                                                                                                        graphics.Clear(Aspose.Imaging.Color.Wheat);

                                                                                                                                                                                                                                                                        //Draw an Arc by specifying the Pen object having Black color, 
                                                                                                                                                                                                                                                                        //a Rectangle surrounding the Arc, Start Angle and Sweep Angle
                                                                                                                                                                                                                                                                        graphics.DrawArc(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Black, 2), new Aspose.Imaging.Rectangle(200, 200, 100, 200), 0, 300);

                                                                                                                                                                                                                                                                        //Draw a Bezier by specifying the Pen object having Blue color and co-ordinate Points.
                                                                                                                                                                                                                                                                        graphics.DrawBezier(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Blue, 2), new Aspose.Imaging.Point(250, 100), new Aspose.Imaging.Point(300, 30), new Aspose.Imaging.Point(450, 100), new Aspose.Imaging.Point(235, 25));

                                                                                                                                                                                                                                                                        //Draw a Curve by specifying the Pen object having Green color and an array of Points
                                                                                                                                                                                                                                                                        graphics.DrawCurve(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Green, 2), new[] { new Aspose.Imaging.Point(100, 200), new Aspose.Imaging.Point(100, 350), new Aspose.Imaging.Point(200, 450) });

                                                                                                                                                                                                                                                                        //Draw an Ellipse using the Pen object and a surrounding Rectangle
                                                                                                                                                                                                                                                                        graphics.DrawEllipse(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Yellow, 2), new Aspose.Imaging.Rectangle(300, 300, 100, 100));

                                                                                                                                                                                                                                                                        //Draw a Line 
                                                                                                                                                                                                                                                                        graphics.DrawLine(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Violet, 2), new Aspose.Imaging.Point(100, 100), new Aspose.Imaging.Point(200, 200));

                                                                                                                                                                                                                                                                        //Draw a Pie segment
                                                                                                                                                                                                                                                                        graphics.DrawPie(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Silver, 2), new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(200, 20), new Aspose.Imaging.Size(200, 200)), 0, 45);

                                                                                                                                                                                                                                                                        //Draw a Polygon by specifying the Pen object having Red color and an array of Points
                                                                                                                                                                                                                                                                        graphics.DrawPolygon(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Red, 2), new[] { new Aspose.Imaging.Point(20, 100), new Aspose.Imaging.Point(20, 200), new Aspose.Imaging.Point(220, 20) });

                                                                                                                                                                                                                                                                        //Draw a Rectangle
                                                                                                                                                                                                                                                                        graphics.DrawRectangle(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Orange, 2), new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(250, 250), new Aspose.Imaging.Size(100, 100)));

                                                                                                                                                                                                                                                                        //Create a SolidBrush object and set its various properties
                                                                                                                                                                                                                                                                        Aspose.Imaging.Brushes.SolidBrush brush = new Aspose.Imaging.Brushes.SolidBrush();
                                                                                                                                                                                                                                                                        brush.Color = Color.Purple;
                                                                                                                                                                                                                                                                        brush.Opacity = 100;

                                                                                                                                                                                                                                                                        //Draw a String using the SolidBrush object and Font, at specific Point
                                                                                                                                                                                                                                                                        graphics.DrawString("This image is created by Aspose.Imaging API", new Aspose.Imaging.Font("Times New Roman", 16), brush, new Aspose.Imaging.PointF(50, 400));

                                                                                                                                                                                                                                                                        // save all changes.
                                                                                                                                                                                                                                                                        image.Save();
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                }

Exceptions

ArgumentNullException

pen’ is null.

DrawLine(펜, PointF, PointF)

두 개의 Aspose.Imaging.PointF 구조를 연결하는 라인을 인쇄합니다.

public void DrawLine(Pen pen, PointF point1, PointF point2)

Parameters

pen Pen

Aspose.Imaging.Pen 라인의 색상, 폭 및 스타일을 결정합니다.

point1 PointF

Aspose.Imaging.PointF 구조는 연결하는 첫 번째 포인트를 나타냅니다.

point2 PointF

Aspose.Imaging.PointF 구조는 연결하는 두 번째 포인트를 나타냅니다.

Exceptions

ArgumentNullException

pen’ is null.

DrawLine(펜, int, int, int, int)

좌표 쌍에 의해 지정된 두 포인트를 연결하는 라인을 끌어 올립니다.

public void DrawLine(Pen pen, int x1, int y1, int x2, int y2)

Parameters

pen Pen

Aspose.Imaging.Pen 라인의 색상, 폭 및 스타일을 결정합니다.

x1 int

첫 번째 포인트의 X 조정.

y1 int

첫 번째 포인트의 Y 조정.

x2 int

2점의 X 조정.

y2 int

두 번째 점의 Y 조정.

Exceptions

ArgumentNullException

pen’ is null.

DrawLine(펜, 플로트, 플로트, 플로트)

좌표 쌍에 의해 지정된 두 포인트를 연결하는 라인을 끌어 올립니다.

public void DrawLine(Pen pen, float x1, float y1, float x2, float y2)

Parameters

pen Pen

Aspose.Imaging.Pen 라인의 색상, 폭 및 스타일을 결정합니다.

x1 float

첫 번째 포인트의 X 조정.

y1 float

첫 번째 포인트의 Y 조정.

x2 float

2점의 X 조정.

y2 float

두 번째 점의 Y 조정.

Exceptions

ArgumentNullException

pen’ is null.

DrawLines(펜, 포인트[])

Aspose.Imaging.Point 구조의 일련을 연결하는 라인 세그먼트의 시리즈를 드라이브합니다.

public void DrawLines(Pen pen, Point[] points)

Parameters

pen Pen

Aspose.Imaging.Pen은 라인 세그먼트의 색상, 폭 및 스타일을 결정합니다.

points Point [ ] [ [ ]

연결해야 할 포인트를 나타내는 Aspose.Imaging.Point 구조의 범위.

Exceptions

ArgumentNullException

pen’ is null.-or-points’ is null.

ArgumentException

point’ 라인은 2 점 미만을 포함합니다.

DrawLines(펜, 포인트[])

Aspose.Imaging.PointF 구조의 일련을 연결하는 라인 세그먼트의 시리즈를 드라이브합니다.

public void DrawLines(Pen pen, PointF[] points)

Parameters

pen Pen

Aspose.Imaging.Pen은 라인 세그먼트의 색상, 폭 및 스타일을 결정합니다.

points PointF [ ] [ [ ]

연결해야 할 포인트를 나타내는 Aspose.Imaging.PointF 구조의 범위.

Exceptions

ArgumentNullException

pen’ is null.-or-points’ is null.

ArgumentException

point’ 라인은 2 점 미만을 포함합니다.

DrawPath(펜, 그래픽 패스)

아스포즈를 촬영합니다.Imaging.GraphicsPath.

public void DrawPath(Pen pen, GraphicsPath path)

Parameters

pen Pen

Aspose.Imaging.Pen은 경로의 색상, 폭 및 스타일을 결정합니다.

path GraphicsPath

아스포스.Imaging.Graphics그림을 그릴 수 있는 방법

Examples

이 예제는 GraphicsPath와 Graphics 클래스를 사용하여 이미지 표면에 숫자를 만들고 조작합니다. 예제는 새로운 이미지를 만듭니다 (티프 형식), 표면을 청소하고 GraphicsPath 클래스의 도움으로 경로를 끌어 들이십시오.

//Create an instance of FileStream
                                                                                                                                                                                                                                                                                                                                             using (System.IO.FileStream stream = new System.IO.FileStream(@"C:\temp\output.tiff", System.IO.FileMode.Create))
                                                                                                                                                                                                                                                                                                                                             {
                                                                                                                                                                                                                                                                                                                                                 //Create an instance of TiffOptions and set its various properties
                                                                                                                                                                                                                                                                                                                                                 Aspose.Imaging.ImageOptions.TiffOptions tiffOptions = new Aspose.Imaging.ImageOptions.TiffOptions(Imaging.FileFormats.Tiff.Enums.TiffExpectedFormat.Default);

                                                                                                                                                                                                                                                                                                                                                 //Set the source for the instance of ImageOptions
                                                                                                                                                                                                                                                                                                                                                 tiffOptions.Source = new Aspose.Imaging.Sources.StreamSource(stream);

                                                                                                                                                                                                                                                                                                                                                 //Create an instance of Image 
                                                                                                                                                                                                                                                                                                                                                 using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Create(tiffOptions, 500, 500))
                                                                                                                                                                                                                                                                                                                                                 {
                                                                                                                                                                                                                                                                                                                                                     //Create and initialize an instance of Graphics class
                                                                                                                                                                                                                                                                                                                                                     Aspose.Imaging.Graphics graphics = new Aspose.Imaging.Graphics(image);

                                                                                                                                                                                                                                                                                                                                                     //Clear Graphics surface
                                                                                                                                                                                                                                                                                                                                                     graphics.Clear(Color.Wheat);

                                                                                                                                                                                                                                                                                                                                                     //Create an instance of GraphicsPath class
                                                                                                                                                                                                                                                                                                                                                     Aspose.Imaging.GraphicsPath graphicspath = new Aspose.Imaging.GraphicsPath();

                                                                                                                                                                                                                                                                                                                                                     //Create an instance of Figure class
                                                                                                                                                                                                                                                                                                                                                     Aspose.Imaging.Figure figure = new Aspose.Imaging.Figure();

                                                                                                                                                                                                                                                                                                                                                     //Add Shapes to Figure object
                                                                                                                                                                                                                                                                                                                                                     figure.AddShape(new Aspose.Imaging.Shapes.RectangleShape(new Aspose.Imaging.RectangleF(10f, 10f, 300f, 300f)));
                                                                                                                                                                                                                                                                                                                                                     figure.AddShape(new Aspose.Imaging.Shapes.EllipseShape(new Aspose.Imaging.RectangleF(50f, 50f, 300f, 300f)));
                                                                                                                                                                                                                                                                                                                                                     figure.AddShape(new Aspose.Imaging.Shapes.PieShape(new Aspose.Imaging.RectangleF(new Aspose.Imaging.PointF(250f, 250f), new Aspose.Imaging.SizeF(200f, 200f)), 0f, 45f));

                                                                                                                                                                                                                                                                                                                                                     //Add Figure object to GraphicsPath
                                                                                                                                                                                                                                                                                                                                                     graphicspath.AddFigure(figure);

                                                                                                                                                                                                                                                                                                                                                     //Draw path with Pen object of color Black
                                                                                                                                                                                                                                                                                                                                                     graphics.DrawPath(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Black, 2), graphicspath);

                                                                                                                                                                                                                                                                                                                                                     // save all changes.
                                                                                                                                                                                                                                                                                                                                                     image.Save();
                                                                                                                                                                                                                                                                                                                                                 }
                                                                                                                                                                                                                                                                                                                                             }

Exceptions

ArgumentNullException

pen’ is null.-or-path’ is null.

DrawPie(펜, RectangleF, 플로트, 플로트)

그것은 Aspose.Imaging.RectangleF 구조와 두 개의 방사선에 의해 지정된 엘리프스에 의해 정의 된 피어 모양을 끌고 있습니다.

public void DrawPie(Pen pen, RectangleF rect, float startAngle, float sweepAngle)

Parameters

pen Pen

Aspose.Imaging.Pen은 피어 모양의 색상, 폭 및 스타일을 결정합니다.

rect RectangleF

Aspose.Imaging.RectangleF 구조는 피어 모양이 나오는 엘리프스를 정의하는 경계 직경을 나타냅니다.

startAngle float

각도는 x-axis에서 피어 모양의 첫 측면까지 시계로 측정됩니다.

sweepAngle float

각도는 startAngle’ 파라미터에서 피어 모양의 두 번째 측면으로 시계로 측정됩니다.

Exceptions

ArgumentNullException

pen’ is null.

DrawPie(펜, 함대, 함대, 함대, 함대, 함대, 함대)

그것은 좌표 쌍, 폭, 높이, 그리고 두 개의 방사선에 의해 지정 된 엘리프스에 의해 정의 된 피어 모양을 끌어.

public void DrawPie(Pen pen, float x, float y, float width, float height, float startAngle, float sweepAngle)

Parameters

pen Pen

Aspose.Imaging.Pen은 피어 모양의 색상, 폭 및 스타일을 결정합니다.

x float

좌석의 상단 좌석의 x 조정은 피어 모양이 나오는 엘리피스를 정의합니다.

y float

좌석의 상단 좌석의 y 조정은 피어 모양이 나오는 엘리피스를 정의합니다.

width float

피어 모양이 나오는 엘리프스를 정의하는 경계 직경의 폭.

height float

피어 모양이 나오는 엘리프스를 정의하는 경계 직경의 높이.

startAngle float

각도는 x-axis에서 피어 모양의 첫 측면까지 시계로 측정됩니다.

sweepAngle float

각도는 startAngle’ 파라미터에서 피어 모양의 두 번째 측면으로 시계로 측정됩니다.

Exceptions

ArgumentNullException

pen’ is null.

DrawPie(펜, 오른쪽 모서리, 플로트, 플로트)

그것은 Aspose.Imaging.Rectangle 구조와 두 개의 라디얼 라인에 의해 지정된 엘리프스에 의해 정의 된 피어 모양을 끌고 있습니다.

public void DrawPie(Pen pen, Rectangle rect, float startAngle, float sweepAngle)

Parameters

pen Pen

Aspose.Imaging.Pen은 피어 모양의 색상, 폭 및 스타일을 결정합니다.

rect Rectangle

Aspose.Imaging.Rectangle 구조는 피어 모양이 나오는 엘리프스를 정의하는 경계 직경을 나타냅니다.

startAngle float

각도는 x-axis에서 피어 모양의 첫 측면까지 시계로 측정됩니다.

sweepAngle float

각도는 startAngle’ 파라미터에서 피어 모양의 두 번째 측면으로 시계로 측정됩니다.

Examples

이 예제는 이미지 표면에 원시 형태를 만들기 위해 그래픽 클래스를 사용합니다.이 작업을 보여주기 위해, 예제는 PNG 형식으로 새로운 이미지를 만들고 그래픽 클래스에 의해 노출 된 그림 방법을 사용하여 이미지 표면에 원시 형태를 그립니다.

//Creates an instance of FileStream
                                                                                                                                                                                                                                                                using (System.IO.FileStream stream = new System.IO.FileStream(@"C:\temp\output.png", System.IO.FileMode.Create))
                                                                                                                                                                                                                                                                {
                                                                                                                                                                                                                                                                    //Create an instance of PngOptions and set its various properties
                                                                                                                                                                                                                                                                    Aspose.Imaging.ImageOptions.PngOptions pngOptions = new Aspose.Imaging.ImageOptions.PngOptions();

                                                                                                                                                                                                                                                                    //Set the Source for PngOptions
                                                                                                                                                                                                                                                                    pngOptions.Source = new Aspose.Imaging.Sources.StreamSource(stream);

                                                                                                                                                                                                                                                                    //Create an instance of Image 
                                                                                                                                                                                                                                                                    using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Create(pngOptions, 500, 500))
                                                                                                                                                                                                                                                                    {
                                                                                                                                                                                                                                                                        //Create and initialize an instance of Graphics class
                                                                                                                                                                                                                                                                        Aspose.Imaging.Graphics graphics = new Aspose.Imaging.Graphics(image);

                                                                                                                                                                                                                                                                        //Clear Graphics surface
                                                                                                                                                                                                                                                                        graphics.Clear(Aspose.Imaging.Color.Wheat);

                                                                                                                                                                                                                                                                        //Draw an Arc by specifying the Pen object having Black color, 
                                                                                                                                                                                                                                                                        //a Rectangle surrounding the Arc, Start Angle and Sweep Angle
                                                                                                                                                                                                                                                                        graphics.DrawArc(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Black, 2), new Aspose.Imaging.Rectangle(200, 200, 100, 200), 0, 300);

                                                                                                                                                                                                                                                                        //Draw a Bezier by specifying the Pen object having Blue color and co-ordinate Points.
                                                                                                                                                                                                                                                                        graphics.DrawBezier(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Blue, 2), new Aspose.Imaging.Point(250, 100), new Aspose.Imaging.Point(300, 30), new Aspose.Imaging.Point(450, 100), new Aspose.Imaging.Point(235, 25));

                                                                                                                                                                                                                                                                        //Draw a Curve by specifying the Pen object having Green color and an array of Points
                                                                                                                                                                                                                                                                        graphics.DrawCurve(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Green, 2), new[] { new Aspose.Imaging.Point(100, 200), new Aspose.Imaging.Point(100, 350), new Aspose.Imaging.Point(200, 450) });

                                                                                                                                                                                                                                                                        //Draw an Ellipse using the Pen object and a surrounding Rectangle
                                                                                                                                                                                                                                                                        graphics.DrawEllipse(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Yellow, 2), new Aspose.Imaging.Rectangle(300, 300, 100, 100));

                                                                                                                                                                                                                                                                        //Draw a Line 
                                                                                                                                                                                                                                                                        graphics.DrawLine(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Violet, 2), new Aspose.Imaging.Point(100, 100), new Aspose.Imaging.Point(200, 200));

                                                                                                                                                                                                                                                                        //Draw a Pie segment
                                                                                                                                                                                                                                                                        graphics.DrawPie(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Silver, 2), new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(200, 20), new Aspose.Imaging.Size(200, 200)), 0, 45);

                                                                                                                                                                                                                                                                        //Draw a Polygon by specifying the Pen object having Red color and an array of Points
                                                                                                                                                                                                                                                                        graphics.DrawPolygon(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Red, 2), new[] { new Aspose.Imaging.Point(20, 100), new Aspose.Imaging.Point(20, 200), new Aspose.Imaging.Point(220, 20) });

                                                                                                                                                                                                                                                                        //Draw a Rectangle
                                                                                                                                                                                                                                                                        graphics.DrawRectangle(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Orange, 2), new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(250, 250), new Aspose.Imaging.Size(100, 100)));

                                                                                                                                                                                                                                                                        //Create a SolidBrush object and set its various properties
                                                                                                                                                                                                                                                                        Aspose.Imaging.Brushes.SolidBrush brush = new Aspose.Imaging.Brushes.SolidBrush();
                                                                                                                                                                                                                                                                        brush.Color = Color.Purple;
                                                                                                                                                                                                                                                                        brush.Opacity = 100;

                                                                                                                                                                                                                                                                        //Draw a String using the SolidBrush object and Font, at specific Point
                                                                                                                                                                                                                                                                        graphics.DrawString("This image is created by Aspose.Imaging API", new Aspose.Imaging.Font("Times New Roman", 16), brush, new Aspose.Imaging.PointF(50, 400));

                                                                                                                                                                                                                                                                        // save all changes.
                                                                                                                                                                                                                                                                        image.Save();
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                }

Exceptions

ArgumentNullException

pen’ is null.

DrawPie(펜, int, int, int, int, int)

그것은 좌표 쌍, 폭, 높이, 그리고 두 개의 방사선에 의해 지정 된 엘리프스에 의해 정의 된 피어 모양을 끌어.

public void DrawPie(Pen pen, int x, int y, int width, int height, int startAngle, int sweepAngle)

Parameters

pen Pen

Aspose.Imaging.Pen은 피어 모양의 색상, 폭 및 스타일을 결정합니다.

x int

좌석의 상단 좌석의 x 조정은 피어 모양이 나오는 엘리피스를 정의합니다.

y int

좌석의 상단 좌석의 y 조정은 피어 모양이 나오는 엘리피스를 정의합니다.

width int

피어 모양이 나오는 엘리프스를 정의하는 경계 직경의 폭.

height int

피어 모양이 나오는 엘리프스를 정의하는 경계 직경의 높이.

startAngle int

각도는 x-axis에서 피어 모양의 첫 측면까지 시계로 측정됩니다.

sweepAngle int

각도는 startAngle’ 파라미터에서 피어 모양의 두 번째 측면으로 시계로 측정됩니다.

Exceptions

ArgumentNullException

pen’ is null.

DrawPolygon(펜, 포인트[])

Aspose.Imaging.PointF 구조의 일련에 의해 정의 된 폴리곤을 추출합니다.

public void DrawPolygon(Pen pen, PointF[] points)

Parameters

pen Pen

Aspose.Imaging.Pen은 폴리곤의 색상, 폭 및 스타일을 결정합니다.

points PointF [ ] [ [ ]

Aspose.Imaging.PointF 구조의 범위는 폴리곤의 수직을 나타냅니다.

Exceptions

ArgumentNullException

pen’ is null.-or-points’ is null.

DrawPolygon(펜, 포인트[])

Aspose.Imaging.Point 구조의 일련에 의해 정의 된 폴리곤을 추적합니다.

public void DrawPolygon(Pen pen, Point[] points)

Parameters

pen Pen

Aspose.Imaging.Pen은 폴리곤의 색상, 폭 및 스타일을 결정합니다.

points Point [ ] [ [ ]

Aspose.Imaging.Point 구조의 범위는 폴리곤의 수직을 나타냅니다.

Examples

이 예제는 이미지 표면에 원시 형태를 만들기 위해 그래픽 클래스를 사용합니다.이 작업을 보여주기 위해, 예제는 PNG 형식으로 새로운 이미지를 만들고 그래픽 클래스에 의해 노출 된 그림 방법을 사용하여 이미지 표면에 원시 형태를 그립니다.

//Creates an instance of FileStream
                                                                                                                                                                                                                                                                using (System.IO.FileStream stream = new System.IO.FileStream(@"C:\temp\output.png", System.IO.FileMode.Create))
                                                                                                                                                                                                                                                                {
                                                                                                                                                                                                                                                                    //Create an instance of PngOptions and set its various properties
                                                                                                                                                                                                                                                                    Aspose.Imaging.ImageOptions.PngOptions pngOptions = new Aspose.Imaging.ImageOptions.PngOptions();

                                                                                                                                                                                                                                                                    //Set the Source for PngOptions
                                                                                                                                                                                                                                                                    pngOptions.Source = new Aspose.Imaging.Sources.StreamSource(stream);

                                                                                                                                                                                                                                                                    //Create an instance of Image 
                                                                                                                                                                                                                                                                    using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Create(pngOptions, 500, 500))
                                                                                                                                                                                                                                                                    {
                                                                                                                                                                                                                                                                        //Create and initialize an instance of Graphics class
                                                                                                                                                                                                                                                                        Aspose.Imaging.Graphics graphics = new Aspose.Imaging.Graphics(image);

                                                                                                                                                                                                                                                                        //Clear Graphics surface
                                                                                                                                                                                                                                                                        graphics.Clear(Aspose.Imaging.Color.Wheat);

                                                                                                                                                                                                                                                                        //Draw an Arc by specifying the Pen object having Black color, 
                                                                                                                                                                                                                                                                        //a Rectangle surrounding the Arc, Start Angle and Sweep Angle
                                                                                                                                                                                                                                                                        graphics.DrawArc(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Black, 2), new Aspose.Imaging.Rectangle(200, 200, 100, 200), 0, 300);

                                                                                                                                                                                                                                                                        //Draw a Bezier by specifying the Pen object having Blue color and co-ordinate Points.
                                                                                                                                                                                                                                                                        graphics.DrawBezier(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Blue, 2), new Aspose.Imaging.Point(250, 100), new Aspose.Imaging.Point(300, 30), new Aspose.Imaging.Point(450, 100), new Aspose.Imaging.Point(235, 25));

                                                                                                                                                                                                                                                                        //Draw a Curve by specifying the Pen object having Green color and an array of Points
                                                                                                                                                                                                                                                                        graphics.DrawCurve(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Green, 2), new[] { new Aspose.Imaging.Point(100, 200), new Aspose.Imaging.Point(100, 350), new Aspose.Imaging.Point(200, 450) });

                                                                                                                                                                                                                                                                        //Draw an Ellipse using the Pen object and a surrounding Rectangle
                                                                                                                                                                                                                                                                        graphics.DrawEllipse(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Yellow, 2), new Aspose.Imaging.Rectangle(300, 300, 100, 100));

                                                                                                                                                                                                                                                                        //Draw a Line 
                                                                                                                                                                                                                                                                        graphics.DrawLine(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Violet, 2), new Aspose.Imaging.Point(100, 100), new Aspose.Imaging.Point(200, 200));

                                                                                                                                                                                                                                                                        //Draw a Pie segment
                                                                                                                                                                                                                                                                        graphics.DrawPie(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Silver, 2), new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(200, 20), new Aspose.Imaging.Size(200, 200)), 0, 45);

                                                                                                                                                                                                                                                                        //Draw a Polygon by specifying the Pen object having Red color and an array of Points
                                                                                                                                                                                                                                                                        graphics.DrawPolygon(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Red, 2), new[] { new Aspose.Imaging.Point(20, 100), new Aspose.Imaging.Point(20, 200), new Aspose.Imaging.Point(220, 20) });

                                                                                                                                                                                                                                                                        //Draw a Rectangle
                                                                                                                                                                                                                                                                        graphics.DrawRectangle(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Orange, 2), new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(250, 250), new Aspose.Imaging.Size(100, 100)));

                                                                                                                                                                                                                                                                        //Create a SolidBrush object and set its various properties
                                                                                                                                                                                                                                                                        Aspose.Imaging.Brushes.SolidBrush brush = new Aspose.Imaging.Brushes.SolidBrush();
                                                                                                                                                                                                                                                                        brush.Color = Color.Purple;
                                                                                                                                                                                                                                                                        brush.Opacity = 100;

                                                                                                                                                                                                                                                                        //Draw a String using the SolidBrush object and Font, at specific Point
                                                                                                                                                                                                                                                                        graphics.DrawString("This image is created by Aspose.Imaging API", new Aspose.Imaging.Font("Times New Roman", 16), brush, new Aspose.Imaging.PointF(50, 400));

                                                                                                                                                                                                                                                                        // save all changes.
                                                                                                                                                                                                                                                                        image.Save();
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                }

Exceptions

ArgumentNullException

pen’ is null.

DrawRectangle(펜, RectangleF)

Aspose.Imaging.RectangleF 구조에 의해 지정된 직경을 추출합니다.

public void DrawRectangle(Pen pen, RectangleF rect)

Parameters

pen Pen

Aspose.Imaging.Pen은 직경의 색상, 폭 및 스타일을 결정합니다.

rect RectangleF

Aspose.Imaging.RectangleF 구조는 그려야 할 직경을 나타냅니다.

Exceptions

ArgumentNullException

pen’ is null.

DrawRectangle(펜, 오른쪽)

Aspose.Imaging.Rectangle 구조에 의해 지정된 직경을 추출합니다.

public void DrawRectangle(Pen pen, Rectangle rect)

Parameters

pen Pen

Aspose.Imaging.Pen은 직경의 색상, 폭 및 스타일을 결정합니다.

rect Rectangle

Aspose.Imaging.Rectangle 구조는 그려야 할 직경을 나타냅니다.

Examples

이 예제는 이미지 표면에 원시 형태를 만들기 위해 그래픽 클래스를 사용합니다.이 작업을 보여주기 위해, 예제는 PNG 형식으로 새로운 이미지를 만들고 그래픽 클래스에 의해 노출 된 그림 방법을 사용하여 이미지 표면에 원시 형태를 그립니다.

//Creates an instance of FileStream
                                                                                                                                                                                                                                                                using (System.IO.FileStream stream = new System.IO.FileStream(@"C:\temp\output.png", System.IO.FileMode.Create))
                                                                                                                                                                                                                                                                {
                                                                                                                                                                                                                                                                    //Create an instance of PngOptions and set its various properties
                                                                                                                                                                                                                                                                    Aspose.Imaging.ImageOptions.PngOptions pngOptions = new Aspose.Imaging.ImageOptions.PngOptions();

                                                                                                                                                                                                                                                                    //Set the Source for PngOptions
                                                                                                                                                                                                                                                                    pngOptions.Source = new Aspose.Imaging.Sources.StreamSource(stream);

                                                                                                                                                                                                                                                                    //Create an instance of Image 
                                                                                                                                                                                                                                                                    using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Create(pngOptions, 500, 500))
                                                                                                                                                                                                                                                                    {
                                                                                                                                                                                                                                                                        //Create and initialize an instance of Graphics class
                                                                                                                                                                                                                                                                        Aspose.Imaging.Graphics graphics = new Aspose.Imaging.Graphics(image);

                                                                                                                                                                                                                                                                        //Clear Graphics surface
                                                                                                                                                                                                                                                                        graphics.Clear(Aspose.Imaging.Color.Wheat);

                                                                                                                                                                                                                                                                        //Draw an Arc by specifying the Pen object having Black color, 
                                                                                                                                                                                                                                                                        //a Rectangle surrounding the Arc, Start Angle and Sweep Angle
                                                                                                                                                                                                                                                                        graphics.DrawArc(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Black, 2), new Aspose.Imaging.Rectangle(200, 200, 100, 200), 0, 300);

                                                                                                                                                                                                                                                                        //Draw a Bezier by specifying the Pen object having Blue color and co-ordinate Points.
                                                                                                                                                                                                                                                                        graphics.DrawBezier(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Blue, 2), new Aspose.Imaging.Point(250, 100), new Aspose.Imaging.Point(300, 30), new Aspose.Imaging.Point(450, 100), new Aspose.Imaging.Point(235, 25));

                                                                                                                                                                                                                                                                        //Draw a Curve by specifying the Pen object having Green color and an array of Points
                                                                                                                                                                                                                                                                        graphics.DrawCurve(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Green, 2), new[] { new Aspose.Imaging.Point(100, 200), new Aspose.Imaging.Point(100, 350), new Aspose.Imaging.Point(200, 450) });

                                                                                                                                                                                                                                                                        //Draw an Ellipse using the Pen object and a surrounding Rectangle
                                                                                                                                                                                                                                                                        graphics.DrawEllipse(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Yellow, 2), new Aspose.Imaging.Rectangle(300, 300, 100, 100));

                                                                                                                                                                                                                                                                        //Draw a Line 
                                                                                                                                                                                                                                                                        graphics.DrawLine(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Violet, 2), new Aspose.Imaging.Point(100, 100), new Aspose.Imaging.Point(200, 200));

                                                                                                                                                                                                                                                                        //Draw a Pie segment
                                                                                                                                                                                                                                                                        graphics.DrawPie(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Silver, 2), new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(200, 20), new Aspose.Imaging.Size(200, 200)), 0, 45);

                                                                                                                                                                                                                                                                        //Draw a Polygon by specifying the Pen object having Red color and an array of Points
                                                                                                                                                                                                                                                                        graphics.DrawPolygon(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Red, 2), new[] { new Aspose.Imaging.Point(20, 100), new Aspose.Imaging.Point(20, 200), new Aspose.Imaging.Point(220, 20) });

                                                                                                                                                                                                                                                                        //Draw a Rectangle
                                                                                                                                                                                                                                                                        graphics.DrawRectangle(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Orange, 2), new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(250, 250), new Aspose.Imaging.Size(100, 100)));

                                                                                                                                                                                                                                                                        //Create a SolidBrush object and set its various properties
                                                                                                                                                                                                                                                                        Aspose.Imaging.Brushes.SolidBrush brush = new Aspose.Imaging.Brushes.SolidBrush();
                                                                                                                                                                                                                                                                        brush.Color = Color.Purple;
                                                                                                                                                                                                                                                                        brush.Opacity = 100;

                                                                                                                                                                                                                                                                        //Draw a String using the SolidBrush object and Font, at specific Point
                                                                                                                                                                                                                                                                        graphics.DrawString("This image is created by Aspose.Imaging API", new Aspose.Imaging.Font("Times New Roman", 16), brush, new Aspose.Imaging.PointF(50, 400));

                                                                                                                                                                                                                                                                        // save all changes.
                                                                                                                                                                                                                                                                        image.Save();
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                }

Exceptions

ArgumentNullException

pen’ is null.

DrawRectangle(펜, 플로트, 플로트, 플로트)

좌표 쌍, 폭 및 높이에 의해 지정된 직경을 추적합니다.

public void DrawRectangle(Pen pen, float x, float y, float width, float height)

Parameters

pen Pen

Aspose.Imaging.Pen은 직경의 색상, 폭 및 스타일을 결정합니다.

x float

엑스 코디네이트는 오른쪽 상단 모서리의 상단 왼쪽 모서리입니다.

y float

좌석의 상단 왼쪽 구석의 y 조정은 끌어내는 것입니다.

width float

그림을 그리는 직경의 넓이.

height float

그림을 그릴 수 있는 직경의 높이.

Exceptions

ArgumentNullException

pen’ is null.

DrawRectangle(펜, int, int, int, int)

좌표 쌍, 폭 및 높이에 의해 지정된 직경을 추적합니다.

public void DrawRectangle(Pen pen, int x, int y, int width, int height)

Parameters

pen Pen

Aspose.Imaging.Pen은 직경의 색상, 폭 및 스타일을 결정합니다.

x int

엑스 코디네이트는 오른쪽 상단 모서리의 상단 왼쪽 모서리입니다.

y int

좌석의 상단 왼쪽 구석의 y 조정은 끌어내는 것입니다.

width int

그림을 그릴 수 있는 직경의 넓이.

height int

그려야 할 직경의 높이.

Exceptions

ArgumentNullException

pen’ is null.

DrawRectangles(펜, RectangleF[])

Aspose.Imaging.RectangleF 구조에 의해 지정된 일련의 직경을 드라이브합니다.

public void DrawRectangles(Pen pen, RectangleF[] rects)

Parameters

pen Pen

Aspose.Imaging.Pen은 직경의 색상, 폭 및 스타일을 결정합니다.

rects RectangleF [ ] [ [ ]

Aspose.Imaging.RectangleF 구조의 범위는 그려야 할 직경을 나타냅니다.

Exceptions

ArgumentNullException

pen’ is null.-or-rects’ is null.

DrawRectangles(펜, 오른쪽[])

Aspose.Imaging.Rectangle 구조에 의해 지정된 일련의 직경을 끌어 들이고 있습니다.

public void DrawRectangles(Pen pen, Rectangle[] rects)

Parameters

pen Pen

Aspose.Imaging.Pen은 직경의 색상, 폭 및 스타일을 결정합니다.

rects Rectangle [ ] [ [ ]

Aspose.Imaging.Rectangle 구조는 그려야 할 직경을 나타냅니다.

Examples

이 예제는 창조 및 사용 펜 개체를 보여줍니다.이 예제는 새로운 이미지를 만들고 이미지 표면에 직경을 그립니다.

//Create an instance of BmpOptions and set its various properties
                                                                                                                                       Aspose.Imaging.ImageOptions.BmpOptions bmpOptions = new Aspose.Imaging.ImageOptions.BmpOptions();
                                                                                                                                       bmpOptions.BitsPerPixel = 24;

                                                                                                                                       //Create an instance of FileCreateSource and assign it as Source for the instance of BmpOptions
                                                                                                                                       //Second Boolean parameter determines if the file to be created IsTemporal or not
                                                                                                                                       bmpOptions.Source = new Aspose.Imaging.Sources.FileCreateSource(@"C:\temp\sample.bmp", false);

                                                                                                                                       //Create an instance of Image at specified Path
                                                                                                                                       using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Create(bmpOptions, 500, 500))
                                                                                                                                       {
                                                                                                                                           //Create an instance of Graphics and initialize it with Image object
                                                                                                                                           Aspose.Imaging.Graphics graphics = new Aspose.Imaging.Graphics(image);

                                                                                                                                           //Clear the Graphics sutface with White Color
                                                                                                                                           graphics.Clear(Aspose.Imaging.Color.White);

                                                                                                                                           //Create an instance of Pen with color Red and width 5
                                                                                                                                           Aspose.Imaging.Pen pen = new Aspose.Imaging.Pen(Aspose.Imaging.Color.Red, 5f);

                                                                                                                                           //Create an instance of HatchBrush and set its properties
                                                                                                                                           Aspose.Imaging.Brushes.HatchBrush brush = new Aspose.Imaging.Brushes.HatchBrush();
                                                                                                                                           brush.BackgroundColor = Aspose.Imaging.Color.Wheat;
                                                                                                                                           brush.ForegroundColor = Aspose.Imaging.Color.Red;

                                                                                                                                           //Create an instance of Pen
                                                                                                                                           //initialize it with HatchBrush object and width
                                                                                                                                           Aspose.Imaging.Pen brusedpen = new Pen(brush, 5);

                                                                                                                                           //Draw Rectangles by specifying Pen object
                                                                                                                                           graphics.DrawRectangles(pen, new[]
                                                                                                                                           {
                                                                                                                                               new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(210, 210), new Aspose.Imaging.Size(100, 100)),
                                                                                                                                               new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(110, 110), new Aspose.Imaging.Size(100, 100)),
                                                                                                                                               new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(310, 310), new Aspose.Imaging.Size(100, 100))
                                                                                                                                           });

                                                                                                                                           //Draw Rectangles by specifying Pen object
                                                                                                                                           graphics.DrawRectangles(brusedpen, new[]
                                                                                                                                           {
                                                                                                                                               new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(310, 110), new Aspose.Imaging.Size(100, 100)),
                                                                                                                                               new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(110, 310), new Aspose.Imaging.Size(100, 100))
                                                                                                                                           });

                                                                                                                                           // save all changes.
                                                                                                                                           image.Save();
                                                                                                                                       }

Exceptions

ArgumentNullException

pen’ is null.-or-rects’ is null.

DrawString(링, 폰트, 브러시, 플로이트, 플로이트)

지정된 위치에 지정된 텍스트 스트립을 지정된 Aspose.Imaging.Brush 및 Aspose.Imaging.Font 개체로 끌어 올립니다.

public void DrawString(string s, Font font, Brush brush, float x, float y)

Parameters

s string

끈을 끌어 낸다.

font Font

Aspose.Imaging.Font 는 링크의 텍스트 형식을 정의합니다.

brush Brush

Aspose.Imaging.Brush는 그려진 텍스트의 색깔과 구조를 결정합니다.

x float

텍스트의 상단 왼쪽 구석의 x 조정.

y float

텍스트의 상단 왼쪽 구석의 y 조정.

Exceptions

ArgumentNullException

brush’ is null.-or-s’ is null.

DrawString(링, 폰트, 브러시, 포인트F)

지정된 위치에 지정된 텍스트 스트립을 지정된 Aspose.Imaging.Brush 및 Aspose.Imaging.Font 개체로 끌어 올립니다.

public void DrawString(string s, Font font, Brush brush, PointF point)

Parameters

s string

끈을 끌어 낸다.

font Font

Aspose.Imaging.Font 는 링크의 텍스트 형식을 정의합니다.

brush Brush

Aspose.Imaging.Brush는 그려진 텍스트의 색깔과 구조를 결정합니다.

point PointF

Aspose.Imaging.PointF 구조는 그려진 텍스트의 상단 왼쪽 구석을 지정합니다.

Examples

이 예제는 이미지 표면에 원시 형태를 만들기 위해 그래픽 클래스를 사용합니다.이 작업을 보여주기 위해, 예제는 PNG 형식으로 새로운 이미지를 만들고 그래픽 클래스에 의해 노출 된 그림 방법을 사용하여 이미지 표면에 원시 형태를 그립니다.

//Creates an instance of FileStream
                                                                                                                                                                                                                                                                using (System.IO.FileStream stream = new System.IO.FileStream(@"C:\temp\output.png", System.IO.FileMode.Create))
                                                                                                                                                                                                                                                                {
                                                                                                                                                                                                                                                                    //Create an instance of PngOptions and set its various properties
                                                                                                                                                                                                                                                                    Aspose.Imaging.ImageOptions.PngOptions pngOptions = new Aspose.Imaging.ImageOptions.PngOptions();

                                                                                                                                                                                                                                                                    //Set the Source for PngOptions
                                                                                                                                                                                                                                                                    pngOptions.Source = new Aspose.Imaging.Sources.StreamSource(stream);

                                                                                                                                                                                                                                                                    //Create an instance of Image 
                                                                                                                                                                                                                                                                    using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Create(pngOptions, 500, 500))
                                                                                                                                                                                                                                                                    {
                                                                                                                                                                                                                                                                        //Create and initialize an instance of Graphics class
                                                                                                                                                                                                                                                                        Aspose.Imaging.Graphics graphics = new Aspose.Imaging.Graphics(image);

                                                                                                                                                                                                                                                                        //Clear Graphics surface
                                                                                                                                                                                                                                                                        graphics.Clear(Aspose.Imaging.Color.Wheat);

                                                                                                                                                                                                                                                                        //Draw an Arc by specifying the Pen object having Black color, 
                                                                                                                                                                                                                                                                        //a Rectangle surrounding the Arc, Start Angle and Sweep Angle
                                                                                                                                                                                                                                                                        graphics.DrawArc(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Black, 2), new Aspose.Imaging.Rectangle(200, 200, 100, 200), 0, 300);

                                                                                                                                                                                                                                                                        //Draw a Bezier by specifying the Pen object having Blue color and co-ordinate Points.
                                                                                                                                                                                                                                                                        graphics.DrawBezier(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Blue, 2), new Aspose.Imaging.Point(250, 100), new Aspose.Imaging.Point(300, 30), new Aspose.Imaging.Point(450, 100), new Aspose.Imaging.Point(235, 25));

                                                                                                                                                                                                                                                                        //Draw a Curve by specifying the Pen object having Green color and an array of Points
                                                                                                                                                                                                                                                                        graphics.DrawCurve(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Green, 2), new[] { new Aspose.Imaging.Point(100, 200), new Aspose.Imaging.Point(100, 350), new Aspose.Imaging.Point(200, 450) });

                                                                                                                                                                                                                                                                        //Draw an Ellipse using the Pen object and a surrounding Rectangle
                                                                                                                                                                                                                                                                        graphics.DrawEllipse(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Yellow, 2), new Aspose.Imaging.Rectangle(300, 300, 100, 100));

                                                                                                                                                                                                                                                                        //Draw a Line 
                                                                                                                                                                                                                                                                        graphics.DrawLine(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Violet, 2), new Aspose.Imaging.Point(100, 100), new Aspose.Imaging.Point(200, 200));

                                                                                                                                                                                                                                                                        //Draw a Pie segment
                                                                                                                                                                                                                                                                        graphics.DrawPie(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Silver, 2), new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(200, 20), new Aspose.Imaging.Size(200, 200)), 0, 45);

                                                                                                                                                                                                                                                                        //Draw a Polygon by specifying the Pen object having Red color and an array of Points
                                                                                                                                                                                                                                                                        graphics.DrawPolygon(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Red, 2), new[] { new Aspose.Imaging.Point(20, 100), new Aspose.Imaging.Point(20, 200), new Aspose.Imaging.Point(220, 20) });

                                                                                                                                                                                                                                                                        //Draw a Rectangle
                                                                                                                                                                                                                                                                        graphics.DrawRectangle(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Orange, 2), new Aspose.Imaging.Rectangle(new Aspose.Imaging.Point(250, 250), new Aspose.Imaging.Size(100, 100)));

                                                                                                                                                                                                                                                                        //Create a SolidBrush object and set its various properties
                                                                                                                                                                                                                                                                        Aspose.Imaging.Brushes.SolidBrush brush = new Aspose.Imaging.Brushes.SolidBrush();
                                                                                                                                                                                                                                                                        brush.Color = Color.Purple;
                                                                                                                                                                                                                                                                        brush.Opacity = 100;

                                                                                                                                                                                                                                                                        //Draw a String using the SolidBrush object and Font, at specific Point
                                                                                                                                                                                                                                                                        graphics.DrawString("This image is created by Aspose.Imaging API", new Aspose.Imaging.Font("Times New Roman", 16), brush, new Aspose.Imaging.PointF(50, 400));

                                                                                                                                                                                                                                                                        // save all changes.
                                                                                                                                                                                                                                                                        image.Save();
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                }

Exceptions

ArgumentNullException

brush’ is null.-or-s’ is null.

DrawString(스트리트, 글꼴, 브러시, 플로이트, 플로이트, 스트링포맷)

지정된 위치에 지정된 텍스트 스트립을 지정된 Aspose.Imaging.Brush 및 Aspose.Imaging.Font 개체를 사용하여 지정된 Aspose.Imaging.StringFormat의 형성 속성을 사용하여 지정합니다.

public void DrawString(string s, Font font, Brush brush, float x, float y, StringFormat format)

Parameters

s string

끈을 끌어 낸다.

font Font

Aspose.Imaging.Font 는 링크의 텍스트 형식을 정의합니다.

brush Brush

Aspose.Imaging.Brush는 그려진 텍스트의 색깔과 구조를 결정합니다.

x float

텍스트의 상단 왼쪽 구석의 x 조정.

y float

텍스트의 상단 왼쪽 구석의 y 조정.

format StringFormat

Aspose.Imaging.StringFormat는 인쇄 된 텍스트에 적용되는 라인 공간 및 일치와 같은 형성 속성을 지정합니다.

Exceptions

ArgumentNullException

brush’ is null.-or-s’ is null.

DrawString(링, 글꼴, 브러시, PointF, StringFormat)

지정된 위치에 지정된 텍스트 스트립을 지정된 Aspose.Imaging.Brush 및 Aspose.Imaging.Font 개체를 사용하여 지정된 Aspose.Imaging.StringFormat의 형성 속성을 사용하여 지정합니다.

public void DrawString(string s, Font font, Brush brush, PointF point, StringFormat format)

Parameters

s string

끈을 끌어 낸다.

font Font

Aspose.Imaging.Font 는 링크의 텍스트 형식을 정의합니다.

brush Brush

Aspose.Imaging.Brush는 그려진 텍스트의 색깔과 구조를 결정합니다.

point PointF

Aspose.Imaging.PointF 구조는 그려진 텍스트의 상단 왼쪽 구석을 지정합니다.

format StringFormat

Aspose.Imaging.StringFormat는 인쇄 된 텍스트에 적용되는 라인 공간 및 일치와 같은 형성 속성을 지정합니다.

Exceptions

ArgumentNullException

brush’ is null.-or-s’ is null.

DrawString(링크, 글꼴, 브러쉬, RectangleF)

지정된 텍스트 스트립을 지정된 직경에 지정된 Aspose.Imaging.Brush 및 Aspose.Imaging.Font 개체로 끌어 올립니다.

public void DrawString(string s, Font font, Brush brush, RectangleF layoutRectangle)

Parameters

s string

끈을 끌어 낸다.

font Font

Aspose.Imaging.Font 는 링크의 텍스트 형식을 정의합니다.

brush Brush

Aspose.Imaging.Brush는 그려진 텍스트의 색깔과 구조를 결정합니다.

layoutRectangle RectangleF

Aspose.Imaging.RectangleF 구조는 인쇄 된 텍스트의 위치를 지정합니다.

Exceptions

ArgumentNullException

brush’ is null.-or-s’ is null.

DrawString(링, 글꼴, 브러쉬, RectangleF, StringFormat)

지정된 텍스트 스트립을 지정된 직경에 지정된 Aspose.Imaging.Brush 및 Aspose.Imaging.Font 개체를 사용하여 지정된 Aspose.Imaging.StringFormat의 형성 속성을 사용하여 끌어 올립니다.

public void DrawString(string s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat format)

Parameters

s string

끈을 끌어 낸다.

font Font

Aspose.Imaging.Font 는 링크의 텍스트 형식을 정의합니다.

brush Brush

Aspose.Imaging.Brush는 그려진 텍스트의 색깔과 구조를 결정합니다.

layoutRectangle RectangleF

Aspose.Imaging.RectangleF 구조는 인쇄 된 텍스트의 위치를 지정합니다.

format StringFormat

Aspose.Imaging.StringFormat는 인쇄 된 텍스트에 적용되는 라인 공간 및 일치와 같은 형성 속성을 지정합니다.

Exceptions

ArgumentNullException

brush’ is null.-or-s’ is null.-or-brush’ is null.

EndUpdate()

BeginUpdate가 호출된 후에 시작된 그래픽 작업의 캐시가 끝납니다.이 방법을 호출할 때 이전 그래픽 작업이 즉시 적용됩니다.

public void EndUpdate()

FillClosedCurve(브러시, 포인트[])

이 방법은 Aspose.Imaging.PointF 구조의 일련에 의해 정의 된 닫힌 카디널 스핀 곡선의 내부를 채우고 0.5 및 Aspose.Imaging.FillMode.Alternate 채우기 모드를 사용합니다.

public void FillClosedCurve(Brush brush, PointF[] points)

Parameters

brush Brush

Aspose.Imaging.Brush는 채우기의 특징을 결정합니다.

points PointF [ ] [ [ ]

Spline을 정의하는 Aspose.Imaging.PointF 구조의 범위.

Exceptions

ArgumentNullException

brush’ is null.-or-points’ is null.

FillClosedCurve(브러시, 포인트[ ] [ [ ], 필드 모드)

지정된 채우기 모드를 사용하여 Aspose.Imaging.PointF 구조의 일련에 의해 정의 된 닫힌 카디널 스플린 곡선의 내부를 채우십시오.이 방법은 0.5의 기본 전압을 사용합니다.

public void FillClosedCurve(Brush brush, PointF[] points, FillMode fillMode)

Parameters

brush Brush

Aspose.Imaging.Brush는 채우기의 특징을 결정합니다.

points PointF [ ] [ [ ]

Spline을 정의하는 Aspose.Imaging.PointF 구조의 범위.

fillMode FillMode

Aspose.Imaging.FillMode 목록의 회원은 커버가 어떻게 채워지는지 결정합니다.

Exceptions

ArgumentNullException

brush’ is null.-or-points’ is null.

FillClosedCurve(브러시, 포인트[ ] [ [ ], FillMode, 플로이트)

Aspose.Imaging.PointF 구조의 일련에 의해 정의 된 닫힌 카디널 스플린 곡선의 내부를 채우고 지정된 채우기 모드와 전압을 사용합니다.

public void FillClosedCurve(Brush brush, PointF[] points, FillMode fillmode, float tension)

Parameters

brush Brush

Aspose.Imaging.Brush는 채우기의 특징을 결정합니다.

points PointF [ ] [ [ ]

Spline을 정의하는 Aspose.Imaging.PointF 구조의 범위.

fillmode FillMode

Aspose.Imaging.FillMode 목록의 회원은 커버가 어떻게 채워지는지 결정합니다.

tension float

곡선의 긴장을 지정하는 0.0F보다 크거나 동일한 값입니다.

Exceptions

ArgumentNullException

brush’ is null.-or-points’ is null.

FillClosedCurve(브러시, 포인트[])

이 방법은 Aspose.Imaging.Point 구조의 일련에 의해 정의 된 닫힌 카디널 스핀 곡선의 내부를 채우고 0.5 및 Aspose.Imaging.FillMode.Alternate 채우기 모드를 사용합니다.

public void FillClosedCurve(Brush brush, Point[] points)

Parameters

brush Brush

Aspose.Imaging.Brush는 채우기의 특징을 결정합니다.

points Point [ ] [ [ ]

Spline을 정의하는 Aspose.Imaging.Point 구조의 범위.

Exceptions

ArgumentNullException

brush’ is null.-or-points’ is null.

FillClosedCurve(브러시, 포인트[ ] [ [ ], 필드 모드)

지정된 채우기 모드를 사용하여 Aspose.Imaging.Point 구조의 일련에 의해 정의 된 닫힌 카디널 스플린 곡선의 내부를 채우십시오.이 방법은 0.5의 기본 전압을 사용합니다.

public void FillClosedCurve(Brush brush, Point[] points, FillMode fillmode)

Parameters

brush Brush

Aspose.Imaging.Brush는 채우기의 특징을 결정합니다.

points Point [ ] [ [ ]

Spline을 정의하는 Aspose.Imaging.Point 구조의 범위.

fillmode FillMode

Aspose.Imaging.FillMode 목록의 회원은 커버가 어떻게 채워지는지 결정합니다.

Exceptions

ArgumentNullException

brush’ is null.-or-points’ is null.

FillClosedCurve(브러시, 포인트[ ] [ [ ], FillMode, 플로이트)

Aspose.Imaging.Point 구조의 일련에 의해 정의 된 닫힌 카디널 스플린 곡선의 내부를 채우고 지정된 채우기 모드와 전압을 사용합니다.

public void FillClosedCurve(Brush brush, Point[] points, FillMode fillmode, float tension)

Parameters

brush Brush

Aspose.Imaging.Brush는 채우기의 특징을 결정합니다.

points Point [ ] [ [ ]

Spline을 정의하는 Aspose.Imaging.Point 구조의 범위.

fillmode FillMode

Aspose.Imaging.FillMode 목록의 회원은 커버가 어떻게 채워지는지 결정합니다.

tension float

곡선의 긴장을 지정하는 0.0F보다 크거나 동일한 값입니다.

Exceptions

ArgumentNullException

brush’ is null.-or-points’ is null.

FillEllipse(브러시, RectangleF)

그것은 Aspose.Imaging.RectangleF 구조에 의해 지정된 경계 직경에 의해 정의 된 엘리프스의 내부를 채우고 있습니다.

public void FillEllipse(Brush brush, RectangleF rect)

Parameters

brush Brush

Aspose.Imaging.Brush는 채우기의 특징을 결정합니다.

rect RectangleF

Aspose.Imaging.RectangleF 구조는 엘리프스를 정의하는 결합 직경을 나타냅니다.

Exceptions

ArgumentNullException

brush’ is null.

FillEllipse(브러시, 플로이트, 플로이트, 플로이트)

그것은 좌표, 폭 및 높이의 쌍에 의해 지정 된 경계 직경에 의해 정의 된 엘리프스의 내부를 채우고 있습니다.

public void FillEllipse(Brush brush, float x, float y, float width, float height)

Parameters

brush Brush

Aspose.Imaging.Brush는 채우기의 특징을 결정합니다.

x float

엘리피스를 정의하는 경계 직경의 상단 왼쪽 구석의 x 조정.

y float

엘리피스를 정의하는 경계 직경의 상단 왼쪽 구석의 y 조정.

width float

엘리피스를 정의하는 경계 직경의 폭.

height float

엘리피스를 정의하는 경계 직경의 높이.

Exceptions

ArgumentNullException

brush’ is null.

FillEllipse(브러시, 레크탄글)

그것은 Aspose.Imaging.Rectangle 구조에 의해 지정된 경계 직경에 의해 정의 된 엘리프스의 내부를 채우고 있습니다.

public void FillEllipse(Brush brush, Rectangle rect)

Parameters

brush Brush

Aspose.Imaging.Brush는 채우기의 특징을 결정합니다.

rect Rectangle

Aspose.Imaging.Rectangle 구조는 엘리프스를 정의하는 경계 직경을 나타냅니다.

Exceptions

ArgumentNullException

brush’ is null.

FillEllipse(브러시, int, int, int, int)

그것은 좌표, 폭 및 높이의 쌍에 의해 지정 된 경계 직경에 의해 정의 된 엘리프스의 내부를 채우고 있습니다.

public void FillEllipse(Brush brush, int x, int y, int width, int height)

Parameters

brush Brush

Aspose.Imaging.Brush는 채우기의 특징을 결정합니다.

x int

엘리피스를 정의하는 경계 직경의 상단 왼쪽 구석의 x 조정.

y int

엘리피스를 정의하는 경계 직경의 상단 왼쪽 구석의 y 조정.

width int

엘리피스를 정의하는 경계 직경의 폭.

height int

엘리피스를 정의하는 경계 직경의 높이.

Exceptions

ArgumentNullException

brush’ is null.

FillPath(브러시, GraphicsPath)

그것은 Aspose.Imaging.GraphicsPath의 내부를 채우고 있습니다.

public void FillPath(Brush brush, GraphicsPath path)

Parameters

brush Brush

Aspose.Imaging.Brush는 채우기의 특징을 결정합니다.

path GraphicsPath

Aspose.Imaging.GraphicsPath는 채우는 길을 나타냅니다.

Exceptions

ArgumentNullException

brush’ is null.-or-path’ is null.

FillPie(브러시, 직경, 플로이트, 플로이트)

그것은 Aspose.Imaging.RectangleF 구조와 두 개의 방사선에 의해 지정된 엘리프스에 의해 정의 된 피어 섹션의 내부를 채우고 있습니다.

public void FillPie(Brush brush, Rectangle rect, float startAngle, float sweepAngle)

Parameters

brush Brush

Aspose.Imaging.Brush는 채우기의 특징을 결정합니다.

rect Rectangle

Aspose.Imaging.Rectangle 구조는 피 섹션이 오는 엘리프스를 정의하는 경계 직경을 나타냅니다.

startAngle float

지점의 각도는 x-axis에서 pie 섹션의 첫 측면까지 시계적으로 측정됩니다.

sweepAngle float

각도는 startAngle’의 매개 변수에서 피어 섹션의 두 번째 측면으로 시계 방향으로 측정됩니다.

Examples

다음 예제는 개별 GIF 블록에서 애니메이션 GIF 이미지를 구성하는 방법을 보여줍니다.

string dir = "c:\\temp\\";

                                                                                                       // Create a GIF image 100 x 100 px.
                                                                                                       // The first block is fully black by default.
                                                                                                       using (Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock firstBlock = new Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock(100, 100))
                                                                                                       using (Aspose.Imaging.FileFormats.Gif.GifImage gifImage = new Aspose.Imaging.FileFormats.Gif.GifImage(firstBlock))
                                                                                                       {
                                                                                                           // The first circle is red
                                                                                                           Aspose.Imaging.Brushes.SolidBrush brush1 = new Aspose.Imaging.Brushes.SolidBrush(Aspose.Imaging.Color.Red);

                                                                                                           // The second circle is black
                                                                                                           Aspose.Imaging.Brushes.SolidBrush brush2 = new Aspose.Imaging.Brushes.SolidBrush(Aspose.Imaging.Color.Black);

                                                                                                           // Gradually inscrease the angle of the red arc shape.
                                                                                                           for (int angle = 10; angle <= 360; angle += 10)
                                                                                                           {
                                                                                                               Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock block = new Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock(100, 100);

                                                                                                               Aspose.Imaging.Graphics gr = new Aspose.Imaging.Graphics(block);
                                                                                                               gr.FillPie(brush1, block.Bounds, 0, angle);

                                                                                                               gifImage.AddBlock(block);
                                                                                                           }

                                                                                                           // Gradually inscrease the angle of the black arc and wipe out the red arc.
                                                                                                           for (int angle = 10; angle <= 360; angle += 10)
                                                                                                           {
                                                                                                               Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock block = new Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock(100, 100);

                                                                                                               Aspose.Imaging.Graphics gr = new Aspose.Imaging.Graphics(block);
                                                                                                               gr.FillPie(brush2, block.Bounds, 0, angle);
                                                                                                               gr.FillPie(brush1, block.Bounds, angle, 360 - angle);

                                                                                                               gifImage.AddBlock(block);
                                                                                                           }

                                                                                                           gifImage.Save(dir + "animated_radar.gif");
                                                                                                       }

Exceptions

ArgumentNullException

brush’ is null.

FillPie(브러시, RectangleF, 플로이트, 플로이트)

그것은 Aspose.Imaging.RectangleF 구조와 두 개의 방사선에 의해 지정된 엘리프스에 의해 정의 된 피어 섹션의 내부를 채우고 있습니다.

public void FillPie(Brush brush, RectangleF rect, float startAngle, float sweepAngle)

Parameters

brush Brush

Aspose.Imaging.Brush는 채우기의 특징을 결정합니다.

rect RectangleF

Aspose.Imaging.RectangleF 구조는 피 섹션이 나오는 엘리프스를 정의하는 경계 직경을 나타냅니다.

startAngle float

지점의 각도는 x-axis에서 pie 섹션의 첫 측면까지 시계적으로 측정됩니다.

sweepAngle float

각도는 startAngle’의 매개 변수에서 피어 섹션의 두 번째 측면으로 시계 방향으로 측정됩니다.

Exceptions

ArgumentNullException

brush’ is null.

FillPie(브러시, 함대, 함대, 함대, 함대, 함대)

그것은 일련의 좌표, 폭, 높이 및 두 개의 라디얼 라인에 의해 지정된 엘리프스에 의해 정의 된 피어 섹션의 내부를 채우고 있습니다.

public void FillPie(Brush brush, float x, float y, float width, float height, float startAngle, float sweepAngle)

Parameters

brush Brush

Aspose.Imaging.Brush는 채우기의 특징을 결정합니다.

x float

좌석의 상단 좌석의 x 조정은 피어 섹션이 나오는 엘리피스를 정의합니다.

y float

좌석의 상단-왼쪽 구석의 y 조정은 피의 섹션이 나오는 엘리프스를 정의합니다.

width float

경계 직경의 폭은 피 섹션이 나오는 엘리피스를 정의합니다.

height float

피 섹션이 나오는 엘리프스를 정의하는 경계 직경의 높이.

startAngle float

지점의 각도는 x-axis에서 pie 섹션의 첫 측면까지 시계적으로 측정됩니다.

sweepAngle float

각도는 startAngle’의 매개 변수에서 피어 섹션의 두 번째 측면으로 시계 방향으로 측정됩니다.

Exceptions

ArgumentNullException

brush’ is null.

FillPie(브러시, int, int, int, int, int)

그것은 일련의 좌표, 폭, 높이 및 두 개의 라디얼 라인에 의해 지정된 엘리프스에 의해 정의 된 피어 섹션의 내부를 채우고 있습니다.

public void FillPie(Brush brush, int x, int y, int width, int height, int startAngle, int sweepAngle)

Parameters

brush Brush

Aspose.Imaging.Brush는 채우기의 특징을 결정합니다.

x int

좌석의 상단 좌석의 x 조정은 피어 섹션이 나오는 엘리피스를 정의합니다.

y int

좌석의 상단-왼쪽 구석의 y 조정은 피의 섹션이 나오는 엘리프스를 정의합니다.

width int

경계 직경의 폭은 피 섹션이 나오는 엘리피스를 정의합니다.

height int

피 섹션이 나오는 엘리프스를 정의하는 경계 직경의 높이.

startAngle int

지점의 각도는 x-axis에서 pie 섹션의 첫 측면까지 시계적으로 측정됩니다.

sweepAngle int

각도는 startAngle’의 매개 변수에서 피어 섹션의 두 번째 측면으로 시계 방향으로 측정됩니다.

Exceptions

ArgumentNullException

brush’ is null.

FillPolygon(브러시, 포인트[])

그것은 Aspose.Imaging.PointF 구조와 Aspose.Imaging.FillMode.Alternate에 의해 지정된 포인트의 범위에 의해 정의 된 폴리곤의 내부를 채우고 있습니다.

public void FillPolygon(Brush brush, PointF[] points)

Parameters

brush Brush

Aspose.Imaging.Brush는 채우기의 특징을 결정합니다.

points PointF [ ] [ [ ]

Aspose.Imaging.PointF 구조의 범위는 채우기 위해 폴리곤의 수직을 나타냅니다.

Exceptions

ArgumentNullException

brush’ is null.-or-points’ is null.

FillPolygon(브러시, 포인트[ ] [ [ ], 필드 모드)

Aspose.Imaging.PointF 구조에 의해 지정된 포인트의 범위에 의해 정의 된 폴리곤의 내부를 채우고 지정된 채우기 모드를 사용합니다.

public void FillPolygon(Brush brush, PointF[] points, FillMode fillMode)

Parameters

brush Brush

Aspose.Imaging.Brush는 채우기의 특징을 결정합니다.

points PointF [ ] [ [ ]

Aspose.Imaging.PointF 구조의 범위는 채우기 위해 폴리곤의 수직을 나타냅니다.

fillMode FillMode

Aspose.Imaging.FillMode 목록의 회원은 채우기의 스타일을 결정합니다.

Exceptions

ArgumentNullException

brush’ is null.-or-points’ is null.

FillPolygon(브러시, 포인트[])

그것은 Aspose.Imaging.Point 구조와 Aspose.Imaging.FillMode.Alternate에 의해 지정된 포인트의 범위에 의해 정의 된 폴리곤의 내부를 채우고 있습니다.

public void FillPolygon(Brush brush, Point[] points)

Parameters

brush Brush

Aspose.Imaging.Brush는 채우기의 특징을 결정합니다.

points Point [ ] [ [ ]

Aspose.Imaging.Point 구조의 범위는 채우기 위해 폴리곤의 수직을 나타냅니다.

Exceptions

ArgumentNullException

brush’ is null.-or-points’ is null.

FillPolygon(브러시, 포인트[ ] [ [ ], 필드 모드)

Aspose.Imaging.Point 구조에 의해 지정된 포인트의 범위에 의해 정의 된 폴리곤의 내부를 채우고 지정된 채우기 모드를 사용합니다.

public void FillPolygon(Brush brush, Point[] points, FillMode fillMode)

Parameters

brush Brush

Aspose.Imaging.Brush는 채우기의 특징을 결정합니다.

points Point [ ] [ [ ]

Aspose.Imaging.Point 구조의 범위는 채우기 위해 폴리곤의 수직을 나타냅니다.

fillMode FillMode

Aspose.Imaging.FillMode 목록의 회원은 채우기의 스타일을 결정합니다.

Exceptions

ArgumentNullException

brush’ is null.-or-points’ is null.

FillRectangle(브러시, 레크탄글)

그것은 Aspose.Imaging.Rectangle 구조에 의해 지정된 직경의 내부를 채우고 있습니다.

public void FillRectangle(Brush brush, Rectangle rect)

Parameters

brush Brush

Aspose.Imaging.Brush는 채우기의 특징을 결정합니다.

rect Rectangle

Aspose.Imaging.Rectangle 구조는 채우는 직경을 나타냅니다.

Exceptions

ArgumentNullException

brush’ is null.

FillRectangle(브러시, RectangleF)

그것은 Aspose.Imaging.RectangleF 구조에 의해 지정된 직경의 내부를 채우고 있습니다.

public void FillRectangle(Brush brush, RectangleF rect)

Parameters

brush Brush

Aspose.Imaging.Brush는 채우기의 특징을 결정합니다.

rect RectangleF

Aspose.Imaging.RectangleF 구조는 채우는 직경을 나타냅니다.

Exceptions

ArgumentNullException

brush’ is null.

FillRectangle(브러시, 플로이트, 플로이트, 플로이트)

그것은 일련의 좌표, 폭 및 높이에 의해 지정된 직경의 내부를 채워줍니다.

public void FillRectangle(Brush brush, float x, float y, float width, float height)

Parameters

brush Brush

Aspose.Imaging.Brush는 채우기의 특징을 결정합니다.

x float

좌석의 상단 왼쪽 구석의 x 조정이 채워집니다.

y float

좌석의 상단 왼쪽 구석의 y 조정이 채워집니다.

width float

채우기 위한 직경의 넓이.

height float

직경의 높이를 채우기 위하여.

Exceptions

ArgumentNullException

brush’ is null.

FillRectangle(브러시, int, int, int, int)

그것은 일련의 좌표, 폭 및 높이에 의해 지정된 직경의 내부를 채워줍니다.

public void FillRectangle(Brush brush, int x, int y, int width, int height)

Parameters

brush Brush

Aspose.Imaging.Brush는 채우기의 특징을 결정합니다.

x int

좌석의 상단 왼쪽 구석의 x 조정이 채워집니다.

y int

좌석의 상단 왼쪽 구석의 y 조정이 채워집니다.

width int

채우기 위한 직경의 넓이.

height int

직경의 높이를 채우기 위하여.

Exceptions

ArgumentNullException

brush’ is null.

FillRectangles(브러시, 레크탄글[])

그것은 Aspose.Imaging.Rectangle 구조에 의해 지정된 일련의 직경의 인테리어를 채우고 있습니다.

public void FillRectangles(Brush brush, Rectangle[] rects)

Parameters

brush Brush

Aspose.Imaging.Brush는 채우기의 특징을 결정합니다.

rects Rectangle [ ] [ [ ]

Aspose.Imaging.Rectangle 구조는 채워야 할 직경을 나타냅니다.

Exceptions

ArgumentNullException

brush’ is null or rects’ is null.

FillRectangles(브러시, RectangleF[])

그것은 Aspose.Imaging.RectangleF 구조에 의해 지정된 일련의 직경의 인테리어를 채우고 있습니다.

public void FillRectangles(Brush brush, RectangleF[] rects)

Parameters

brush Brush

Aspose.Imaging.Brush는 채우기의 특징을 결정합니다.

rects RectangleF [ ] [ [ ]

Aspose.Imaging.Rectangle 구조는 채워야 할 직경을 나타냅니다.

Exceptions

ArgumentNullException

brush’ is null or rects’ is null.

FillRegion(브루시, 지역)

그것은 Aspose.Imaging.Region의 내부를 채우고 있습니다.

public void FillRegion(Brush brush, Region region)

Parameters

brush Brush

Aspose.Imaging.Brush는 채우기의 특징을 결정합니다.

region Region

Aspose.Imaging.Region은 채워야 할 영역을 나타냅니다.

Exceptions

ArgumentNullException

brush’ is null.-or-region’ is null.

~Graphics()

protected ~Graphics()

MeasureString(링크, 글꼴, SizeF, StringFormat)

지정된 파라미터로 지정된 텍스트 스트립을 측정합니다.

public SizeF MeasureString(string text, Font font, SizeF layoutArea, StringFormat stringFormat)

Parameters

text string

텍스트를 측정해야 합니다.

font Font

측정하기 위한 글꼴입니다.

layoutArea SizeF

레이아웃 영역 입니다.

stringFormat StringFormat

스트리트 형식에 대 한.

Returns

SizeF

측정된 텍스트 스트리트의 픽셀 크기

MultiplyTransform(Matrix)

이 Aspose.Imaging.Matrix는 지정된 Aspose.Imaging.Matrix에 의해 지정된 Aspose.Imaging.Matrix의 현지 지질적 변형을 나타내는 Aspose.Imaging.Matrix를 번식하여 지정된 Aspose.Imaging.Matrix의 지질적 변형을 나타냅니다.

public void MultiplyTransform(Matrix matrix)

Parameters

matrix Matrix

Aspose.Imaging.Matrix는 지질적 변환을 번식시키는 방법입니다.

MultiplyTransform(매트릭스, 매트릭스)

이 Aspose.Imaging.Matrix의 현지 지질 변환을 나타내는 Aspose.Imaging.Matrix는 지정된 순서로 지정된 Aspose.Imaging.Matrix에 의해 분류됩니다.

public void MultiplyTransform(Matrix matrix, MatrixOrder order)

Parameters

matrix Matrix

Aspose.Imaging.Matrix는 지질적 변환을 번식시키는 방법입니다.

order MatrixOrder

Aspose.Imaging.MatrixOrder는 두 개의 매트릭스를 번식시키는 목적을 지정합니다.

ResetTransform()

Aspose.Imaging.Graphics.재산을 정체성으로 변환합니다.

public void ResetTransform()

RotateTransform(플로트)

현지 지질 변환을 지정된 금액으로 회전합니다.이 방법은 변환으로 회전을 전달합니다.

public void RotateTransform(float angle)

Parameters

angle float

회전의 각도 입니다.

RotateTransform(플로트, MatrixOrder)

지정된 순서에서 지정된 금액으로 현지 지질 변환을 회전합니다.

public void RotateTransform(float angle, MatrixOrder order)

Parameters

angle float

회전의 각도 입니다.

order MatrixOrder

Aspose.Imaging.MatrixOrder는 회전 매트릭스를 첨부하거나 첨부하는지 여부를 지정합니다.

ScaleTransform(수영장, 수영장)

현지 지질 변형을 지정된 숫자로 확장합니다.이 방법은 확장 매트릭스를 변형으로 전달합니다.

public void ScaleTransform(float sx, float sy)

Parameters

sx float

x-axis 방향으로 변환을 확장하는 금액.

sy float

Y-axis 방향으로 변환을 확장하는 금액.

ScaleTransform(플로트, 플로트, MatrixOrder)

지정된 순서의 지정된 금액에 따라 지역 지질 변형을 측정합니다.

public void ScaleTransform(float sx, float sy, MatrixOrder order)

Parameters

sx float

x-axis 방향으로 변환을 확장하는 금액.

sy float

Y-axis 방향으로 변환을 확장하는 금액.

order MatrixOrder

Aspose.Imaging.MatrixOrder는 스케일링 매트릭스를 첨부하거나 첨부하는지 여부를 지정합니다.

TranslateTransform(수영장, 수영장)

현지 지질학적 변환을 지정된 차원에 따라 번역합니다.이 방법은 변환에 대한 번역을 전달합니다.

public void TranslateTransform(float dx, float dy)

Parameters

dx float

번역의 값은 x입니다.

dy float

번역의 가치 Y.

TranslateTransform(플로트, 플로트, MatrixOrder)

지정된 순서에서 지정된 차원에 따라 지역 지질 변환을 번역합니다.

public void TranslateTransform(float dx, float dy, MatrixOrder order)

Parameters

dx float

번역의 값은 x입니다.

dy float

번역의 가치 Y.

order MatrixOrder

번역을 적용하는 명령 (prepend 또는 append)

 한국어