GraphicsPath

Inheritance: java.lang.Object, com.aspose.imaging.ObjectWithBounds

public final class GraphicsPath extends ObjectWithBounds

Bağlantılı çizgiler ve eğrilerden oluşan bir dizi temsil eder. Bu sınıf kalıtılamaz.

Yapıcılar

YapıcıAçıklama
GraphicsPath()GraphicsPath sınıfının yeni bir örneğini başlatır.
GraphicsPath(Figure[] figures)GraphicsPath sınıfının yeni bir örneğini başlatır.
GraphicsPath(Figure[] figures, int fillMode)GraphicsPath sınıfının yeni bir örneğini başlatır.
GraphicsPath(int fillMode)GraphicsPath sınıfının yeni bir örneğini başlatır.

Yöntemler

YöntemAçıklama
getFillMode()com.aspose.imaging.GraphicsPath içindeki şekillerin iç kısımlarının nasıl doldurulacağını belirleyen bir com.aspose.imaging.FillMode enum değerini alır.
setFillMode(int value)Bu com.aspose.imaging.GraphicsPath içindeki şekillerin içlerinin nasıl doldurulacağını belirleyen bir com.aspose.imaging.FillMode sayımını ayarlar.
getFigures()Yol figürlerini alır.
getBounds()Nesnenin sınırlarını alır veya ayarlar.
reset()Grafik yolunu boşaltır ve com.aspose.imaging.FillMode değerini F:com.aspose.imaging.fillMode.alternate olarak ayarlar.
reverse()Bu com.aspose.imaging.graphicsPath içindeki her şeklin figür, şekil ve nokta sırasını tersine çevirir.
isVisible(float x, float y)Belirtilen noktanın bu com.aspose.imaging.graphicsPath içinde bulunup bulunmadığını gösterir.
isVisible(PointF point)Belirtilen noktanın bu com.aspose.imaging.graphicsPath içinde bulunup bulunmadığını gösterir.
isVisible(int x, int y)Belirtilen noktanın bu com.aspose.imaging.graphicsPath içinde bulunup bulunmadığını gösterir.
isVisible(Point point)Belirtilen noktanın bu com.aspose.imaging.graphicsPath içinde bulunup bulunmadığını gösterir.
isVisible(float x, float y, Graphics graphics)Belirtilen noktanın bu com.aspose.imaging.GraphicsPath içinde, belirtilen com.aspose.imaging.graphics öğesinin görünür kırpma bölgesinde bulunup bulunmadığını gösterir.
isVisible(PointF pt, Graphics graphics)Belirtilen noktanın bu com.aspose.imaging.graphicsPath içinde bulunup bulunmadığını gösterir.
isVisible(int x, int y, Graphics graphics)Belirtilen noktanın bu com.aspose.imaging.GraphicsPath içinde, belirtilen com.aspose.imaging.graphics kullanılarak bulunup bulunmadığını gösterir.
isVisible(Point pt, Graphics graphics)Belirtilen noktanın bu com.aspose.imaging.graphicsPath içinde bulunup bulunmadığını gösterir.
isOutlineVisible(float x, float y, Pen pen)Belirtilen noktanın bu com.aspose.imaging.GraphicsPath ana hattının (altında) bulunup bulunmadığını, belirtilen com.aspose.imaging.pen ile çizildiğinde gösterir.
isOutlineVisible(PointF point, Pen pen)Belirtilen noktanın bu com.aspose.imaging.GraphicsPath ana hattının (altında) bulunup bulunmadığını, belirtilen com.aspose.imaging.pen ile çizildiğinde gösterir.
isOutlineVisible(float x, float y, Pen pen, Graphics graphics)Belirtilen noktanın bu com.aspose.imaging.GraphicsPath ana hattının (altında) bulunup bulunmadığını, belirtilen com.aspose.imaging.Pen ile çizildiğinde ve belirtilen com.aspose.imaging.graphics kullanılarak gösterir.
isOutlineVisible(PointF pt, Pen pen, Graphics graphics)Belirtilen noktanın bu com.aspose.imaging.GraphicsPath ana hattının (altında) bulunup bulunmadığını, belirtilen com.aspose.imaging.Pen ile çizildiğinde ve belirtilen com.aspose.imaging.graphics kullanılarak gösterir.
isOutlineVisible(int x, int y, Pen pen)Belirtilen noktanın bu com.aspose.imaging.GraphicsPath ana hattının (altında) bulunup bulunmadığını, belirtilen com.aspose.imaging.pen ile çizildiğinde gösterir.
isOutlineVisible(Point point, Pen pen)Belirtilen noktanın bu com.aspose.imaging.GraphicsPath ana hattının (altında) bulunup bulunmadığını, belirtilen com.aspose.imaging.pen ile çizildiğinde gösterir.
isOutlineVisible(int x, int y, Pen pen, Graphics graphics)Belirtilen noktanın bu com.aspose.imaging.GraphicsPath ana hattının (altında) bulunup bulunmadığını, belirtilen com.aspose.imaging.Pen ile çizildiğinde ve belirtilen com.aspose.imaging.graphics kullanılarak gösterir.
isOutlineVisible(Point pt, Pen pen, Graphics graphics)Belirtilen noktanın bu com.aspose.imaging.GraphicsPath ana hattının (altında) bulunup bulunmadığını, belirtilen com.aspose.imaging.Pen ile çizildiğinde ve belirtilen com.aspose.imaging.graphics kullanılarak gösterir.
flatten()Bu yoldaki her eğriyi birbirine bağlı çizgi segmentleri dizisine dönüştürür.
flatten(Matrix matrix)Belirtilen dönüşümü uygular ve ardından bu com.aspose.imaging.GraphicsPath içindeki her eğriyi birbirine bağlı çizgi segmentleri dizisine dönüştürür.
flatten(Matrix matrix, float flatness)Bu com.aspose.imaging.GraphicsPath içindeki her eğriyi birbirine bağlı çizgi segmentleri dizisine dönüştürür.
widen(Pen pen)Yola ek bir ana hat ekler.
widen(Pen pen, Matrix matrix)com.aspose.imaging.graphicsPath öğesine ek bir ana hat ekler.
widen(Pen pen, Matrix matrix, float flatness)Bu com.aspose.imaging.GraphicsPath öğesini, bu yol belirtilen kalemle çizildiğinde doldurulan alanı çevreleyen eğrilerle değiştirir.
warp(PointF[] destPoints, RectangleF srcRect)Bir dikdörtgen ve paralelkenar tarafından tanımlanan bir bükülme dönüşümünü bu com.aspose.imaging.graphicsPath öğesine uygular.
warp(PointF[] destPoints, RectangleF srcRect, Matrix matrix)Bir dikdörtgen ve paralelkenar tarafından tanımlanan bir bükülme dönüşümünü bu com.aspose.imaging.graphicsPath öğesine uygular.
warp(PointF[] destPoints, RectangleF srcRect, Matrix matrix, int warpMode)Bir dikdörtgen ve paralelkenar tarafından tanımlanan bir bükülme dönüşümünü bu com.aspose.imaging.graphicsPath öğesine uygular.
warp(PointF[] destPoints, RectangleF srcRect, Matrix matrix, int warpMode, float flatness)Bir dikdörtgen ve paralelkenar tarafından tanımlanan bir bükülme dönüşümünü bu com.aspose.imaging.graphicsPath öğesine uygular.
addFigure(Figure figure)Yeni bir figür ekler.
addFigures(Figure[] figures)Yeni figürler ekler.
removeFigure(Figure figure)Bir figür kaldırır.
removeFigures(Figure[] figures)Figürleri kaldırır.
addPath(GraphicsPath addingPath)Belirtilen com.aspose.imaging.GraphicsPath öğesini bu yola ekler.
addPath(GraphicsPath addingPath, boolean connect)Belirtilen com.aspose.imaging.GraphicsPath öğesini bu yola ekler.
getBounds(Matrix matrix)Nesnenin sınırlarını alır.
getBounds(Matrix matrix, Pen pen)Nesnenin sınırlarını alır.
deepClone()Bu grafik yolunun derin bir kopyasını oluşturur.
transform(Matrix transform)Belirtilen dönüşümü şekle uygular.
equals(Object o)Nesnelerin eşit olup olmadığını kontrol et.
hashCode()Geçerli nesnenin karma kodunu al.

Example: This examples make use of GraphicsPath and Graphics class to create and manipulate Figures on an Image surface.

Bu örnekler, GraphicsPath ve Graphics sınıflarını kullanarak bir Image yüzeyinde Figürler oluşturur ve manipüle eder. Örnek, yeni bir Image (Tiff türünde) oluşturur ve GraphicsPath sınıfının yardımıyla yollar çizer. Sonunda, Graphics sınıfı tarafından sunulan DrawPath yöntemi, yolları yüzeye render etmek için çağrılır.

// FileStream örneği oluşturun
com.aspose.imaging.system.io.FileStream stream = new com.aspose.imaging.system.io.FileStream("C:\\temp\\output.tif", com.aspose.imaging.system.io.FileMode.Create);
try {
    // TiffOptions örneği oluşturun ve çeşitli özelliklerini ayarlayın
    com.aspose.imaging.imageoptions.TiffOptions tiffOptions = new com.aspose.imaging.imageoptions.TiffOptions(com.aspose.imaging.fileformats.tiff.enums.TiffExpectedFormat.Default);

    // ImageOptions örneği için kaynağı ayarlayın
    tiffOptions.setSource(new com.aspose.imaging.sources.StreamSource(stream));

    // Image örneği oluşturun
    com.aspose.imaging.Image image = com.aspose.imaging.Image.create(tiffOptions, 500, 500);
    try {
        // Graphics sınıfının bir örneğini oluşturun ve başlatın
        com.aspose.imaging.Graphics graphics = new com.aspose.imaging.Graphics(image);

        // Graphics yüzeyini temizleyin
        graphics.clear(com.aspose.imaging.Color.getWheat());

        // GraphicsPath sınıfının bir örneğini oluşturun
        com.aspose.imaging.GraphicsPath graphicspath = new com.aspose.imaging.GraphicsPath();

        // Figure sınıfının bir örneğini oluşturun
        com.aspose.imaging.Figure figure = new com.aspose.imaging.Figure();

        // Figure nesnesine Şekiller ekleyin
        figure.addShape(new com.aspose.imaging.shapes.RectangleShape(new com.aspose.imaging.RectangleF(10, 10, 300, 300)));
        figure.addShape(new com.aspose.imaging.shapes.EllipseShape(new com.aspose.imaging.RectangleF(50, 50, 300, 300)));
        figure.addShape(
                new com.aspose.imaging.shapes.PieShape(new com.aspose.imaging.RectangleF(
                        new com.aspose.imaging.PointF(250, 250),
                        new com.aspose.imaging.SizeF(200, 200)),
                        0, 45));

        // Figure nesnesini GraphicsPath'e ekleyin
        graphicspath.addFigure(figure);

        // Pen nesnesiyle siyah renkli yolu çizin
        graphics.drawPath(new com.aspose.imaging.Pen(com.aspose.imaging.Color.getBlack(), 2), graphicspath);

        // Tüm değişiklikleri kaydedin.
        image.save();
    } finally {
        image.dispose();
    }
} finally {
    stream.dispose();
}

GraphicsPath()

public GraphicsPath()

GraphicsPath sınıfının yeni bir örneğini başlatır.

GraphicsPath(Figure[] figures)

public GraphicsPath(Figure[] figures)

GraphicsPath sınıfının yeni bir örneğini başlatır.

Parameters:

ParametreTürAçıklama
figuresFigure[]Başlatılacak figürler.

GraphicsPath(Figure[] figures, int fillMode)

public GraphicsPath(Figure[] figures, int fillMode)

GraphicsPath sınıfının yeni bir örneğini başlatır.

Parameters:

ParametreTürAçıklama
figuresFigure[]Başlatılacak figürler.
fillModeintDoldurma modu.

GraphicsPath(int fillMode)

public GraphicsPath(int fillMode)

GraphicsPath sınıfının yeni bir örneğini başlatır.

Parameters:

ParametreTürAçıklama
fillModeintDoldurma modu.

getFillMode()

public int getFillMode()

com.aspose.imaging.GraphicsPath içindeki şekillerin iç kısımlarının nasıl doldurulacağını belirleyen bir com.aspose.imaging.FillMode enum değerini alır.

Returns: int - Doldurma modu. Bu com.aspose.imaging.GraphicsPath içindeki şekillerin iç kısımlarının nasıl doldurulacağını belirten bir com.aspose.imaging.FillMode enum’ı.

setFillMode(int value)

public void setFillMode(int value)

Bu com.aspose.imaging.GraphicsPath içindeki şekillerin içlerinin nasıl doldurulacağını belirleyen bir com.aspose.imaging.FillMode sayımını ayarlar.

Parameters:

ParametreTürAçıklama
değerintDoldurma modu.

getFigures()

public Figure[] getFigures()

Yol figürlerini alır.

Returns: com.aspose.imaging.Figure[] - Yol şekilleri.

getBounds()

public RectangleF getBounds()

Nesnenin sınırlarını alır veya ayarlar.

Returns: RectangleF - The object’s bounds.

reset()

public void reset()

Grafik yolunu boşaltır ve com.aspose.imaging.FillMode değerini F:com.aspose.imaging.fillMode.alternate olarak ayarlar.

reverse()

public void reverse()

Bu com.aspose.imaging.graphicsPath içindeki her şeklin figür, şekil ve nokta sırasını tersine çevirir.

isVisible(float x, float y)

public boolean isVisible(float x, float y)

Belirtilen noktanın bu com.aspose.imaging.graphicsPath içinde bulunup bulunmadığını gösterir.

Parameters:

ParametreTürAçıklama
xfloatTest edilecek noktanın x koordinatı.
yfloatTest edilecek noktanın y koordinatı.

Returns: boolean - Bu yöntem, belirtilen noktanın bu com.aspose.imaging.GraphicsPath içinde bulunup bulunmadığını true olarak döndürür; aksi takdirde false.

isVisible(PointF point)

public boolean isVisible(PointF point)

Belirtilen noktanın bu com.aspose.imaging.graphicsPath içinde bulunup bulunmadığını gösterir.

Parameters:

ParametreTürAçıklama
pointPointFTest edilecek noktayı temsil eden bir com.aspose.imaging.PointF.

Returns: boolean - Bu yöntem, belirtilen noktanın bu com.aspose.imaging.GraphicsPath içinde bulunup bulunmadığını true olarak döndürür; aksi takdirde false.

isVisible(int x, int y)

public boolean isVisible(int x, int y)

Belirtilen noktanın bu com.aspose.imaging.graphicsPath içinde bulunup bulunmadığını gösterir.

Parameters:

ParametreTürAçıklama
xintTest edilecek noktanın x koordinatı.
yintTest edilecek noktanın y koordinatı.

Returns: boolean - Bu yöntem, belirtilen noktanın bu com.aspose.imaging.GraphicsPath içinde bulunup bulunmadığını true olarak döndürür; aksi takdirde false.

isVisible(Point point)

public boolean isVisible(Point point)

Belirtilen noktanın bu com.aspose.imaging.graphicsPath içinde bulunup bulunmadığını gösterir.

Parameters:

ParametreTürAçıklama
pointPointTest edilecek noktayı temsil eden bir com.aspose.imaging.Point.

Returns: boolean - Bu yöntem, belirtilen noktanın bu com.aspose.imaging.GraphicsPath içinde bulunup bulunmadığını true olarak döndürür; aksi takdirde false.

isVisible(float x, float y, Graphics graphics)

public boolean isVisible(float x, float y, Graphics graphics)

Belirtilen noktanın bu com.aspose.imaging.GraphicsPath içinde, belirtilen com.aspose.imaging.graphics öğesinin görünür kırpma bölgesinde bulunup bulunmadığını gösterir.

Parameters:

ParametreTürAçıklama
xfloatTest edilecek noktanın x koordinatı.
yfloatTest edilecek noktanın y koordinatı.
graphicsGraphicsGörünürlüğü test edilecek com.aspose.imaging.Graphics.

Returns: boolean - Bu yöntem, belirtilen noktanın bu com.aspose.imaging.GraphicsPath içinde bulunup bulunmadığını true olarak döndürür; aksi takdirde false.

isVisible(PointF pt, Graphics graphics)

public boolean isVisible(PointF pt, Graphics graphics)

Belirtilen noktanın bu com.aspose.imaging.graphicsPath içinde bulunup bulunmadığını gösterir.

Parameters:

ParametreTürAçıklama
ptPointFTest edilecek noktayı temsil eden bir com.aspose.imaging.PointF.
graphicsGraphicsGörünürlüğü test edilecek com.aspose.imaging.Graphics.

Returns: boolean - Bu yöntem, belirtilen noktanın içinde bulunup bulunmadığını true döndürür; aksi takdirde false.

isVisible(int x, int y, Graphics graphics)

public boolean isVisible(int x, int y, Graphics graphics)

Belirtilen noktanın bu com.aspose.imaging.GraphicsPath içinde, belirtilen com.aspose.imaging.graphics kullanılarak bulunup bulunmadığını gösterir.

Parameters:

ParametreTürAçıklama
xintTest edilecek noktanın x koordinatı.
yintTest edilecek noktanın y koordinatı.
graphicsGraphicsGörünürlüğü test edilecek com.aspose.imaging.Graphics.

Returns: boolean - Bu yöntem, belirtilen noktanın bu com.aspose.imaging.GraphicsPath içinde bulunup bulunmadığını true olarak döndürür; aksi takdirde false.

isVisible(Point pt, Graphics graphics)

public boolean isVisible(Point pt, Graphics graphics)

Belirtilen noktanın bu com.aspose.imaging.graphicsPath içinde bulunup bulunmadığını gösterir.

Parameters:

ParametreTürAçıklama
ptPointTest edilecek noktayı temsil eden bir com.aspose.imaging.Point.
graphicsGraphicsGörünürlüğü test edilecek com.aspose.imaging.Graphics.

Returns: boolean - Bu yöntem, belirtilen noktanın bu com.aspose.imaging.GraphicsPath içinde bulunup bulunmadığını true olarak döndürür; aksi takdirde false.

isOutlineVisible(float x, float y, Pen pen)

public boolean isOutlineVisible(float x, float y, Pen pen)

Belirtilen noktanın bu com.aspose.imaging.GraphicsPath ana hattının (altında) bulunup bulunmadığını, belirtilen com.aspose.imaging.pen ile çizildiğinde gösterir.

Parameters:

ParametreTürAçıklama
xfloatTest edilecek noktanın x koordinatı.
yfloatTest edilecek noktanın y koordinatı.
penPenTest edilecek com.aspose.imaging.Pen.

Returns: boolean - Bu yöntem, belirtilen noktanın, belirtilen com.aspose.imaging.Pen ile çizildiğinde bu com.aspose.imaging.GraphicsPath dış hattının içinde bulunup bulunmadığını true döndürür; aksi takdirde false.

isOutlineVisible(PointF point, Pen pen)

public boolean isOutlineVisible(PointF point, Pen pen)

Belirtilen noktanın bu com.aspose.imaging.GraphicsPath ana hattının (altında) bulunup bulunmadığını, belirtilen com.aspose.imaging.pen ile çizildiğinde gösterir.

Parameters:

ParametreTürAçıklama
pointPointFTest edilecek konumu belirten bir com.aspose.imaging.PointF.
penPenTest edilecek com.aspose.imaging.Pen.

Returns: boolean - Bu yöntem, belirtilen noktanın, belirtilen com.aspose.imaging.Pen ile çizildiğinde bu com.aspose.imaging.GraphicsPath dış hattının içinde bulunup bulunmadığını true döndürür; aksi takdirde false.

isOutlineVisible(float x, float y, Pen pen, Graphics graphics)

public boolean isOutlineVisible(float x, float y, Pen pen, Graphics graphics)

Belirtilen noktanın bu com.aspose.imaging.GraphicsPath ana hattının (altında) bulunup bulunmadığını, belirtilen com.aspose.imaging.Pen ile çizildiğinde ve belirtilen com.aspose.imaging.graphics kullanılarak gösterir.

Parameters:

ParametreTürAçıklama
xfloatTest edilecek noktanın x koordinatı.
yfloatTest edilecek noktanın y koordinatı.
penPenTest edilecek com.aspose.imaging.Pen.
graphicsGraphicsGörünürlüğü test edilecek com.aspose.imaging.Graphics.

Returns: boolean - Bu yöntem, belirtilen noktanın, belirtilen com.aspose.imaging.Pen ile çizildiğinde bu com.aspose.imaging.GraphicsPath dış hattının (altında) bulunup bulunmadığını true döndürür; aksi takdirde false.

isOutlineVisible(PointF pt, Pen pen, Graphics graphics)

public boolean isOutlineVisible(PointF pt, Pen pen, Graphics graphics)

Belirtilen noktanın bu com.aspose.imaging.GraphicsPath ana hattının (altında) bulunup bulunmadığını, belirtilen com.aspose.imaging.Pen ile çizildiğinde ve belirtilen com.aspose.imaging.graphics kullanılarak gösterir.

Parameters:

ParametreTürAçıklama
ptPointFTest edilecek konumu belirten bir com.aspose.imaging.PointF.
penPenTest edilecek com.aspose.imaging.Pen.
graphicsGraphicsGörünürlüğü test edilecek com.aspose.imaging.Graphics.

Returns: boolean - Bu yöntem, belirtilen noktanın, belirtilen com.aspose.imaging.Pen ile çizildiğinde bu com.aspose.imaging.GraphicsPath dış hattının (altında) bulunup bulunmadığını true döndürür; aksi takdirde false.

isOutlineVisible(int x, int y, Pen pen)

public boolean isOutlineVisible(int x, int y, Pen pen)

Belirtilen noktanın bu com.aspose.imaging.GraphicsPath ana hattının (altında) bulunup bulunmadığını, belirtilen com.aspose.imaging.pen ile çizildiğinde gösterir.

Parameters:

ParametreTürAçıklama
xintTest edilecek noktanın x koordinatı.
yintTest edilecek noktanın y koordinatı.
penPenTest edilecek com.aspose.imaging.Pen.

Returns: boolean - Bu yöntem, belirtilen noktanın, belirtilen com.aspose.imaging.Pen ile çizildiğinde bu com.aspose.imaging.GraphicsPath dış hattının içinde bulunup bulunmadığını true döndürür; aksi takdirde false.

isOutlineVisible(Point point, Pen pen)

public boolean isOutlineVisible(Point point, Pen pen)

Belirtilen noktanın bu com.aspose.imaging.GraphicsPath ana hattının (altında) bulunup bulunmadığını, belirtilen com.aspose.imaging.pen ile çizildiğinde gösterir.

Parameters:

ParametreTürAçıklama
pointPointTest edilecek konumu belirten bir com.aspose.imaging.Point.
penPenTest edilecek com.aspose.imaging.Pen.

Returns: boolean - Bu yöntem, belirtilen noktanın, belirtilen com.aspose.imaging.Pen ile çizildiğinde bu com.aspose.imaging.GraphicsPath dış hattının içinde bulunup bulunmadığını true döndürür; aksi takdirde false.

isOutlineVisible(int x, int y, Pen pen, Graphics graphics)

public boolean isOutlineVisible(int x, int y, Pen pen, Graphics graphics)

Belirtilen noktanın bu com.aspose.imaging.GraphicsPath ana hattının (altında) bulunup bulunmadığını, belirtilen com.aspose.imaging.Pen ile çizildiğinde ve belirtilen com.aspose.imaging.graphics kullanılarak gösterir.

Parameters:

ParametreTürAçıklama
xintTest edilecek noktanın x koordinatı.
yintTest edilecek noktanın y koordinatı.
penPenTest edilecek com.aspose.imaging.Pen.
graphicsGraphicsGörünürlüğü test edilecek com.aspose.imaging.Graphics.

Returns: boolean - Bu yöntem, belirtilen noktanın, belirtilen com.aspose.imaging.Pen ile çizildiğinde bu com.aspose.imaging.GraphicsPath dış hattının içinde bulunup bulunmadığını true döndürür; aksi takdirde false.

isOutlineVisible(Point pt, Pen pen, Graphics graphics)

public boolean isOutlineVisible(Point pt, Pen pen, Graphics graphics)

Belirtilen noktanın bu com.aspose.imaging.GraphicsPath ana hattının (altında) bulunup bulunmadığını, belirtilen com.aspose.imaging.Pen ile çizildiğinde ve belirtilen com.aspose.imaging.graphics kullanılarak gösterir.

Parameters:

ParametreTürAçıklama
ptPointTest edilecek konumu belirten bir com.aspose.imaging.Point.
penPenTest edilecek com.aspose.imaging.Pen.
graphicsGraphicsGörünürlüğü test edilecek com.aspose.imaging.Graphics.

Returns: boolean - Bu yöntem, belirtilen noktanın, belirtilen com.aspose.imaging.Pen ile çizildiğinde bu com.aspose.imaging.GraphicsPath dış hattının içinde bulunup bulunmadığını true döndürür; aksi takdirde false.

flatten()

public void flatten()

Bu yoldaki her eğriyi birbirine bağlı çizgi segmentleri dizisine dönüştürür.

flatten(Matrix matrix)

public void flatten(Matrix matrix)

Belirtilen dönüşümü uygular ve ardından bu com.aspose.imaging.GraphicsPath içindeki her eğriyi birbirine bağlı çizgi segmentleri dizisine dönüştürür.

Parameters:

ParametreTürAçıklama
matrixMatrixBu com.aspose.imaging.GraphicsPath‘i düzleştirmeden önce dönüştürmek için kullanılan bir com.aspose.imaging.Matrix.

flatten(Matrix matrix, float flatness)

public void flatten(Matrix matrix, float flatness)

Bu com.aspose.imaging.GraphicsPath içindeki her eğriyi birbirine bağlı çizgi segmentleri dizisine dönüştürür.

Parameters:

ParametreTürAçıklama
matrixMatrixBu com.aspose.imaging.GraphicsPath‘i düzleştirmeden önce dönüştürmek için kullanılan bir com.aspose.imaging.Matrix.
düzlükfloatEğri ile düzleştirilmiş yaklaşımı arasındaki izin verilen maksimum hatayı belirtir. Varsayılan değer 0.25’tir. Düzlük değerini azaltmak, yaklaşımda kullanılan çizgi segmenti sayısını artırır.

widen(Pen pen)

public void widen(Pen pen)

Yola ek bir ana hat ekler.

Parameters:

ParametreTürAçıklama
penPenYolun orijinal dış hattı ile bu yöntemin oluşturduğu yeni dış hat arasındaki genişliği belirten bir com.aspose.imaging.Pen.

widen(Pen pen, Matrix matrix)

public void widen(Pen pen, Matrix matrix)

com.aspose.imaging.graphicsPath öğesine ek bir ana hat ekler.

Parameters:

ParametreTürAçıklama
penPenYolun orijinal dış hattı ile bu yöntemin oluşturduğu yeni dış hat arasındaki genişliği belirten bir com.aspose.imaging.Pen.
matrixMatrixYolu genişletmeden önce uygulanacak dönüşümü belirten bir com.aspose.imaging.Matrix.

widen(Pen pen, Matrix matrix, float flatness)

public void widen(Pen pen, Matrix matrix, float flatness)

Bu com.aspose.imaging.GraphicsPath öğesini, bu yol belirtilen kalemle çizildiğinde doldurulan alanı çevreleyen eğrilerle değiştirir.

Parameters:

ParametreTürAçıklama
penPenYolun orijinal dış hattı ile bu yöntemin oluşturduğu yeni dış hat arasındaki genişliği belirten bir com.aspose.imaging.Pen.
matrixMatrixYolu genişletmeden önce uygulanacak dönüşümü belirten bir com.aspose.imaging.Matrix.
düzlükfloatEğriler için düzlüğü belirten bir değer.

warp(PointF[] destPoints, RectangleF srcRect)

public void warp(PointF[] destPoints, RectangleF srcRect)

Bir dikdörtgen ve paralelkenar tarafından tanımlanan bir bükülme dönüşümünü bu com.aspose.imaging.graphicsPath öğesine uygular.

Parameters:

ParametreTürAçıklama
destPointsPointF[]srcRect tarafından tanımlanan dikdörtgenin dönüştürüldüğü bir paralelkenarı tanımlayan com.aspose.imaging.PointF yapılarını içeren bir dizi. Dizi üç ya da dört eleman içerebilir. Dizi üç eleman içeriyorsa, paralelkenarın sağ alt köşesi ilk üç nokta tarafından ima edilir.
srcRectRectangleFdestPoints tarafından tanımlanan paralelkenara dönüştürülen dikdörtgeni temsil eden bir com.aspose.imaging.RectangleF.

warp(PointF[] destPoints, RectangleF srcRect, Matrix matrix)

public void warp(PointF[] destPoints, RectangleF srcRect, Matrix matrix)

Bir dikdörtgen ve paralelkenar tarafından tanımlanan bir bükülme dönüşümünü bu com.aspose.imaging.graphicsPath öğesine uygular.

Parameters:

ParametreTürAçıklama
destPointsPointF[]srcRect tarafından tanımlanan dikdörtgenin dönüştürüldüğü bir paralelkenarı tanımlayan com.aspose.imaging.PointF yapılarını içeren bir dizi. Dizi üç ya da dört eleman içerebilir. Dizi üç eleman içeriyorsa, paralelkenarın sağ alt köşesi ilk üç nokta tarafından ima edilir.
srcRectRectangleFdestPoints tarafından tanımlanan paralelkenara dönüştürülen dikdörtgeni temsil eden bir com.aspose.imaging.RectangleF.
matrixMatrixYola uygulanacak geometrik dönüşümü belirten bir com.aspose.imaging.Matrix.

warp(PointF[] destPoints, RectangleF srcRect, Matrix matrix, int warpMode)

public void warp(PointF[] destPoints, RectangleF srcRect, Matrix matrix, int warpMode)

Bir dikdörtgen ve paralelkenar tarafından tanımlanan bir bükülme dönüşümünü bu com.aspose.imaging.graphicsPath öğesine uygular.

Parameters:

ParametreTürAçıklama
destPointsPointF[]srcRect tarafından tanımlanan dikdörtgenin dönüştürüldüğü bir paralelkenarı tanımlayan com.aspose.imaging.PointF yapılarını içeren bir dizi. Dizi üç ya da dört eleman içerebilir. Dizi üç eleman içeriyorsa, paralelkenarın sağ alt köşesi ilk üç nokta tarafından ima edilir.
srcRectRectangleFdestPoints tarafından tanımlanan paralelkenara dönüştürülen dikdörtgeni temsil eden bir com.aspose.imaging.RectangleF.
matrixMatrixYola uygulanacak geometrik dönüşümü belirten bir com.aspose.imaging.Matrix.
warpModuintBu warp işleminin perspektif mi yoksa bilineer mod mu kullandığını belirten bir com.aspose.imaging.WarpMode enum’ı.

warp(PointF[] destPoints, RectangleF srcRect, Matrix matrix, int warpMode, float flatness)

public void warp(PointF[] destPoints, RectangleF srcRect, Matrix matrix, int warpMode, float flatness)

Bir dikdörtgen ve paralelkenar tarafından tanımlanan bir bükülme dönüşümünü bu com.aspose.imaging.graphicsPath öğesine uygular.

Parameters:

ParametreTürAçıklama
destPointsPointF[]srcRect tarafından tanımlanan dikdörtgenin dönüştürüldüğü bir paralelkenarı tanımlayan com.aspose.imaging.PointF yapılarını içeren bir dizi. Dizi üç ya da dört eleman içerebilir. Dizi üç eleman içeriyorsa, paralelkenarın sağ alt köşesi ilk üç nokta tarafından ima edilir.
srcRectRectangleFdestPoints tarafından tanımlanan paralelkenara dönüştürülen dikdörtgeni temsil eden bir com.aspose.imaging.RectangleF.
matrixMatrixYola uygulanacak geometrik dönüşümü belirten bir com.aspose.imaging.Matrix.
warpModuintBu warp işleminin perspektif mi yoksa bilineer mod mu kullandığını belirten bir com.aspose.imaging.WarpMode enum’ı.
düzlükfloat0 ile 1 arasında bir değer olup, ortaya çıkan yolun ne kadar düz olduğunu belirtir. Daha fazla bilgi için com.aspose.imaging.GraphicsPath.flatten yöntemlerine bakın.

addFigure(Figure figure)

public void addFigure(Figure figure)

Yeni bir figür ekler.

Parameters:

ParametreTürAçıklama
figureFigureEklenecek şekil.

Example: This examples make use of GraphicsPath and Graphics class to create and manipulate Figures on an Image surface. Bu örnekler, GraphicsPath ve Graphics sınıflarını kullanarak bir Image yüzeyinde Figürler oluşturur ve manipüle eder. Örnek, yeni bir Image (Tiff türünde) oluşturur ve GraphicsPath sınıfının yardımıyla yollar çizer. Sonunda, Graphics sınıfı tarafından sunulan DrawPath yöntemi, yolları yüzeye render etmek için çağrılır.

// FileStream örneği oluşturun
com.aspose.imaging.system.io.FileStream stream = new com.aspose.imaging.system.io.FileStream("C:\\temp\\output.tif", com.aspose.imaging.system.io.FileMode.Create);
try {
    // TiffOptions örneği oluşturun ve çeşitli özelliklerini ayarlayın
    com.aspose.imaging.imageoptions.TiffOptions tiffOptions = new com.aspose.imaging.imageoptions.TiffOptions(com.aspose.imaging.fileformats.tiff.enums.TiffExpectedFormat.Default);

    // ImageOptions örneği için kaynağı ayarlayın
    tiffOptions.setSource(new com.aspose.imaging.sources.StreamSource(stream));

    // Image örneği oluşturun
    com.aspose.imaging.Image image = com.aspose.imaging.Image.create(tiffOptions, 500, 500);
    try {
        // Graphics sınıfının bir örneğini oluşturun ve başlatın
        com.aspose.imaging.Graphics graphics = new com.aspose.imaging.Graphics(image);

        // Graphics yüzeyini temizleyin
        graphics.clear(com.aspose.imaging.Color.getWheat());

        // GraphicsPath sınıfının bir örneğini oluşturun
        com.aspose.imaging.GraphicsPath graphicspath = new com.aspose.imaging.GraphicsPath();

        // Figure sınıfının bir örneğini oluşturun
        com.aspose.imaging.Figure figure = new com.aspose.imaging.Figure();

        // Figure nesnesine Şekiller ekleyin
        figure.addShape(new com.aspose.imaging.shapes.RectangleShape(new com.aspose.imaging.RectangleF(10, 10, 300, 300)));
        figure.addShape(new com.aspose.imaging.shapes.EllipseShape(new com.aspose.imaging.RectangleF(50, 50, 300, 300)));
        figure.addShape(
                new com.aspose.imaging.shapes.PieShape(new com.aspose.imaging.RectangleF(
                        new com.aspose.imaging.PointF(250, 250),
                        new com.aspose.imaging.SizeF(200, 200)),
                        0, 45));

        // Figure nesnesini GraphicsPath'e ekleyin
        graphicspath.addFigure(figure);

        // Pen nesnesiyle siyah renkli yolu çizin
        graphics.drawPath(new com.aspose.imaging.Pen(com.aspose.imaging.Color.getBlack(), 2), graphicspath);

        // Tüm değişiklikleri kaydedin.
        image.save();
    } finally {
        image.dispose();
    }
} finally {
    stream.dispose();
}

addFigures(Figure[] figures)

public void addFigures(Figure[] figures)

Yeni figürler ekler.

Parameters:

ParametreTürAçıklama
figuresFigure[]Eklenecek şekiller.

Example: This example creates a new Image and draws a variety of shapes using Figures and GraphicsPath o… Bu örnek yeni bir Image oluşturur ve Image yüzeyinde Figures ve GraphicsPath kullanarak çeşitli şekiller çizer.

//BmpOptions bir örnek oluşturur ve çeşitli özelliklerini ayarlar.
com.aspose.imaging.imageoptions.BmpOptions bmpOptions = new com.aspose.imaging.imageoptions.BmpOptions();
bmpOptions.setBitsPerPixel(24);

//FileCreateSource bir örneği oluşturun ve bunu BmpOptions örneği için Source olarak atayın
//İkinci Boolean parametresi, oluşturulacak dosyanın IsTemporal olup olmadığını belirler
bmpOptions.setSource(new com.aspose.imaging.sources.FileCreateSource("c:\\temp\\output.bmp", false));

//Image örneği oluşturun
com.aspose.imaging.Image image = com.aspose.imaging.Image.create(bmpOptions, 500, 500);
try {
    //Graphics sınıfının bir örneğini oluşturun ve başlatın
    com.aspose.imaging.Graphics graphics = new com.aspose.imaging.Graphics(image);

    //Graphics yüzeyini temizleyin
    graphics.clear(com.aspose.imaging.Color.getWheat());

    //GraphicsPath sınıfının bir örneğini oluşturun
    com.aspose.imaging.GraphicsPath graphicspath = new com.aspose.imaging.GraphicsPath();

    //Figure sınıfının bir örneğini oluşturun
    com.aspose.imaging.Figure figure1 = new com.aspose.imaging.Figure();

    //Shape'i Figure nesnesine ekle.
    figure1.addShape(new com.aspose.imaging.shapes.EllipseShape(new com.aspose.imaging.RectangleF(50, 50, 300, 300)));
    figure1.addShape(new com.aspose.imaging.shapes.PieShape(
            new com.aspose.imaging.RectangleF(
                    new com.aspose.imaging.PointF(110, 110),
                    new com.aspose.imaging.SizeF(200, 200)), 0, 90));

    //Figure sınıfının bir örneğini oluşturun
    com.aspose.imaging.Figure figure2 = new com.aspose.imaging.Figure();

    //Shape'i Figure nesnesine ekle.
    figure2.addShape(new com.aspose.imaging.shapes.ArcShape(new com.aspose.imaging.RectangleF(10, 10, 300, 300), 0, 45));
    figure2.addShape(new com.aspose.imaging.shapes.PolygonShape(
            new com.aspose.imaging.PointF[]
                    {
                            new com.aspose.imaging.PointF(150, 10),
                            new com.aspose.imaging.PointF(150, 200),
                            new com.aspose.imaging.PointF(250, 300),
                            new com.aspose.imaging.PointF(350, 400)}, true));
    figure2.addShape(new com.aspose.imaging.shapes.RectangleShape(
            new com.aspose.imaging.RectangleF(
                    new com.aspose.imaging.PointF(250, 250),
                    new com.aspose.imaging.SizeF(200, 200))));

    //Figure nesnesini GraphicsPath'e ekleyin
    graphicspath.addFigures(new com.aspose.imaging.Figure[]{figure1, figure2});

    //Pen nesnesiyle siyah renkli yolu çizin
    graphics.drawPath(new com.aspose.imaging.Pen(com.aspose.imaging.Color.getBlack(), 2), graphicspath);

    // tüm değişiklikleri kaydet.
    image.save();
} finally {
    image.dispose();
}

removeFigure(Figure figure)

public void removeFigure(Figure figure)

Bir figür kaldırır.

Parameters:

ParametreTürAçıklama
figureFigureKaldırılacak şekil.

removeFigures(Figure[] figures)

public void removeFigures(Figure[] figures)

Figürleri kaldırır.

Parameters:

ParametreTürAçıklama
figuresFigure[]Kaldırılacak şekiller.

addPath(GraphicsPath addingPath)

public void addPath(GraphicsPath addingPath)

Belirtilen com.aspose.imaging.GraphicsPath öğesini bu yola ekler.

Parameters:

ParametreTürAçıklama
addingPathGraphicsPathEklenecek com.aspose.imaging.GraphicsPath.

addPath(GraphicsPath addingPath, boolean connect)

public void addPath(GraphicsPath addingPath, boolean connect)

Belirtilen com.aspose.imaging.GraphicsPath öğesini bu yola ekler.

Parameters:

ParametreTürAçıklama
addingPathGraphicsPathEklenecek com.aspose.imaging.GraphicsPath.
bağlabooleanEklenen yoldaki ilk şeklin bu yoldaki son şeklin bir parçası olup olmadığını belirten bir Boolean değerdir. true değeri, eklenen yoldaki ilk şeklin bu yoldaki son şeklin bir parçası olduğunu belirtir. false değeri, eklenen yoldaki ilk şeklin bu yoldaki son şekilden ayrı olduğunu belirtir.

getBounds(Matrix matrix)

public RectangleF getBounds(Matrix matrix)

Nesnenin sınırlarını alır.

Parameters:

ParametreTürAçıklama
matrixMatrixSınırlar hesaplanmadan önce uygulanacak matris.

Returns: RectangleF - The estimated object’s bounds.

getBounds(Matrix matrix, Pen pen)

public RectangleF getBounds(Matrix matrix, Pen pen)

Nesnenin sınırlarını alır.

Parameters:

ParametreTürAçıklama
matrixMatrixSınırlar hesaplanmadan önce uygulanacak matris.
penPenNesne için kullanılacak kalem. Bu, nesnenin sınır boyutunu etkileyebilir.

Returns: RectangleF - The estimated object’s bounds.

deepClone()

public GraphicsPath deepClone()

Bu grafik yolunun derin bir kopyasını oluşturur.

Returns: GraphicsPath - A deep clone of the graphics path.

transform(Matrix transform)

public void transform(Matrix transform)

Belirtilen dönüşümü şekle uygular.

Parameters:

ParametreTürAçıklama
transformMatrixUygulanacak dönüşüm.

equals(Object o)

public boolean equals(Object o)

Nesnelerin eşit olup olmadığını kontrol et.

Parameters:

ParametreTürAçıklama
ojava.lang.ObjectDiğer nesne.

Returns: boolean - Eşitlik karşılaştırma sonucu.

hashCode()

public int hashCode()

Geçerli nesnenin karma kodunu al.

Returns: int - Hash kodu.