From f067b3f4896e27ecaaf645224c33cd65faaa0ee1 Mon Sep 17 00:00:00 2001 From: Muhammad Adil Date: Fri, 10 Apr 2026 11:21:46 +0000 Subject: [PATCH] [auto] Translate to Chinese (zh) --- chinese/java/_index.md | 18 + .../com.aspose.drawing.drawing2d/_index.md | 48 + .../adjustablearrowcap/_index.md | 170 ++ .../blend/_index.md | 96 + .../colorblend/_index.md | 96 + .../combinemode/_index.md | 73 + .../compositingmode/_index.md | 37 + .../compositingquality/_index.md | 73 + .../coordinatespace/_index.md | 46 + .../customlinecap/_index.md | 246 ++ .../dashcap/_index.md | 46 + .../dashstyle/_index.md | 73 + .../fillmode/_index.md | 37 + .../flushintention/_index.md | 37 + .../graphicscontainer/_index.md | 15 + .../graphicspathiterator/_index.md | 213 ++ .../graphicsstate/_index.md | 107 + .../hatchbrush/_index.md | 98 + .../hatchstyle/_index.md | 523 ++++ .../interpolationmode/_index.md | 100 + .../lineargradientbrush/_index.md | 520 ++++ .../lineargradientmode/_index.md | 55 + .../linecap/_index.md | 118 + .../linejoin/_index.md | 59 + .../matrix/_index.md | 416 +++ .../matrixorder/_index.md | 37 + .../pathdata/_index.md | 88 + .../pathgradientbrush/_index.md | 504 ++++ .../penalignment/_index.md | 64 + .../pentype/_index.md | 64 + .../pixeloffsetmode/_index.md | 73 + .../regiondata/_index.md | 44 + .../smoothingmode/_index.md | 73 + .../warpmode/_index.md | 37 + .../wrapmode/_index.md | 64 + .../_index.md | 14 + .../metered/_index.md | 87 + .../java/com.aspose.drawing.imaging/_index.md | 41 + .../bitmapdata/_index.md | 155 ++ .../coloradjusttype/_index.md | 82 + .../colorchannelflag/_index.md | 64 + .../colormap/_index.md | 82 + .../colormatrix/_index.md | 704 +++++ .../colormatrixflag/_index.md | 46 + .../colorpalette/_index.md | 101 + .../emfplusrecordtype/_index.md | 2296 +++++++++++++++++ .../emftype/_index.md | 46 + .../encoder/_index.md | 142 + .../encoderparameter/_index.md | 325 +++ .../encoderparameters/_index.md | 83 + .../encodervalue/_index.md | 235 ++ .../framedimension/_index.md | 119 + .../imageattributes/_index.md | 614 +++++ .../imagecodecinfo/_index.md | 297 +++ .../imageflags/_index.md | 145 ++ .../imageformat/_index.md | 196 ++ .../imagelockmode/_index.md | 55 + .../metafile/_index.md | 391 +++ .../metafileframeunit/_index.md | 73 + .../metafileheader/_index.md | 217 ++ .../metafiletype/_index.md | 73 + .../metaheader/_index.md | 207 ++ .../pixelformat/_index.md | 226 ++ .../playrecordcallback/_index.md | 82 + .../propertyitem/_index.md | 119 + .../wmfplaceablefileheader/_index.md | 255 ++ .../com.aspose.drawing.printing/_index.md | 21 + .../pagesettings/_index.md | 74 + .../printdocument/_index.md | 30 + .../printerresolution/_index.md | 80 + .../printersettings/_index.md | 88 + .../printeventargs/_index.md | 30 + .../printpageeventargs/_index.md | 77 + .../printrange/_index.md | 55 + .../standardprintcontroller/_index.md | 26 + .../java/com.aspose.drawing.text/_index.md | 18 + .../genericfontfamilies/_index.md | 46 + .../hotkeyprefix/_index.md | 46 + .../installedfontcollection/_index.md | 60 + .../privatefontcollection/_index.md | 61 + .../textrenderinghint/_index.md | 73 + chinese/java/com.aspose.drawing/_index.md | 64 + .../java/com.aspose.drawing/bitmap/_index.md | 504 ++++ .../java/com.aspose.drawing/brush/_index.md | 53 + .../java/com.aspose.drawing/brushes/_index.md | 1570 +++++++++++ .../characterrange/_index.md | 203 ++ .../java/com.aspose.drawing/color/_index.md | 2002 ++++++++++++++ .../colorconverter/_index.md | 55 + .../colortranslator/_index.md | 126 + .../contentalignment/_index.md | 100 + .../copypixeloperation/_index.md | 172 ++ .../drawimageabort/_index.md | 78 + .../drawingsettings/_index.md | 63 + .../enumeratemetafileproc/_index.md | 70 + .../enumeratemetafileprocbyte/_index.md | 86 + .../com.aspose.drawing/features/_index.md | 55 + .../java/com.aspose.drawing/font/_index.md | 509 ++++ .../fontcollection/_index.md | 42 + .../fontdefinitionext/_index.md | 144 ++ .../com.aspose.drawing/fontfamily/_index.md | 257 ++ .../fontfamilydefinition/_index.md | 90 + .../com.aspose.drawing/fontstyle/_index.md | 64 + .../getthumbnailimageabort/_index.md | 74 + .../com.aspose.drawing/graphicsunit/_index.md | 82 + .../java/com.aspose.drawing/icon/_index.md | 302 +++ .../com.aspose.drawing/knowncolor/_index.md | 1585 ++++++++++++ .../java/com.aspose.drawing/license/_index.md | 189 ++ .../com.aspose.drawing/meteredext/_index.md | 106 + chinese/java/com.aspose.drawing/pen/_index.md | 682 +++++ .../java/com.aspose.drawing/pens/_index.md | 1852 +++++++++++++ .../java/com.aspose.drawing/point/_index.md | 479 ++++ .../java/com.aspose.drawing/pointf/_index.md | 397 +++ .../com.aspose.drawing/rectangle/_index.md | 704 +++++ .../com.aspose.drawing/rectanglef/_index.md | 663 +++++ .../java/com.aspose.drawing/region/_index.md | 824 ++++++ .../rotatefliptype/_index.md | 163 ++ .../java/com.aspose.drawing/size/_index.md | 525 ++++ .../java/com.aspose.drawing/sizef/_index.md | 446 ++++ .../com.aspose.drawing/solidbrush/_index.md | 73 + .../stringalignment/_index.md | 46 + .../stringdigitsubstitute/_index.md | 55 + .../com.aspose.drawing/stringformat/_index.md | 379 +++ .../stringformatflags/_index.md | 109 + .../stringtrimming/_index.md | 73 + .../com.aspose.drawing/systemcolors/_index.md | 382 +++ .../com.aspose.drawing/systemfonts/_index.md | 134 + .../com.aspose.drawing/systemicons/_index.md | 160 ++ .../com.aspose.drawing/texturebrush/_index.md | 300 +++ 128 files changed, 29816 insertions(+) create mode 100644 chinese/java/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/adjustablearrowcap/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/blend/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/colorblend/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/combinemode/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/compositingmode/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/compositingquality/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/coordinatespace/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/customlinecap/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/dashcap/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/dashstyle/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/fillmode/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/flushintention/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/graphicscontainer/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/graphicspathiterator/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/graphicsstate/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/hatchbrush/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/hatchstyle/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/interpolationmode/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/lineargradientbrush/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/lineargradientmode/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/linecap/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/linejoin/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/matrix/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/matrixorder/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/pathdata/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/pathgradientbrush/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/penalignment/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/pentype/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/pixeloffsetmode/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/regiondata/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/smoothingmode/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/warpmode/_index.md create mode 100644 chinese/java/com.aspose.drawing.drawing2d/wrapmode/_index.md create mode 100644 chinese/java/com.aspose.drawing.dynabic.metered/_index.md create mode 100644 chinese/java/com.aspose.drawing.dynabic.metered/metered/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/bitmapdata/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/coloradjusttype/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/colorchannelflag/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/colormap/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/colormatrix/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/colormatrixflag/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/colorpalette/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/emfplusrecordtype/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/emftype/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/encoder/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/encoderparameter/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/encoderparameters/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/encodervalue/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/framedimension/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/imageattributes/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/imagecodecinfo/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/imageflags/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/imageformat/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/imagelockmode/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/metafile/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/metafileframeunit/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/metafileheader/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/metafiletype/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/metaheader/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/pixelformat/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/playrecordcallback/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/propertyitem/_index.md create mode 100644 chinese/java/com.aspose.drawing.imaging/wmfplaceablefileheader/_index.md create mode 100644 chinese/java/com.aspose.drawing.printing/_index.md create mode 100644 chinese/java/com.aspose.drawing.printing/pagesettings/_index.md create mode 100644 chinese/java/com.aspose.drawing.printing/printdocument/_index.md create mode 100644 chinese/java/com.aspose.drawing.printing/printerresolution/_index.md create mode 100644 chinese/java/com.aspose.drawing.printing/printersettings/_index.md create mode 100644 chinese/java/com.aspose.drawing.printing/printeventargs/_index.md create mode 100644 chinese/java/com.aspose.drawing.printing/printpageeventargs/_index.md create mode 100644 chinese/java/com.aspose.drawing.printing/printrange/_index.md create mode 100644 chinese/java/com.aspose.drawing.printing/standardprintcontroller/_index.md create mode 100644 chinese/java/com.aspose.drawing.text/_index.md create mode 100644 chinese/java/com.aspose.drawing.text/genericfontfamilies/_index.md create mode 100644 chinese/java/com.aspose.drawing.text/hotkeyprefix/_index.md create mode 100644 chinese/java/com.aspose.drawing.text/installedfontcollection/_index.md create mode 100644 chinese/java/com.aspose.drawing.text/privatefontcollection/_index.md create mode 100644 chinese/java/com.aspose.drawing.text/textrenderinghint/_index.md create mode 100644 chinese/java/com.aspose.drawing/_index.md create mode 100644 chinese/java/com.aspose.drawing/bitmap/_index.md create mode 100644 chinese/java/com.aspose.drawing/brush/_index.md create mode 100644 chinese/java/com.aspose.drawing/brushes/_index.md create mode 100644 chinese/java/com.aspose.drawing/characterrange/_index.md create mode 100644 chinese/java/com.aspose.drawing/color/_index.md create mode 100644 chinese/java/com.aspose.drawing/colorconverter/_index.md create mode 100644 chinese/java/com.aspose.drawing/colortranslator/_index.md create mode 100644 chinese/java/com.aspose.drawing/contentalignment/_index.md create mode 100644 chinese/java/com.aspose.drawing/copypixeloperation/_index.md create mode 100644 chinese/java/com.aspose.drawing/drawimageabort/_index.md create mode 100644 chinese/java/com.aspose.drawing/drawingsettings/_index.md create mode 100644 chinese/java/com.aspose.drawing/enumeratemetafileproc/_index.md create mode 100644 chinese/java/com.aspose.drawing/enumeratemetafileprocbyte/_index.md create mode 100644 chinese/java/com.aspose.drawing/features/_index.md create mode 100644 chinese/java/com.aspose.drawing/font/_index.md create mode 100644 chinese/java/com.aspose.drawing/fontcollection/_index.md create mode 100644 chinese/java/com.aspose.drawing/fontdefinitionext/_index.md create mode 100644 chinese/java/com.aspose.drawing/fontfamily/_index.md create mode 100644 chinese/java/com.aspose.drawing/fontfamilydefinition/_index.md create mode 100644 chinese/java/com.aspose.drawing/fontstyle/_index.md create mode 100644 chinese/java/com.aspose.drawing/getthumbnailimageabort/_index.md create mode 100644 chinese/java/com.aspose.drawing/graphicsunit/_index.md create mode 100644 chinese/java/com.aspose.drawing/icon/_index.md create mode 100644 chinese/java/com.aspose.drawing/knowncolor/_index.md create mode 100644 chinese/java/com.aspose.drawing/license/_index.md create mode 100644 chinese/java/com.aspose.drawing/meteredext/_index.md create mode 100644 chinese/java/com.aspose.drawing/pen/_index.md create mode 100644 chinese/java/com.aspose.drawing/pens/_index.md create mode 100644 chinese/java/com.aspose.drawing/point/_index.md create mode 100644 chinese/java/com.aspose.drawing/pointf/_index.md create mode 100644 chinese/java/com.aspose.drawing/rectangle/_index.md create mode 100644 chinese/java/com.aspose.drawing/rectanglef/_index.md create mode 100644 chinese/java/com.aspose.drawing/region/_index.md create mode 100644 chinese/java/com.aspose.drawing/rotatefliptype/_index.md create mode 100644 chinese/java/com.aspose.drawing/size/_index.md create mode 100644 chinese/java/com.aspose.drawing/sizef/_index.md create mode 100644 chinese/java/com.aspose.drawing/solidbrush/_index.md create mode 100644 chinese/java/com.aspose.drawing/stringalignment/_index.md create mode 100644 chinese/java/com.aspose.drawing/stringdigitsubstitute/_index.md create mode 100644 chinese/java/com.aspose.drawing/stringformat/_index.md create mode 100644 chinese/java/com.aspose.drawing/stringformatflags/_index.md create mode 100644 chinese/java/com.aspose.drawing/stringtrimming/_index.md create mode 100644 chinese/java/com.aspose.drawing/systemcolors/_index.md create mode 100644 chinese/java/com.aspose.drawing/systemfonts/_index.md create mode 100644 chinese/java/com.aspose.drawing/systemicons/_index.md create mode 100644 chinese/java/com.aspose.drawing/texturebrush/_index.md diff --git a/chinese/java/_index.md b/chinese/java/_index.md new file mode 100644 index 000000000..f6e568a1e --- /dev/null +++ b/chinese/java/_index.md @@ -0,0 +1,18 @@ +--- +title: Aspose.Drawing for Java +type: docs +weight: 11 +url: /zh/java/ +keywords: "Aspose.Drawing for Java, Aspose Drawing, Aspose API Reference." +description: Aspose.Drawing for Java 是一个成像库,提供了最灵活的一组例程,帮助开发者在 Java 应用程序中轻松且高效地创建、操作、保存和转换图像。 +is_root: true +--- +## Packages +| 包 | 描述 | +| --- | --- | +| [com.aspose.drawing](./com.aspose.drawing) | Aspose.Drawing 是一个图形 API,提供与 GDI+ 相同的 2D 绘图能力,可用于您的 .NET 应用程序。 | +| [com.aspose.drawing.drawing2d](./com.aspose.drawing.drawing2d) | | +| [com.aspose.drawing.dynabic.metered](./com.aspose.drawing.dynabic.metered) | | +| [com.aspose.drawing.imaging](./com.aspose.drawing.imaging) | | +| [com.aspose.drawing.printing](./com.aspose.drawing.printing) | | +| [com.aspose.drawing.text](./com.aspose.drawing.text) | | diff --git a/chinese/java/com.aspose.drawing.drawing2d/_index.md b/chinese/java/com.aspose.drawing.drawing2d/_index.md new file mode 100644 index 000000000..37cf65049 --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/_index.md @@ -0,0 +1,48 @@ +--- +title: com.aspose.drawing.drawing2d +second_title: Aspose.Drawing for Java API 参考 +description: +type: docs +weight: 11 +url: /zh/java/com.aspose.drawing.drawing2d/ +--- + +## 类 + +| 类 | 描述 | +| --- | --- | +| [AdjustableArrowCap](../com.aspose.drawing.drawing2d/adjustablearrowcap) | 表示可调节的箭头形线帽。 | +| [Blend](../com.aspose.drawing.drawing2d/blend) | 为 [LinearGradientBrush](../com.aspose.drawing.drawing2d/lineargradientbrush) 对象定义混合模式。 | +| [ColorBlend](../com.aspose.drawing.drawing2d/colorblend) | 定义用于在多色渐变中插值颜色混合的颜色和位置数组。 | +| [CombineMode](../com.aspose.drawing.drawing2d/combinemode) | 指定不同裁剪区域的组合方式。 | +| [CompositingMode](../com.aspose.drawing.drawing2d/compositingmode) | 指定源颜色与背景颜色的组合方式。 | +| [CompositingQuality](../com.aspose.drawing.drawing2d/compositingquality) | 指定合成过程中使用的质量级别。 | +| [CoordinateSpace](../com.aspose.drawing.drawing2d/coordinatespace) | 指定评估坐标时使用的系统。 | +| [CustomLineCap](../com.aspose.drawing.drawing2d/customlinecap) | 封装自定义用户定义的线帽。 | +| [DashCap](../com.aspose.drawing.drawing2d/dashcap) | 指定虚线中每段破折号两端使用的图形形状类型。 | +| [DashStyle](../com.aspose.drawing.drawing2d/dashstyle) | 指定使用 [Pen](../com.aspose.drawing/pen) 对象绘制的虚线样式。 | +| [FillMode](../com.aspose.drawing.drawing2d/fillmode) | 指定封闭路径内部的填充方式。 | +| [FlushIntention](../com.aspose.drawing.drawing2d/flushintention) | 指定图形堆栈中的命令是立即终止(刷新)还是尽快执行。 | +| [GraphicsContainer](../com.aspose.drawing.drawing2d/graphicscontainer) | 表示图形容器的内部数据。 | +| [GraphicsPath](../com.aspose.drawing.drawing2d/graphicspath) | 表示一系列相连的线段和曲线。 | +| [GraphicsPathIterator](../com.aspose.drawing.drawing2d/graphicspathiterator) | 提供遍历 [GraphicsPath](../com.aspose.drawing.drawing2d/graphicspath) 中子路径并测试每个子路径中包含的形状类型的能力。 | +| [GraphicsState](../com.aspose.drawing.drawing2d/graphicsstate) | 表示 [Graphics](../com.aspose.drawing/graphics) 对象的状态。 | +| [HatchBrush](../com.aspose.drawing.drawing2d/hatchbrush) | 定义具有网格样式、前景色和背景色的矩形画刷。 | +| [HatchStyle](../com.aspose.drawing.drawing2d/hatchstyle) | 指定可用于 [HatchBrush](../com.aspose.drawing.drawing2d/hatchbrush) 对象的不同图案。 | +| [InterpolationMode](../com.aspose.drawing.drawing2d/interpolationmode) | InterpolationMode 枚举指定在对图像进行缩放或旋转时使用的算法。 | +| [LineCap](../com.aspose.drawing.drawing2d/linecap) | 指定 Pen 对象可用于结束线条的可用帽子样式。 | +| [LineJoin](../com.aspose.drawing.drawing2d/linejoin) | 指定如何在 GraphicsPath 对象中包含的图形(子路径)中连接连续的直线或曲线段。 | +| [LinearGradientBrush](../com.aspose.drawing.drawing2d/lineargradientbrush) | 封装具有线性渐变的 [Brush](../com.aspose.drawing/brush)。 | +| [LinearGradientMode](../com.aspose.drawing.drawing2d/lineargradientmode) | 指定线性渐变的方向。 | +| [Matrix](../com.aspose.drawing.drawing2d/matrix) | 封装表示几何变换的 3×3 仿射矩阵。 | +| [MatrixOrder](../com.aspose.drawing.drawing2d/matrixorder) | 指定矩阵变换操作的顺序。 | +| [PathData](../com.aspose.drawing.drawing2d/pathdata) | 包含构成 [GraphicsPath](../com.aspose.drawing.drawing2d/graphicspath) 对象的图形数据。 | +| [PathGradientBrush](../com.aspose.drawing.drawing2d/pathgradientbrush) | 封装一个 [Brush](../com.aspose.drawing/brush) 对象,用渐变填充 [GraphicsPath](../com.aspose.drawing.drawing2d/graphicspath) 对象的内部。 | +| [PathPointType](../com.aspose.drawing.drawing2d/pathpointtype) | 指定 [GraphicsPath](../com.aspose.drawing.drawing2d/graphicspath) 对象中点的类型。 | +| [PenAlignment](../com.aspose.drawing.drawing2d/penalignment) | 指定 [Pen](../com.aspose.drawing/pen) 对象相对于理论的零宽线的对齐方式。 | +| [PenType](../com.aspose.drawing.drawing2d/pentype) | 指定 Pen 对象用于填充线条的填充类型。 | +| [PixelOffsetMode](../com.aspose.drawing.drawing2d/pixeloffsetmode) | 指定渲染过程中像素的偏移方式。 | +| [RegionData](../com.aspose.drawing.drawing2d/regiondata) | 封装构成 [Region](../com.aspose.drawing/region) 对象的数据。 | +| [SmoothingMode](../com.aspose.drawing.drawing2d/smoothingmode) | 指定是否对线条、曲线以及填充区域的边缘应用平滑(抗锯齿)。 | +| [WarpMode](../com.aspose.drawing.drawing2d/warpmode) | 指定在 `Warp` 方法中应用的扭曲变换类型。 | +| [WrapMode](../com.aspose.drawing.drawing2d/wrapmode) | 指定当纹理或渐变小于填充区域时的平铺方式。 | diff --git a/chinese/java/com.aspose.drawing.drawing2d/adjustablearrowcap/_index.md b/chinese/java/com.aspose.drawing.drawing2d/adjustablearrowcap/_index.md new file mode 100644 index 000000000..ad4ede7f2 --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/adjustablearrowcap/_index.md @@ -0,0 +1,170 @@ +--- +title: AdjustableArrowCap +second_title: Aspose.Drawing for Java API 参考 +description: 表示可调节的箭头形线帽。 +type: docs +weight: 10 +url: /zh/java/com.aspose.drawing.drawing2d/adjustablearrowcap/ +--- +**Inheritance:** +java.lang.Object, [com.aspose.drawing.drawing2d.CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) +``` +public final class AdjustableArrowCap extends CustomLineCap +``` + +表示可调节的箭头形线帽。此类不能被继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [AdjustableArrowCap(float width, float height)](#AdjustableArrowCap-float-float-) | 初始化 [AdjustableArrowCap](../../com.aspose.drawing.drawing2d/adjustablearrowcap) 类的新实例。 | +| [AdjustableArrowCap(float width, float height, boolean isFilled)](#AdjustableArrowCap-float-float-boolean-) | 初始化 [AdjustableArrowCap](../../com.aspose.drawing.drawing2d/adjustablearrowcap) 类的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getHeight()](#getHeight--) | 获取箭头帽的高度。 | +| [setHeight(float value)](#setHeight-float-) | 设置箭头帽的高度。 | +| [getWidth()](#getWidth--) | 获取箭头帽的宽度。 | +| [setWidth(float value)](#setWidth-float-) | 设置箭头帽的宽度。 | +| [getMiddleInset()](#getMiddleInset--) | 获取箭头帽轮廓与填充之间的单位数。 | +| [setMiddleInset(float value)](#setMiddleInset-float-) | 设置箭头帽轮廓与填充之间的单位数。 | +| [getFilled()](#getFilled--) | 获取指示箭头帽是否已填充的值。 | +| [setFilled(boolean value)](#setFilled-boolean-) | 设置指示箭头帽是否已填充的值。 | +### AdjustableArrowCap(float width, float height) {#AdjustableArrowCap-float-float-} +``` +public AdjustableArrowCap(float width, float height) +``` + + +初始化 [AdjustableArrowCap](../../com.aspose.drawing.drawing2d/adjustablearrowcap) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 宽度 | 浮点数 | 箭头的宽度。 | +| 高度 | 浮点数 | 箭头的高度。 | + +### AdjustableArrowCap(float width, float height, boolean isFilled) {#AdjustableArrowCap-float-float-boolean-} +``` +public AdjustableArrowCap(float width, float height, boolean isFilled) +``` + + +初始化 [AdjustableArrowCap](../../com.aspose.drawing.drawing2d/adjustablearrowcap) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 宽度 | 浮点数 | 箭头的宽度。 | +| 高度 | 浮点数 | 箭头的高度。 | +| isFilled | 布尔型 | true 表示填充箭头帽;否则为 false。 | + +### getHeight() {#getHeight--} +``` +public float getHeight() +``` + + +获取箭头帽的高度。 + +值:箭头帽的高度。 + +**Returns:** +float - 箭头帽的高度。 +### setHeight(float value) {#setHeight-float-} +``` +public void setHeight(float value) +``` + + +设置箭头帽的高度。 + +值:箭头帽的高度。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | 浮点数 | 箭头帽的高度。 | + +### getWidth() {#getWidth--} +``` +public float getWidth() +``` + + +获取箭头帽的宽度。 + +值:箭头帽的宽度(单位)。 + +**Returns:** +float - 箭头帽的宽度。 +### setWidth(float value) {#setWidth-float-} +``` +public void setWidth(float value) +``` + + +设置箭头帽的宽度。 + +值:箭头帽的宽度(单位)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | 浮点数 | 箭头帽的宽度。 | + +### getMiddleInset() {#getMiddleInset--} +``` +public float getMiddleInset() +``` + + +获取箭头帽轮廓与填充之间的单位数。 + +值:箭头帽轮廓与填充之间的单位数。 + +**Returns:** +float - 箭头帽轮廓与填充之间的单位数。 +### setMiddleInset(float value) {#setMiddleInset-float-} +``` +public void setMiddleInset(float value) +``` + + +设置箭头帽轮廓与填充之间的单位数。 + +值:箭头帽轮廓与填充之间的单位数。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | 浮点数 | 箭头帽轮廓与填充之间的单位数。 | + +### getFilled() {#getFilled--} +``` +public boolean getFilled() +``` + + +获取指示箭头帽是否已填充的值。 + +值:如果箭头帽已填充,则此属性为 true;否则为 false。 + +**Returns:** +boolean - 指示箭头帽是否已填充的值。 +### setFilled(boolean value) {#setFilled-boolean-} +``` +public void setFilled(boolean value) +``` + + +设置指示箭头帽是否已填充的值。 + +值:如果箭头帽已填充,则此属性为 true;否则为 false。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | 布尔型 | 指示箭头帽是否已填充的值。 | + diff --git a/chinese/java/com.aspose.drawing.drawing2d/blend/_index.md b/chinese/java/com.aspose.drawing.drawing2d/blend/_index.md new file mode 100644 index 000000000..a0219ccca --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/blend/_index.md @@ -0,0 +1,96 @@ +--- +title: Blend +second_title: Aspose.Drawing for Java API 参考 +description: 为对象定义混合模式。 +type: docs +weight: 11 +url: /zh/java/com.aspose.drawing.drawing2d/blend/ +--- +**Inheritance:** +java.lang.Object +``` +public final class Blend +``` + +为 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 对象定义混合模式。此类不可被继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [Blend()](#Blend--) | 初始化 [Blend](../../com.aspose.drawing.drawing2d/blend) 类的新实例。 | +| [Blend(int count)](#Blend-int-) | 使用指定数量的因子和位置初始化 [Blend](../../com.aspose.drawing.drawing2d/blend) 类的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getFactors()](#getFactors--) | 获取渐变的混合因子数组。 | +| [setFactors(float[] value)](#setFactors-float---) | 设置渐变的混合因子数组。 | +| [getPositions()](#getPositions--) | 获取渐变的混合位置数组。 | +| [setPositions(float[] value)](#setPositions-float---) | 设置渐变的混合位置数组。 | +### Blend() {#Blend--} +``` +public Blend() +``` + + +初始化 [Blend](../../com.aspose.drawing.drawing2d/blend) 类的新实例。 + +### Blend(int count) {#Blend-int-} +``` +public Blend(int count) +``` + + +使用指定数量的因子和位置初始化 [Blend](../../com.aspose.drawing.drawing2d/blend) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| count | int | `Blend.Factors` 和 `Blend.Positions` 数组中的元素数量。 | + +### getFactors() {#getFactors--} +``` +public float[] getFactors() +``` + + +获取渐变的混合因子数组。 + +**Returns:** +float[] - 渐变的混合因子数组。 +### setFactors(float[] value) {#setFactors-float---} +``` +public void setFactors(float[] value) +``` + + +设置渐变的混合因子数组。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float[] | 渐变的混合因子数组。 | + +### getPositions() {#getPositions--} +``` +public float[] getPositions() +``` + + +获取渐变的混合位置数组。 + +**Returns:** +float[] - 渐变的混合位置数组。 +### setPositions(float[] value) {#setPositions-float---} +``` +public void setPositions(float[] value) +``` + + +设置渐变的混合位置数组。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float[] | 渐变的混合位置数组。 | + diff --git a/chinese/java/com.aspose.drawing.drawing2d/colorblend/_index.md b/chinese/java/com.aspose.drawing.drawing2d/colorblend/_index.md new file mode 100644 index 000000000..ef931e639 --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/colorblend/_index.md @@ -0,0 +1,96 @@ +--- +title: ColorBlend +second_title: Aspose.Drawing for Java API 参考 +description: 定义用于在多色渐变中插值颜色混合的颜色和位置数组。 +type: docs +weight: 12 +url: /zh/java/com.aspose.drawing.drawing2d/colorblend/ +--- +**Inheritance:** +java.lang.Object +``` +public final class ColorBlend +``` + +定义用于在多色渐变中插值颜色混合的颜色和位置数组。此类不可被继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [ColorBlend()](#ColorBlend--) | 初始化一个新的 [ColorBlend](../../com.aspose.drawing.drawing2d/colorblend) 类实例。 | +| [ColorBlend(int count)](#ColorBlend-int-) | 使用指定数量的颜色和位置,初始化一个新的 [ColorBlend](../../com.aspose.drawing.drawing2d/colorblend) 类实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getColors()](#getColors--) | 获取一个颜色数组,表示在渐变的相应位置使用的颜色。 | +| [setColors(Color[] value)](#setColors-com.aspose.drawing.Color---) | 设置一个颜色数组,表示在渐变的相应位置使用的颜色。 | +| [getPositions()](#getPositions--) | 获取渐变线上的位置。 | +| [setPositions(float[] value)](#setPositions-float---) | 设置渐变线上的位置。 | +### ColorBlend() {#ColorBlend--} +``` +public ColorBlend() +``` + + +初始化一个新的 [ColorBlend](../../com.aspose.drawing.drawing2d/colorblend) 类实例。 + +### ColorBlend(int count) {#ColorBlend-int-} +``` +public ColorBlend(int count) +``` + + +使用指定数量的颜色和位置,初始化一个新的 [ColorBlend](../../com.aspose.drawing.drawing2d/colorblend) 类实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| count | int | 此 [ColorBlend](../../com.aspose.drawing.drawing2d/colorblend) 中颜色和位置的数量。 | + +### getColors() {#getColors--} +``` +public Color[] getColors() +``` + + +获取一个颜色数组,表示在渐变的相应位置使用的颜色。 + +**Returns:** +com.aspose.drawing.Color[] - 表示在渐变的相应位置使用的颜色的颜色数组。 +### setColors(Color[] value) {#setColors-com.aspose.drawing.Color---} +``` +public void setColors(Color[] value) +``` + + +设置一个颜色数组,表示在渐变的相应位置使用的颜色。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [Color\[\]](../../com.aspose.drawing/color) | 表示在渐变的相应位置使用的颜色的颜色数组。 | + +### getPositions() {#getPositions--} +``` +public float[] getPositions() +``` + + +获取渐变线上的位置。 + +**Returns:** +float[] - 渐变线上的位置。 +### setPositions(float[] value) {#setPositions-float---} +``` +public void setPositions(float[] value) +``` + + +设置渐变线上的位置。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float[] | 渐变线上的位置。 | + diff --git a/chinese/java/com.aspose.drawing.drawing2d/combinemode/_index.md b/chinese/java/com.aspose.drawing.drawing2d/combinemode/_index.md new file mode 100644 index 000000000..c54414740 --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/combinemode/_index.md @@ -0,0 +1,73 @@ +--- +title: CombineMode +second_title: Aspose.Drawing for Java API 参考 +description: 指定不同裁剪区域的组合方式。 +type: docs +weight: 13 +url: /zh/java/com.aspose.drawing.drawing2d/combinemode/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class CombineMode extends System.Enum +``` + +指定不同裁剪区域的组合方式。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [Replace](#Replace) | 一个裁剪区域被另一个替换。 | +| [Intersect](#Intersect) | 两个裁剪区域通过取它们的交集进行组合。 | +| [Union](#Union) | 两个裁剪区域通过取它们的并集进行组合。 | +| [Xor](#Xor) | 两个裁剪区域通过仅取被其中一个区域包围的区域(而非两者都包含的区域)进行组合。 | +| [Exclude](#Exclude) | 指定将现有区域替换为从现有区域中移除新区域后的结果。 | +| [Complement](#Complement) | 指定将现有区域替换为从新区域中移除现有区域后的结果。 | +### Replace {#Replace} +``` +public static final int Replace +``` + + +一个裁剪区域被另一个替换。 + +### Intersect {#Intersect} +``` +public static final int Intersect +``` + + +两个裁剪区域通过取它们的交集进行组合。 + +### Union {#Union} +``` +public static final int Union +``` + + +两个裁剪区域通过取它们的并集进行组合。 + +### Xor {#Xor} +``` +public static final int Xor +``` + + +两个裁剪区域通过仅取被其中一个区域包围的区域(而非两者都包含的区域)进行组合。 + +### Exclude {#Exclude} +``` +public static final int Exclude +``` + + +指定将现有区域替换为从现有区域中移除新区域后的结果。换句话说,新区域从现有区域中被排除。 + +### Complement {#Complement} +``` +public static final int Complement +``` + + +指定将现有区域替换为从新区域中移除现有区域后的结果。换句话说,现有区域从新区域中被排除。 + diff --git a/chinese/java/com.aspose.drawing.drawing2d/compositingmode/_index.md b/chinese/java/com.aspose.drawing.drawing2d/compositingmode/_index.md new file mode 100644 index 000000000..e4f3cc37f --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/compositingmode/_index.md @@ -0,0 +1,37 @@ +--- +title: CompositingMode +second_title: Aspose.Drawing for Java API 参考 +description: 指定源颜色与背景颜色的组合方式。 +type: docs +weight: 14 +url: /zh/java/com.aspose.drawing.drawing2d/compositingmode/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class CompositingMode extends System.Enum +``` + +指定源颜色与背景颜色的组合方式。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [SourceOver](#SourceOver) | 指定在渲染颜色时,它会与背景颜色混合。 | +| [SourceCopy](#SourceCopy) | 指定在渲染颜色时,它会覆盖背景颜色。 | +### SourceOver {#SourceOver} +``` +public static final int SourceOver +``` + + +指定在渲染颜色时,它会与背景颜色混合。混合方式由被渲染颜色的 alpha 分量决定。 + +### SourceCopy {#SourceCopy} +``` +public static final int SourceCopy +``` + + +指定在渲染颜色时,它会覆盖背景颜色。 + diff --git a/chinese/java/com.aspose.drawing.drawing2d/compositingquality/_index.md b/chinese/java/com.aspose.drawing.drawing2d/compositingquality/_index.md new file mode 100644 index 000000000..ad801e948 --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/compositingquality/_index.md @@ -0,0 +1,73 @@ +--- +title: CompositingQuality +second_title: Aspose.Drawing for Java API 参考 +description: 指定合成过程中使用的质量级别。 +type: docs +weight: 15 +url: /zh/java/com.aspose.drawing.drawing2d/compositingquality/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class CompositingQuality extends System.Enum +``` + +指定合成过程中使用的质量级别。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [Invalid](#Invalid) | 无效的质量。 | +| [Default](#Default) | 默认质量。 | +| [HighSpeed](#HighSpeed) | 高速,低质量。 | +| [HighQuality](#HighQuality) | 高质量、低速的合成。 | +| [GammaCorrected](#GammaCorrected) | 使用伽马校正。 | +| [AssumeLinear](#AssumeLinear) | 假设线性值。 | +### Invalid {#Invalid} +``` +public static final int Invalid +``` + + +无效的质量。 + +### Default {#Default} +``` +public static final int Default +``` + + +默认质量。 + +### HighSpeed {#HighSpeed} +``` +public static final int HighSpeed +``` + + +高速,低质量。 + +### HighQuality {#HighQuality} +``` +public static final int HighQuality +``` + + +高质量、低速的合成。 + +### GammaCorrected {#GammaCorrected} +``` +public static final int GammaCorrected +``` + + +使用伽马校正。 + +### AssumeLinear {#AssumeLinear} +``` +public static final int AssumeLinear +``` + + +假设线性值。 + diff --git a/chinese/java/com.aspose.drawing.drawing2d/coordinatespace/_index.md b/chinese/java/com.aspose.drawing.drawing2d/coordinatespace/_index.md new file mode 100644 index 000000000..30cdca435 --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/coordinatespace/_index.md @@ -0,0 +1,46 @@ +--- +title: 坐标空间 +second_title: Aspose.Drawing for Java API 参考 +description: 指定评估坐标时使用的系统。 +type: docs +weight: 16 +url: /zh/java/com.aspose.drawing.drawing2d/coordinatespace/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class CoordinateSpace extends System.Enum +``` + +指定评估坐标时使用的系统。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [World](#World) | 指定坐标位于世界坐标上下文中。 | +| [Page](#Page) | 指定坐标位于页面坐标上下文中。 | +| [Device](#Device) | 指定坐标位于设备坐标上下文中。 | +### World {#World} +``` +public static final int World +``` + + +指定坐标位于世界坐标上下文中。世界坐标用于非物理环境,例如建模环境。 + +### Page {#Page} +``` +public static final int Page +``` + + +指定坐标位于页面坐标上下文中。它们的单位由 Graphics.PageUnit 属性定义,必须是 GraphicsUnit 枚举的其中一个元素。 + +### Device {#Device} +``` +public static final int Device +``` + + +指定坐标位于设备坐标上下文中。在计算机屏幕上,设备坐标通常以像素为单位。 + diff --git a/chinese/java/com.aspose.drawing.drawing2d/customlinecap/_index.md b/chinese/java/com.aspose.drawing.drawing2d/customlinecap/_index.md new file mode 100644 index 000000000..4bbe88c39 --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/customlinecap/_index.md @@ -0,0 +1,246 @@ +--- +title: CustomLineCap +second_title: Aspose.Drawing for Java API 参考 +description: 封装自定义用户定义的线帽。 +type: docs +weight: 17 +url: /zh/java/com.aspose.drawing.drawing2d/customlinecap/ +--- +**Inheritance:** +java.lang.Object + +**All Implemented Interfaces:** +com.aspose.ms.System.IDisposable +``` +public class CustomLineCap implements System.IDisposable +``` + +封装自定义用户定义的线帽。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath)](#CustomLineCap-com.aspose.drawing.drawing2d.GraphicsPath-com.aspose.drawing.drawing2d.GraphicsPath-) | 使用指定的轮廓和填充初始化 [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) 类的新实例。 | +| [CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath, int baseCap)](#CustomLineCap-com.aspose.drawing.drawing2d.GraphicsPath-com.aspose.drawing.drawing2d.GraphicsPath-int-) | 从指定的现有 [LineCap](../../com.aspose.drawing.drawing2d/linecap) 枚举,并使用指定的轮廓和填充,初始化 [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) 类的新实例。 | +| [CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath, int baseCap, float baseInset)](#CustomLineCap-com.aspose.drawing.drawing2d.GraphicsPath-com.aspose.drawing.drawing2d.GraphicsPath-int-float-) | 从指定的现有 [LineCap](../../com.aspose.drawing.drawing2d/linecap) 枚举,并使用指定的轮廓、填充和内嵌,初始化 [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) 类的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getStrokeJoin()](#getStrokeJoin--) | 获取或设置决定组成此 [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) 对象的线段如何连接的 [LineJoin](../../com.aspose.drawing.drawing2d/linejoin) 枚举。 | +| [setStrokeJoin(int value)](#setStrokeJoin-int-) | 获取或设置决定组成此 [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) 对象的线段如何连接的 [LineJoin](../../com.aspose.drawing.drawing2d/linejoin) 枚举。 | +| [getBaseCap()](#getBaseCap--) | 获取或设置此 [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) 所基于的 [LineCap](../../com.aspose.drawing.drawing2d/linecap) 枚举。 | +| [setBaseCap(int value)](#setBaseCap-int-) | 获取或设置此 [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) 所基于的 [LineCap](../../com.aspose.drawing.drawing2d/linecap) 枚举。 | +| [getBaseInset()](#getBaseInset--) | 获取或设置帽子与线之间的距离。 | +| [setBaseInset(float value)](#setBaseInset-float-) | 获取或设置帽子与线之间的距离。 | +| [getWidthScale()](#getWidthScale--) | 获取或设置相对于 [Pen](../../com.aspose.drawing/pen) 对象宽度,对此 [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) 类对象进行缩放的量。 | +| [setWidthScale(float value)](#setWidthScale-float-) | 获取或设置相对于 [Pen](../../com.aspose.drawing/pen) 对象宽度,对此 [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) 类对象进行缩放的量。 | +| [dispose()](#dispose--) | 释放此 [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) 对象使用的所有资源。 | +| [deepClone()](#deepClone--) | 创建此 [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) 的精确副本。 | +| [setStrokeCaps(int startCap, int endCap)](#setStrokeCaps-int-int-) | 设置用于开始和结束构成此自定义帽的线的端帽。 | +| [getStrokeCaps(int[] startCap, int[] endCap)](#getStrokeCaps-int---int---) | 获取用于开始和结束构成此自定义帽的线的端帽。 | +| [getFillPath()](#getFillPath--) | | +| [getStrokePath()](#getStrokePath--) | 获取定义此自定义帽轮廓的对象。 | +### CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath) {#CustomLineCap-com.aspose.drawing.drawing2d.GraphicsPath-com.aspose.drawing.drawing2d.GraphicsPath-} +``` +public CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath) +``` + + +使用指定的轮廓和填充初始化 [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| fillPath | [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) | 一个定义此自定义帽填充的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 对象。 | +| strokePath | [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) | 一个定义此自定义帽轮廓的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 对象。 | + +### CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath, int baseCap) {#CustomLineCap-com.aspose.drawing.drawing2d.GraphicsPath-com.aspose.drawing.drawing2d.GraphicsPath-int-} +``` +public CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath, int baseCap) +``` + + +从指定的现有 [LineCap](../../com.aspose.drawing.drawing2d/linecap) 枚举,并使用指定的轮廓和填充,初始化 [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| fillPath | [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) | 一个定义此自定义帽填充的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 对象。 | +| strokePath | [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) | 一个定义此自定义帽轮廓的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 对象。 | +| baseCap | int | 用于创建自定义帽的线帽。 | + +### CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath, int baseCap, float baseInset) {#CustomLineCap-com.aspose.drawing.drawing2d.GraphicsPath-com.aspose.drawing.drawing2d.GraphicsPath-int-float-} +``` +public CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath, int baseCap, float baseInset) +``` + + +从指定的现有 [LineCap](../../com.aspose.drawing.drawing2d/linecap) 枚举,并使用指定的轮廓、填充和内嵌,初始化 [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| fillPath | [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) | 一个定义此自定义帽填充的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 对象。 | +| strokePath | [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) | 一个定义此自定义帽轮廓的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 对象。 | +| baseCap | int | 用于创建自定义帽的线帽。 | +| baseInset | 浮点数 | 帽子与线之间的距离。 | + +### getStrokeJoin() {#getStrokeJoin--} +``` +public final int getStrokeJoin() +``` + + +获取或设置决定组成此 [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) 对象的线段如何连接的 [LineJoin](../../com.aspose.drawing.drawing2d/linejoin) 枚举。 + +**Returns:** +int +### setStrokeJoin(int value) {#setStrokeJoin-int-} +``` +public final void setStrokeJoin(int value) +``` + + +获取或设置决定组成此 [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) 对象的线段如何连接的 [LineJoin](../../com.aspose.drawing.drawing2d/linejoin) 枚举。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | | + +### getBaseCap() {#getBaseCap--} +``` +public final int getBaseCap() +``` + + +获取或设置此 [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) 所基于的 [LineCap](../../com.aspose.drawing.drawing2d/linecap) 枚举。 + +**Returns:** +int +### setBaseCap(int value) {#setBaseCap-int-} +``` +public final void setBaseCap(int value) +``` + + +获取或设置此 [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) 所基于的 [LineCap](../../com.aspose.drawing.drawing2d/linecap) 枚举。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | | + +### getBaseInset() {#getBaseInset--} +``` +public final float getBaseInset() +``` + + +获取或设置帽子与线之间的距离。 + +**Returns:** +浮点数 +### setBaseInset(float value) {#setBaseInset-float-} +``` +public final void setBaseInset(float value) +``` + + +获取或设置帽子与线之间的距离。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | 浮点数 | | + +### getWidthScale() {#getWidthScale--} +``` +public final float getWidthScale() +``` + + +获取或设置相对于 [Pen](../../com.aspose.drawing/pen) 对象宽度,对此 [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) 类对象进行缩放的量。 + +**Returns:** +浮点数 +### setWidthScale(float value) {#setWidthScale-float-} +``` +public final void setWidthScale(float value) +``` + + +获取或设置相对于 [Pen](../../com.aspose.drawing/pen) 对象宽度,对此 [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) 类对象进行缩放的量。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | 浮点数 | | + +### dispose() {#dispose--} +``` +public final void dispose() +``` + + +释放此 [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) 对象使用的所有资源。 + +### deepClone() {#deepClone--} +``` +public final Object deepClone() +``` + + +创建此 [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) 的精确副本。 + +**Returns:** +java.lang.Object - 此方法创建的 [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap),作为对象进行强制转换。 +### setStrokeCaps(int startCap, int endCap) {#setStrokeCaps-int-int-} +``` +public final void setStrokeCaps(int startCap, int endCap) +``` + + +设置用于开始和结束构成此自定义帽的线的端帽。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| startCap | int | 在此帽子内用于线段起始的 [LineCap](../../com.aspose.drawing.drawing2d/linecap) 枚举。 | +| endCap | int | 在此帽子内用于线段结束的 [LineCap](../../com.aspose.drawing.drawing2d/linecap) 枚举。 | + +### getStrokeCaps(int[] startCap, int[] endCap) {#getStrokeCaps-int---int---} +``` +public final void getStrokeCaps(int[] startCap, int[] endCap) +``` + + +获取用于开始和结束构成此自定义帽的线的端帽。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| startCap | int[] | 在此帽子内用于线段起始的 [LineCap](../../com.aspose.drawing.drawing2d/linecap) 枚举。 | +| endCap | int[] | 在此帽子内用于线段结束的 [LineCap](../../com.aspose.drawing.drawing2d/linecap) 枚举。 | + +### getFillPath() {#getFillPath--} +``` +public GraphicsPath getFillPath() +``` + + + + +**Returns:** +[GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) +### getStrokePath() {#getStrokePath--} +``` +public GraphicsPath getStrokePath() +``` + + +获取定义此自定义帽轮廓的对象。 + +**Returns:** +[GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) - The object that defines the outline of the custom cap. diff --git a/chinese/java/com.aspose.drawing.drawing2d/dashcap/_index.md b/chinese/java/com.aspose.drawing.drawing2d/dashcap/_index.md new file mode 100644 index 000000000..3ef9e2893 --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/dashcap/_index.md @@ -0,0 +1,46 @@ +--- +title: DashCap +second_title: Aspose.Drawing for Java API 参考 +description: 指定虚线中每段破折号两端使用的图形形状类型。 +type: docs +weight: 18 +url: /zh/java/com.aspose.drawing.drawing2d/dashcap/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class DashCap extends System.Enum +``` + +指定虚线中每段破折号两端使用的图形形状类型。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [Flat](#Flat) | 指定一种方形端点,使每段虚线的两端呈方形。 | +| [Round](#Round) | 指定一种圆形端点,使每段虚线的两端呈圆形。 | +| [Triangle](#Triangle) | 指定一种三角形端点,使每段虚线的两端呈三角形。 | +### Flat {#Flat} +``` +public static final int Flat +``` + + +指定一种方形端点,使每段虚线的两端呈方形。 + +### Round {#Round} +``` +public static final int Round +``` + + +指定一种圆形端点,使每段虚线的两端呈圆形。 + +### Triangle {#Triangle} +``` +public static final int Triangle +``` + + +指定一种三角形端点,使每段虚线的两端呈三角形。 + diff --git a/chinese/java/com.aspose.drawing.drawing2d/dashstyle/_index.md b/chinese/java/com.aspose.drawing.drawing2d/dashstyle/_index.md new file mode 100644 index 000000000..5df266d5b --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/dashstyle/_index.md @@ -0,0 +1,73 @@ +--- +title: DashStyle +second_title: Aspose.Drawing for Java API 参考 +description: 指定使用对象绘制的虚线样式。 +type: docs +weight: 19 +url: /zh/java/com.aspose.drawing.drawing2d/dashstyle/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class DashStyle extends System.Enum +``` + +指定使用 [Pen](../../com.aspose.drawing/pen) 对象绘制的虚线样式。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [Solid](#Solid) | 指定实线。 | +| [Dash](#Dash) | 指定由短划线组成的线。 | +| [Dot](#Dot) | 指定由点组成的线。 | +| [DashDot](#DashDot) | 指定由短划线-点重复模式组成的线。 | +| [DashDotDot](#DashDotDot) | 指定由短划线-点-点重复模式组成的线。 | +| [Custom](#Custom) | 指定用户自定义的虚线样式。 | +### Solid {#Solid} +``` +public static final int Solid +``` + + +指定实线。 + +### Dash {#Dash} +``` +public static final int Dash +``` + + +指定由短划线组成的线。 + +### Dot {#Dot} +``` +public static final int Dot +``` + + +指定由点组成的线。 + +### DashDot {#DashDot} +``` +public static final int DashDot +``` + + +指定由短划线-点重复模式组成的线。 + +### DashDotDot {#DashDotDot} +``` +public static final int DashDotDot +``` + + +指定由短划线-点-点重复模式组成的线。 + +### Custom {#Custom} +``` +public static final int Custom +``` + + +指定用户自定义的虚线样式。 + diff --git a/chinese/java/com.aspose.drawing.drawing2d/fillmode/_index.md b/chinese/java/com.aspose.drawing.drawing2d/fillmode/_index.md new file mode 100644 index 000000000..567e9d7ca --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/fillmode/_index.md @@ -0,0 +1,37 @@ +--- +title: 填充模式 +second_title: Aspose.Drawing for Java API 参考 +description: 指定封闭路径内部的填充方式。 +type: docs +weight: 20 +url: /zh/java/com.aspose.drawing.drawing2d/fillmode/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class FillMode extends System.Enum +``` + +指定封闭路径内部的填充方式。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [Alternate](#Alternate) | 指定交替填充模式。 | +| [Winding](#Winding) | 指定环绕填充模式。 | +### Alternate {#Alternate} +``` +public static final int Alternate +``` + + +指定交替填充模式。 + +### Winding {#Winding} +``` +public static final int Winding +``` + + +指定环绕填充模式。 + diff --git a/chinese/java/com.aspose.drawing.drawing2d/flushintention/_index.md b/chinese/java/com.aspose.drawing.drawing2d/flushintention/_index.md new file mode 100644 index 000000000..f6d2e33de --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/flushintention/_index.md @@ -0,0 +1,37 @@ +--- +title: FlushIntention +second_title: Aspose.Drawing for Java API 参考 +description: 指定图形堆栈中的命令是立即刷新终止还是尽快执行。 +type: docs +weight: 21 +url: /zh/java/com.aspose.drawing.drawing2d/flushintention/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class FlushIntention extends System.Enum +``` + +指定图形堆栈中的命令是立即终止(刷新)还是尽快执行。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [Flush](#Flush) | 指定所有图形操作的堆栈会立即刷新。 | +| [Sync](#Sync) | 指定堆栈上的所有图形操作尽快执行。 | +### Flush {#Flush} +``` +public static final int Flush +``` + + +指定所有图形操作的堆栈会立即刷新。 + +### Sync {#Sync} +``` +public static final int Sync +``` + + +指定堆栈上的所有图形操作尽快执行。这会同步图形状态。 + diff --git a/chinese/java/com.aspose.drawing.drawing2d/graphicscontainer/_index.md b/chinese/java/com.aspose.drawing.drawing2d/graphicscontainer/_index.md new file mode 100644 index 000000000..ac4506060 --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/graphicscontainer/_index.md @@ -0,0 +1,15 @@ +--- +title: GraphicsContainer +second_title: Aspose.Drawing for Java API 参考 +description: 表示图形容器的内部数据。 +type: docs +weight: 22 +url: /zh/java/com.aspose.drawing.drawing2d/graphicscontainer/ +--- +**Inheritance:** +java.lang.Object +``` +public final class GraphicsContainer +``` + +表示图形容器的内部数据。此类在使用 [Graphics](../../com.aspose.drawing/graphics) 对象通过 [Graphics.beginContainer](../../com.aspose.drawing/graphics\#beginContainer) 和 [Graphics.endContainer(GraphicsContainer)](../../com.aspose.drawing/graphics\#endContainer-GraphicsContainer-) 方法保存状态时使用。此类不可被继承。 diff --git a/chinese/java/com.aspose.drawing.drawing2d/graphicspathiterator/_index.md b/chinese/java/com.aspose.drawing.drawing2d/graphicspathiterator/_index.md new file mode 100644 index 000000000..7bcd653fe --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/graphicspathiterator/_index.md @@ -0,0 +1,213 @@ +--- +title: GraphicsPathIterator +second_title: Aspose.Drawing for Java API 参考 +description: 提供遍历子路径的能力,并测试每个子路径中包含的形状类型。 +type: docs +weight: 24 +url: /zh/java/com.aspose.drawing.drawing2d/graphicspathiterator/ +--- +**Inheritance:** +java.lang.Object + +**All Implemented Interfaces:** +com.aspose.ms.System.IDisposable +``` +public final class GraphicsPathIterator implements System.IDisposable +``` + +提供遍历 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 中子路径并测试每个子路径中包含的形状类型的能力。此类不可被继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [GraphicsPathIterator(GraphicsPath path)](#GraphicsPathIterator-com.aspose.drawing.drawing2d.GraphicsPath-) | 初始化 [GraphicsPathIterator](../../com.aspose.drawing.drawing2d/graphicspathiterator) 类的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getCount()](#getCount--) | 获取路径中的点数。 | +| [getSubpathCount()](#getSubpathCount--) | 获取路径中的子路径数量。 | +| [dispose()](#dispose--) | 执行与释放、释放或重置非托管资源相关的应用程序定义任务。 | +| [copyData(PointF[][] points, byte[][] types, int startIndex, int endIndex)](#copyData-com.aspose.drawing.PointF-----byte-----int-int-) | 将关联的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 的 GraphicsPath.PathPoints 属性和 GraphicsPath.PathTypes 属性数组复制到两个指定的数组中。 | +| [enumerate(PointF[][] points, byte[][] types)](#enumerate-com.aspose.drawing.PointF-----byte-----) | 将关联的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 的 GraphicsPath.PathPoints 属性和 GraphicsPath.PathTypes 属性数组复制到两个指定的数组中。 | +| [hasCurve()](#hasCurve--) | 指示与此 [GraphicsPathIterator](../../com.aspose.drawing.drawing2d/graphicspathiterator) 关联的路径是否包含曲线。 | +| [nextMarker(int[] startIndex, int[] endIndex)](#nextMarker-int---int---) | 将 [GraphicsPathIterator](../../com.aspose.drawing.drawing2d/graphicspathiterator) 前进到路径中的下一个标记,并通过 [out] 参数返回起始和结束索引。 | +| [nextMarker(GraphicsPath path)](#nextMarker-com.aspose.drawing.drawing2d.GraphicsPath-) | 此 [GraphicsPathIterator](../../com.aspose.drawing.drawing2d/graphicspathiterator) 对象关联有一个 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 对象。 | +| [nextPathType(byte[] pathType, int[] startIndex, int[] endIndex)](#nextPathType-byte---int---int---) | 获取下一组具有相同类型的数据点的起始索引和结束索引。 | +| [nextSubpath(int[] startIndex, int[] endIndex, boolean[] isClosed)](#nextSubpath-int---int---boolean---) | 将 [GraphicsPathIterator](../../com.aspose.drawing.drawing2d/graphicspathiterator) 移动到路径中的下一个子路径。 | +| [nextSubpath(GraphicsPath path, boolean[] isClosed)](#nextSubpath-com.aspose.drawing.drawing2d.GraphicsPath-boolean---) | 从此 [GraphicsPathIterator](../../com.aspose.drawing.drawing2d/graphicspathiterator) 关联的路径中获取下一个图形(子路径)。 | +| [rewind()](#rewind--) | 将此 [GraphicsPathIterator](../../com.aspose.drawing.drawing2d/graphicspathiterator) 重新定位到其关联路径的起始位置。 | +### GraphicsPathIterator(GraphicsPath path) {#GraphicsPathIterator-com.aspose.drawing.drawing2d.GraphicsPath-} +``` +public GraphicsPathIterator(GraphicsPath path) +``` + + +初始化 [GraphicsPathIterator](../../com.aspose.drawing.drawing2d/graphicspathiterator) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| path | [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) | 用于初始化此帮助类的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 对象。 | + +### getCount() {#getCount--} +``` +public int getCount() +``` + + +获取路径中的点数。 + +**Returns:** +int - 路径中的点数。 +### getSubpathCount() {#getSubpathCount--} +``` +public int getSubpathCount() +``` + + +获取路径中的子路径数量。 + +**Returns:** +int - 路径中的子路径数量。 +### dispose() {#dispose--} +``` +public void dispose() +``` + + +执行与释放、释放或重置非托管资源相关的应用程序定义任务。 + +### copyData(PointF[][] points, byte[][] types, int startIndex, int endIndex) {#copyData-com.aspose.drawing.PointF-----byte-----int-int-} +``` +public int copyData(PointF[][] points, byte[][] types, int startIndex, int endIndex) +``` + + +将关联的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 的 GraphicsPath.PathPoints 属性和 GraphicsPath.PathTypes 属性数组复制到两个指定的数组中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| points | [PointF\[\]](../../com.aspose.drawing/pointf) | 返回时,包含表示路径中点的 System.Drawing.PointF 结构数组。 | +| 类型 | byte[][] | 返回时,包含表示路径中点类型的字节数组。 | +| startIndex | int | 指定数组的起始索引。 | +| endIndex | int | 指定数组的结束索引。 | + +**Returns:** +int - 已复制的点数。 +### enumerate(PointF[][] points, byte[][] types) {#enumerate-com.aspose.drawing.PointF-----byte-----} +``` +public int enumerate(PointF[][] points, byte[][] types) +``` + + +将关联的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 的 GraphicsPath.PathPoints 属性和 GraphicsPath.PathTypes 属性数组复制到两个指定的数组中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| points | [PointF\[\]](../../com.aspose.drawing/pointf) | 返回时,包含表示路径中点的 System.Drawing.PointF 结构数组。 | +| 类型 | byte[][] | 返回时,包含表示路径中点类型的字节数组。 | + +**Returns:** +int - 已复制的点数。 +### hasCurve() {#hasCurve--} +``` +public boolean hasCurve() +``` + + +指示与此 [GraphicsPathIterator](../../com.aspose.drawing.drawing2d/graphicspathiterator) 关联的路径是否包含曲线。 + +**Returns:** +boolean - 如果当前子路径包含曲线,则此方法返回 true;否则返回 false。 +### nextMarker(int[] startIndex, int[] endIndex) {#nextMarker-int---int---} +``` +public int nextMarker(int[] startIndex, int[] endIndex) +``` + + +将 [GraphicsPathIterator](../../com.aspose.drawing.drawing2d/graphicspathiterator) 前进到路径中的下一个标记,并通过 [out] 参数返回起始和结束索引。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| startIndex | int[] | [out] 传入此参数的整数引用接收开始子路径的点的索引。 | +| endIndex | int[] | [out] 传入此参数的整数引用接收由 startIndex 指向的子路径结束点的索引。 | + +**Returns:** +int - 此标记与下一个标记之间的点数。 +### nextMarker(GraphicsPath path) {#nextMarker-com.aspose.drawing.drawing2d.GraphicsPath-} +``` +public int nextMarker(GraphicsPath path) +``` + + +此 [GraphicsPathIterator](../../com.aspose.drawing.drawing2d/graphicspathiterator) 对象关联了一个 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 对象。此方法将关联的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 前进到路径中的下一个标记,并将当前标记与下一个标记(或路径结束)之间的所有点复制到通过参数传入的第二个 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 对象中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| path | [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) | 要将点复制到的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 对象。 | + +**Returns:** +int - 此标记与下一个标记之间的点数。 +### nextPathType(byte[] pathType, int[] startIndex, int[] endIndex) {#nextPathType-byte---int---int---} +``` +public int nextPathType(byte[] pathType, int[] startIndex, int[] endIndex) +``` + + +获取下一组具有相同类型的数据点的起始索引和结束索引。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| pathType | byte[] | [out] 接收组中所有点共享的点类型。可从 [PathPointType](../../com.aspose.drawing.drawing2d/pathpointtype) 枚举中获取可能的类型。 | +| startIndex | int[] | [out] 接收点组的起始索引。 | +| endIndex | int[] | [out] 接收点组的结束索引。 | + +**Returns:** +int - 此方法返回组中的数据点数量。如果路径中没有更多组,则此方法返回 0。 +### nextSubpath(int[] startIndex, int[] endIndex, boolean[] isClosed) {#nextSubpath-int---int---boolean---} +``` +public int nextSubpath(int[] startIndex, int[] endIndex, boolean[] isClosed) +``` + + +将 [GraphicsPathIterator](../../com.aspose.drawing.drawing2d/graphicspathiterator) 移动到路径中的下一个子路径。下一个子路径的起始索引和结束索引包含在 [out] 参数中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| startIndex | int[] | [out] 接收下一个子路径的起始索引。 | +| endIndex | int[] | [out] 接收下一个子路径的结束索引。 | +| isClosed | boolean[] | [out] 指示子路径是否闭合。 | + +**Returns:** +int - 检索到的图形(子路径)中的数据点数量。如果没有更多图形可检索,则返回零。 +### nextSubpath(GraphicsPath path, boolean[] isClosed) {#nextSubpath-com.aspose.drawing.drawing2d.GraphicsPath-boolean---} +``` +public int nextSubpath(GraphicsPath path, boolean[] isClosed) +``` + + +从此 [GraphicsPathIterator](../../com.aspose.drawing.drawing2d/graphicspathiterator) 关联的路径中获取下一个图形(子路径)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| path | [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) | 一个 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath),其数据点将被设置为匹配此迭代器检索到的图形(子路径)的数据点。 | +| isClosed | boolean[] | [out] 指示当前子路径是否闭合。如果图形闭合则为 true,否则为 false。 | + +**Returns:** +int - 检索到的图形(子路径)中的数据点数量。如果没有更多图形可检索,则返回零。 +### rewind() {#rewind--} +``` +public void rewind() +``` + + +将此 [GraphicsPathIterator](../../com.aspose.drawing.drawing2d/graphicspathiterator) 重新定位到其关联路径的起始位置。 + diff --git a/chinese/java/com.aspose.drawing.drawing2d/graphicsstate/_index.md b/chinese/java/com.aspose.drawing.drawing2d/graphicsstate/_index.md new file mode 100644 index 000000000..3b8b2946d --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/graphicsstate/_index.md @@ -0,0 +1,107 @@ +--- +title: GraphicsState +second_title: Aspose.Drawing for Java API 参考 +description: 表示对象的状态。 +type: docs +weight: 25 +url: /zh/java/com.aspose.drawing.drawing2d/graphicsstate/ +--- +**Inheritance:** +java.lang.Object +``` +public class GraphicsState +``` + +表示 [Graphics](../../com.aspose.drawing/graphics) 对象的状态。此对象由对 Save 方法的调用返回。此类不可被继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [GraphicsState()](#GraphicsState--) | 初始化 [GraphicsState](../../com.aspose.drawing.drawing2d/graphicsstate) 类的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getClip()](#getClip--) | | +| [setClip(Region value)](#setClip-com.aspose.drawing.Region-) | | +| [getTransform()](#getTransform--) | | +| [setTransform(Matrix value)](#setTransform-com.aspose.drawing.drawing2d.Matrix-) | | +| [getBounds()](#getBounds--) | 获取边界。 | +| [setBounds(RectangleF value)](#setBounds-com.aspose.drawing.RectangleF-) | 设置边界。 | +### GraphicsState() {#GraphicsState--} +``` +public GraphicsState() +``` + + +初始化 [GraphicsState](../../com.aspose.drawing.drawing2d/graphicsstate) 类的新实例。 + +### getClip() {#getClip--} +``` +public final Region getClip() +``` + + + + +**Returns:** +[Region](../../com.aspose.drawing/region) +### setClip(Region value) {#setClip-com.aspose.drawing.Region-} +``` +public final void setClip(Region value) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [Region](../../com.aspose.drawing/region) | | + +### getTransform() {#getTransform--} +``` +public Matrix getTransform() +``` + + + + +**Returns:** +[Matrix](../../com.aspose.drawing.drawing2d/matrix) +### setTransform(Matrix value) {#setTransform-com.aspose.drawing.drawing2d.Matrix-} +``` +public final void setTransform(Matrix value) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [Matrix](../../com.aspose.drawing.drawing2d/matrix) | | + +### getBounds() {#getBounds--} +``` +public final RectangleF getBounds() +``` + + +获取边界。 + +**Returns:** +[RectangleF](../../com.aspose.drawing/rectanglef) +### setBounds(RectangleF value) {#setBounds-com.aspose.drawing.RectangleF-} +``` +public final void setBounds(RectangleF value) +``` + + +设置边界。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [RectangleF](../../com.aspose.drawing/rectanglef) | | + diff --git a/chinese/java/com.aspose.drawing.drawing2d/hatchbrush/_index.md b/chinese/java/com.aspose.drawing.drawing2d/hatchbrush/_index.md new file mode 100644 index 000000000..ef1bf52cf --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/hatchbrush/_index.md @@ -0,0 +1,98 @@ +--- +title: HatchBrush +second_title: Aspose.Drawing for Java API 参考 +description: 定义一种具有网格样式、前景色和背景色的矩形画刷。 +type: docs +weight: 26 +url: /zh/java/com.aspose.drawing.drawing2d/hatchbrush/ +--- +**Inheritance:** +java.lang.Object, [com.aspose.drawing.Brush](../../com.aspose.drawing/brush) +``` +public final class HatchBrush extends Brush +``` + +定义一种具有网格样式、前景色和背景色的矩形画刷。此类不可被继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [HatchBrush(int hatchstyle, Color foreColor)](#HatchBrush-int-com.aspose.drawing.Color-) | 使用指定的 `HatchStyle`([.getHatchStyle](../../null/\#getHatchStyle)) 枚举和前景色,初始化 [HatchBrush](../../com.aspose.drawing.drawing2d/hatchbrush) 类的新实例。 | +| [HatchBrush(int hatchstyle, Color foreColor, Color backColor)](#HatchBrush-int-com.aspose.drawing.Color-com.aspose.drawing.Color-) | 使用指定的 `HatchStyle`([.getHatchStyle](../../null/\#getHatchStyle)) 枚举、前景色和背景色,初始化 [HatchBrush](../../com.aspose.drawing.drawing2d/hatchbrush) 类的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getHatchStyle()](#getHatchStyle--) | 获取此 [HatchBrush](../../com.aspose.drawing.drawing2d/hatchbrush) 对象的网格样式。 | +| [getForegroundColor()](#getForegroundColor--) | 获取此 [HatchBrush](../../com.aspose.drawing.drawing2d/hatchbrush) 对象绘制的网格线的颜色。 | +| [getBackgroundColor()](#getBackgroundColor--) | 获取此 [HatchBrush](../../com.aspose.drawing.drawing2d/hatchbrush) 对象绘制的网格线之间空隙的颜色。 | +| [deepClone()](#deepClone--) | 创建此 [HatchBrush](../../com.aspose.drawing.drawing2d/hatchbrush) 对象的精确副本。 | +### HatchBrush(int hatchstyle, Color foreColor) {#HatchBrush-int-com.aspose.drawing.Color-} +``` +public HatchBrush(int hatchstyle, Color foreColor) +``` + + +使用指定的 `HatchStyle`([.getHatchStyle](../../null/\#getHatchStyle)) 枚举和前景色,初始化 [HatchBrush](../../com.aspose.drawing.drawing2d/hatchbrush) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| hatchstyle | int | 表示此 [HatchBrush](../../com.aspose.drawing.drawing2d/hatchbrush) 绘制的图案的 `HatchStyle`([.getHatchStyle](../../null/\#getHatchStyle)) 值之一。 | +| foreColor | [Color](../../com.aspose.drawing/color) | 表示此 [HatchBrush](../../com.aspose.drawing.drawing2d/hatchbrush) 绘制的线条颜色的 [Color](../../com.aspose.drawing/color) 结构。 | + +### HatchBrush(int hatchstyle, Color foreColor, Color backColor) {#HatchBrush-int-com.aspose.drawing.Color-com.aspose.drawing.Color-} +``` +public HatchBrush(int hatchstyle, Color foreColor, Color backColor) +``` + + +使用指定的 `HatchStyle`([.getHatchStyle](../../null/\#getHatchStyle)) 枚举、前景色和背景色,初始化 [HatchBrush](../../com.aspose.drawing.drawing2d/hatchbrush) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| hatchstyle | int | 表示此 [HatchBrush](../../com.aspose.drawing.drawing2d/hatchbrush) 绘制的图案的 `HatchStyle`([.getHatchStyle](../../null/\#getHatchStyle)) 值之一。 | +| foreColor | [Color](../../com.aspose.drawing/color) | 表示此 [HatchBrush](../../com.aspose.drawing.drawing2d/hatchbrush) 绘制的线条颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| backColor | [Color](../../com.aspose.drawing/color) | 表示此 [HatchBrush](../../com.aspose.drawing.drawing2d/hatchbrush) 绘制的线条之间空隙颜色的 [Color](../../com.aspose.drawing/color) 结构。 | + +### getHatchStyle() {#getHatchStyle--} +``` +public int getHatchStyle() +``` + + +获取此 [HatchBrush](../../com.aspose.drawing.drawing2d/hatchbrush) 对象的网格样式。 + +**Returns:** +int - 此 [HatchBrush](../../com.aspose.drawing.drawing2d/hatchbrush) 对象的网格样式。 +### getForegroundColor() {#getForegroundColor--} +``` +public Color getForegroundColor() +``` + + +获取此 [HatchBrush](../../com.aspose.drawing.drawing2d/hatchbrush) 对象绘制的网格线的颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - the color of hatch lines drawn by this [HatchBrush](../../com.aspose.drawing.drawing2d/hatchbrush) object. +### getBackgroundColor() {#getBackgroundColor--} +``` +public Color getBackgroundColor() +``` + + +获取此 [HatchBrush](../../com.aspose.drawing.drawing2d/hatchbrush) 对象绘制的网格线之间空隙的颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - the color of spaces between the hatch lines drawn by this [HatchBrush](../../com.aspose.drawing.drawing2d/hatchbrush) object. +### deepClone() {#deepClone--} +``` +public Object deepClone() +``` + + +创建此 [HatchBrush](../../com.aspose.drawing.drawing2d/hatchbrush) 对象的精确副本。 + +**Returns:** +java.lang.Object - 此方法创建的 [HatchBrush](../../com.aspose.drawing.drawing2d/hatchbrush),作为对象进行强制转换。 diff --git a/chinese/java/com.aspose.drawing.drawing2d/hatchstyle/_index.md b/chinese/java/com.aspose.drawing.drawing2d/hatchstyle/_index.md new file mode 100644 index 000000000..8c4ee1e27 --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/hatchstyle/_index.md @@ -0,0 +1,523 @@ +--- +title: HatchStyle +second_title: Aspose.Drawing for Java API 参考 +description: 指定可用于对象的不同图案。 +type: docs +weight: 27 +url: /zh/java/com.aspose.drawing.drawing2d/hatchstyle/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class HatchStyle extends System.Enum +``` + +指定可用于 [HatchBrush](../../com.aspose.drawing.drawing2d/hatchbrush) 对象的不同图案。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [Horizontal](#Horizontal) | 水平线图案。 | +| [Vertical](#Vertical) | 垂直线图案。 | +| [ForwardDiagonal](#ForwardDiagonal) | 左上到右下的对角线线条图案。 | +| [BackwardDiagonal](#BackwardDiagonal) | 右上到左下的对角线线条图案。 | +| [Cross](#Cross) | 指定水平线和垂直线交叉。 | +| [DiagonalCross](#DiagonalCross) | 交叉的对角线图案。 | +| [Percent05](#Percent05) | 指定 5% 的填充。 | +| [Percent10](#Percent10) | 指定 10% 的填充。 | +| [Percent20](#Percent20) | 指定 20% 的填充。 | +| [Percent25](#Percent25) | 指定 25% 的填充。 | +| [Percent30](#Percent30) | 指定 30% 的填充。 | +| [Percent40](#Percent40) | 指定 40% 的填充。 | +| [Percent50](#Percent50) | 指定 50% 的填充。 | +| [Percent60](#Percent60) | 指定 60% 的填充。 | +| [Percent70](#Percent70) | 指定 70% 的填充。 | +| [Percent75](#Percent75) | 指定 75% 的填充。 | +| [Percent80](#Percent80) | 指定 80% 的填充。 | +| [Percent90](#Percent90) | 指定 90% 的填充。 | +| [LightDownwardDiagonal](#LightDownwardDiagonal) | 指定从顶部点到底部点向右倾斜的对角线,并且间距比 `System.Drawing.drawing2d.HatchStyle.ForwardDiagonal` 小 50%,但不进行抗锯齿处理。 | +| [LightUpwardDiagonal](#LightUpwardDiagonal) | 指定从顶部点到底部点向左倾斜的对角线,并且间距比 `System.Drawing.drawing2d.HatchStyle.BackwardDiagonal` 小 50%,但不进行抗锯齿处理。 | +| [DarkDownwardDiagonal](#DarkDownwardDiagonal) | 指定从顶部点到底部点向右倾斜的对角线,间距比 `System.Drawing.drawing2d.HatchStyle.ForwardDiagonal` 小 50%,且宽度是其两倍。 | +| [DarkUpwardDiagonal](#DarkUpwardDiagonal) | 指定从顶部点到底部点向左倾斜的对角线,间距比 `System.Drawing.drawing2d.HatchStyle.BackwardDiagonal` 小 50%,宽度是其两倍,但这些线条不进行抗锯齿处理。 | +| [WideDownwardDiagonal](#WideDownwardDiagonal) | 指定从顶部点到底部点向右倾斜的对角线,间距与 `System.Drawing.drawing2d.HatchStyle.ForwardDiagonal` 相同,宽度是其三倍,但不进行抗锯齿处理。 | +| [WideUpwardDiagonal](#WideUpwardDiagonal) | 指定从顶部点到底部点向左倾斜的对角线,间距与 `System.Drawing.drawing2d.HatchStyle.BackwardDiagonal` 相同,宽度是其三倍,但不进行抗锯齿处理。 | +| [LightVertical](#LightVertical) | 指定垂直线,其间距比 `System.Drawing.drawing2d.HatchStyle.Vertical` 小 50%。 | +| [LightHorizontal](#LightHorizontal) | 指定水平线,其间距比 `System.Drawing.drawing2d.HatchStyle.Horizontal` 小 50%。 | +| [NarrowVertical](#NarrowVertical) | 指定垂直线,其间距比 hatch 样式 `System.Drawing.drawing2d.HatchStyle.Vertical` 小 75%(或比 `System.Drawing.drawing2d.HatchStyle.LightVertical` 小 25%)。 | +| [NarrowHorizontal](#NarrowHorizontal) | 指定水平线,其间距比 hatch 样式 `System.Drawing.drawing2d.HatchStyle.Horizontal` 缩小 75%,(或比 `System.Drawing.drawing2d.HatchStyle.LightHorizontal` 缩小 25%)。 | +| [DarkVertical](#DarkVertical) | 指定垂直线,其间距比 `System.Drawing.drawing2d.HatchStyle.Vertical` 缩小 50%,且宽度是其两倍。 | +| [DarkHorizontal](#DarkHorizontal) | 指定水平线,其间距比 `System.Drawing.drawing2d.HatchStyle.Horizontal` 缩小 50%,且宽度是 `System.Drawing.drawing2d.HatchStyle.Horizontal` 的两倍。 | +| [DashedDownwardDiagonal](#DashedDownwardDiagonal) | 指定虚线对角线,从上点向右倾斜至下点。 | +| [DashedUpwardDiagonal](#DashedUpwardDiagonal) | 指定虚线对角线,从上点向左倾斜至下点。 | +| [DashedHorizontal](#DashedHorizontal) | 指定虚线水平线。 | +| [DashedVertical](#DashedVertical) | 指定虚线垂直线。 | +| [SmallConfetti](#SmallConfetti) | 指定一种外观为彩纸屑的填充图案。 | +| [LargeConfetti](#LargeConfetti) | 指定一种外观为彩纸屑的填充图案,其组成的碎片比 `System.Drawing.drawing2d.HatchStyle.SmallConfetti` 更大。 | +| [ZigZag](#ZigZag) | 指定由锯齿组成的水平线。 | +| [Wave](#Wave) | 指定由波浪线组成的水平线。 | +| [DiagonalBrick](#DiagonalBrick) | 指定一种外观为层叠砖块的填充图案,砖块从上点向左倾斜至下点。 | +| [HorizontalBrick](#HorizontalBrick) | 指定一种外观为水平层叠砖块的填充图案。 | +| [Weave](#Weave) | 指定一种外观为编织材质的填充图案。 | +| [Plaid](#Plaid) | 指定一种外观为格子织物的填充图案。 | +| [Divot](#Divot) | 指定一种外观为凹痕的填充图案。 | +| [DottedGrid](#DottedGrid) | 指定水平线和垂直线,均由点组成,并相交。 | +| [DottedDiamond](#DottedDiamond) | 指定正向对角线和反向对角线,均由点组成,并相交。 | +| [Shingle](#Shingle) | 指定一种外观为对角层叠瓦片的填充图案,瓦片从上点向右倾斜至下点。 | +| [Trellis](#Trellis) | 指定一种外观为格子架的填充图案。 | +| [Sphere](#Sphere) | 指定一种外观为相邻球体排列的填充图案。 | +| [SmallGrid](#SmallGrid) | 指定水平线和垂直线相交,且其间距比 hatch 样式 `System.Drawing.drawing2d.HatchStyle.Cross` 缩小 50%。 | +| [SmallCheckerBoard](#SmallCheckerBoard) | 指定一种外观为棋盘格的填充图案。 | +| [LargeCheckerBoard](#LargeCheckerBoard) | 指定一种外观为棋盘格的填充图案,其方格大小是 `System.Drawing.drawing2d.HatchStyle.SmallCheckerBoard` 的两倍。 | +| [OutlinedDiamond](#OutlinedDiamond) | 指定正向对角线和反向对角线相交,但未进行抗锯齿处理。 | +| [SolidDiamond](#SolidDiamond) | 指定一种外观为对角放置棋盘格的填充图案。 | +| [LargeGrid](#LargeGrid) | 指定填充样式 `System.Drawing.drawing2d.HatchStyle.Cross`。 | +| [Min](#Min) | 指定填充样式 `System.Drawing.drawing2d.HatchStyle.Horizontal`。 | +| [Max](#Max) | 指定填充样式 `System.Drawing.drawing2d.HatchStyle.SolidDiamond`。 | +### Horizontal {#Horizontal} +``` +public static final int Horizontal +``` + + +水平线图案。 + +### Vertical {#Vertical} +``` +public static final int Vertical +``` + + +垂直线图案。 + +### ForwardDiagonal {#ForwardDiagonal} +``` +public static final int ForwardDiagonal +``` + + +左上到右下的对角线线条图案。 + +### BackwardDiagonal {#BackwardDiagonal} +``` +public static final int BackwardDiagonal +``` + + +右上到左下的对角线线条图案。 + +### Cross {#Cross} +``` +public static final int Cross +``` + + +指定水平线和垂直线交叉。 + +### DiagonalCross {#DiagonalCross} +``` +public static final int DiagonalCross +``` + + +交叉的对角线图案。 + +### Percent05 {#Percent05} +``` +public static final int Percent05 +``` + + +指定 5% 的填充。前景色与背景色的比例为 5:100。 + +### Percent10 {#Percent10} +``` +public static final int Percent10 +``` + + +指定 10% 的填充。前景色与背景色的比例为 10:100。 + +### Percent20 {#Percent20} +``` +public static final int Percent20 +``` + + +指定 20% 的填充。前景色与背景色的比例为 20:100。 + +### Percent25 {#Percent25} +``` +public static final int Percent25 +``` + + +指定 25% 的填充。前景色与背景色的比例为 25:100。 + +### Percent30 {#Percent30} +``` +public static final int Percent30 +``` + + +指定 30% 的填充。前景色与背景色的比例为 30:100。 + +### Percent40 {#Percent40} +``` +public static final int Percent40 +``` + + +指定 40% 的填充。前景色与背景色的比例为 40:100。 + +### Percent50 {#Percent50} +``` +public static final int Percent50 +``` + + +指定 50% 的填充。前景色与背景色的比例为 50:100。 + +### Percent60 {#Percent60} +``` +public static final int Percent60 +``` + + +指定 60% 的填充。前景色与背景色的比例为 60:100。 + +### Percent70 {#Percent70} +``` +public static final int Percent70 +``` + + +指定 70% 的填充。前景色与背景色的比例为 70:100。 + +### Percent75 {#Percent75} +``` +public static final int Percent75 +``` + + +指定 75% 的填充。前景色与背景色的比例为 75:100。 + +### Percent80 {#Percent80} +``` +public static final int Percent80 +``` + + +指定 80% 的填充。前景色与背景色的比例为 80:100。 + +### Percent90 {#Percent90} +``` +public static final int Percent90 +``` + + +指定 90% 的填充。前景色与背景色的比例为 90:100。 + +### LightDownwardDiagonal {#LightDownwardDiagonal} +``` +public static final int LightDownwardDiagonal +``` + + +指定从顶部点到底部点向右倾斜的对角线,并且间距比 `System.Drawing.drawing2d.HatchStyle.ForwardDiagonal` 小 50%,但不进行抗锯齿处理。 + +### LightUpwardDiagonal {#LightUpwardDiagonal} +``` +public static final int LightUpwardDiagonal +``` + + +指定从顶部点到底部点向左倾斜的对角线,并且间距比 `System.Drawing.drawing2d.HatchStyle.BackwardDiagonal` 小 50%,但不进行抗锯齿处理。 + +### DarkDownwardDiagonal {#DarkDownwardDiagonal} +``` +public static final int DarkDownwardDiagonal +``` + + +指定从上点到下点向右倾斜的对角线,其间距比 `System.Drawing.drawing2d.HatchStyle.ForwardDiagonal` 小 50%,且宽度为其两倍。此填充图案未进行抗锯齿处理。 + +### DarkUpwardDiagonal {#DarkUpwardDiagonal} +``` +public static final int DarkUpwardDiagonal +``` + + +指定从顶部点到底部点向左倾斜的对角线,间距比 `System.Drawing.drawing2d.HatchStyle.BackwardDiagonal` 小 50%,宽度是其两倍,但这些线条不进行抗锯齿处理。 + +### WideDownwardDiagonal {#WideDownwardDiagonal} +``` +public static final int WideDownwardDiagonal +``` + + +指定从顶部点到底部点向右倾斜的对角线,间距与 `System.Drawing.drawing2d.HatchStyle.ForwardDiagonal` 相同,宽度是其三倍,但不进行抗锯齿处理。 + +### WideUpwardDiagonal {#WideUpwardDiagonal} +``` +public static final int WideUpwardDiagonal +``` + + +指定从顶部点到底部点向左倾斜的对角线,间距与 `System.Drawing.drawing2d.HatchStyle.BackwardDiagonal` 相同,宽度是其三倍,但不进行抗锯齿处理。 + +### LightVertical {#LightVertical} +``` +public static final int LightVertical +``` + + +指定垂直线,其间距比 `System.Drawing.drawing2d.HatchStyle.Vertical` 小 50%。 + +### LightHorizontal {#LightHorizontal} +``` +public static final int LightHorizontal +``` + + +指定水平线,其间距比 `System.Drawing.drawing2d.HatchStyle.Horizontal` 小 50%。 + +### NarrowVertical {#NarrowVertical} +``` +public static final int NarrowVertical +``` + + +指定垂直线,其间距比 hatch 样式 `System.Drawing.drawing2d.HatchStyle.Vertical` 小 75%(或比 `System.Drawing.drawing2d.HatchStyle.LightVertical` 小 25%)。 + +### NarrowHorizontal {#NarrowHorizontal} +``` +public static final int NarrowHorizontal +``` + + +指定水平线,其间距比 hatch 样式 `System.Drawing.drawing2d.HatchStyle.Horizontal` 缩小 75%,(或比 `System.Drawing.drawing2d.HatchStyle.LightHorizontal` 缩小 25%)。 + +### DarkVertical {#DarkVertical} +``` +public static final int DarkVertical +``` + + +指定垂直线,其间距比 `System.Drawing.drawing2d.HatchStyle.Vertical` 缩小 50%,且宽度是其两倍。 + +### DarkHorizontal {#DarkHorizontal} +``` +public static final int DarkHorizontal +``` + + +指定水平线,其间距比 `System.Drawing.drawing2d.HatchStyle.Horizontal` 缩小 50%,且宽度是 `System.Drawing.drawing2d.HatchStyle.Horizontal` 的两倍。 + +### DashedDownwardDiagonal {#DashedDownwardDiagonal} +``` +public static final int DashedDownwardDiagonal +``` + + +指定虚线对角线,从上点向右倾斜至下点。 + +### DashedUpwardDiagonal {#DashedUpwardDiagonal} +``` +public static final int DashedUpwardDiagonal +``` + + +指定虚线对角线,从上点向左倾斜至下点。 + +### DashedHorizontal {#DashedHorizontal} +``` +public static final int DashedHorizontal +``` + + +指定虚线水平线。 + +### DashedVertical {#DashedVertical} +``` +public static final int DashedVertical +``` + + +指定虚线垂直线。 + +### SmallConfetti {#SmallConfetti} +``` +public static final int SmallConfetti +``` + + +指定一种外观为彩纸屑的填充图案。 + +### LargeConfetti {#LargeConfetti} +``` +public static final int LargeConfetti +``` + + +指定一种外观为彩纸屑的填充图案,其组成的碎片比 `System.Drawing.drawing2d.HatchStyle.SmallConfetti` 更大。 + +### ZigZag {#ZigZag} +``` +public static final int ZigZag +``` + + +指定由锯齿组成的水平线。 + +### Wave {#Wave} +``` +public static final int Wave +``` + + +指定由波浪线组成的水平线。 + +### DiagonalBrick {#DiagonalBrick} +``` +public static final int DiagonalBrick +``` + + +指定一种外观为层叠砖块的填充图案,砖块从上点向左倾斜至下点。 + +### HorizontalBrick {#HorizontalBrick} +``` +public static final int HorizontalBrick +``` + + +指定一种外观为水平层叠砖块的填充图案。 + +### Weave {#Weave} +``` +public static final int Weave +``` + + +指定一种外观为编织材质的填充图案。 + +### Plaid {#Plaid} +``` +public static final int Plaid +``` + + +指定一种外观为格子织物的填充图案。 + +### Divot {#Divot} +``` +public static final int Divot +``` + + +指定一种外观为凹痕的填充图案。 + +### DottedGrid {#DottedGrid} +``` +public static final int DottedGrid +``` + + +指定水平线和垂直线,均由点组成,并相交。 + +### DottedDiamond {#DottedDiamond} +``` +public static final int DottedDiamond +``` + + +指定正向对角线和反向对角线,均由点组成,并相交。 + +### Shingle {#Shingle} +``` +public static final int Shingle +``` + + +指定一种外观为对角层叠瓦片的填充图案,瓦片从上点向右倾斜至下点。 + +### Trellis {#Trellis} +``` +public static final int Trellis +``` + + +指定一种外观为格子架的填充图案。 + +### Sphere {#Sphere} +``` +public static final int Sphere +``` + + +指定一种外观为相邻球体排列的填充图案。 + +### SmallGrid {#SmallGrid} +``` +public static final int SmallGrid +``` + + +指定水平线和垂直线相交,且其间距比 hatch 样式 `System.Drawing.drawing2d.HatchStyle.Cross` 缩小 50%。 + +### SmallCheckerBoard {#SmallCheckerBoard} +``` +public static final int SmallCheckerBoard +``` + + +指定一种外观为棋盘格的填充图案。 + +### LargeCheckerBoard {#LargeCheckerBoard} +``` +public static final int LargeCheckerBoard +``` + + +指定一种外观为棋盘格的填充图案,其方格大小是 `System.Drawing.drawing2d.HatchStyle.SmallCheckerBoard` 的两倍。 + +### OutlinedDiamond {#OutlinedDiamond} +``` +public static final int OutlinedDiamond +``` + + +指定正向对角线和反向对角线相交,但未进行抗锯齿处理。 + +### SolidDiamond {#SolidDiamond} +``` +public static final int SolidDiamond +``` + + +指定一种外观为对角放置棋盘格的填充图案。 + +### LargeGrid {#LargeGrid} +``` +public static final int LargeGrid +``` + + +指定填充样式 `System.Drawing.drawing2d.HatchStyle.Cross`。 + +### Min {#Min} +``` +public static final int Min +``` + + +指定填充样式 `System.Drawing.drawing2d.HatchStyle.Horizontal`。 + +### Max {#Max} +``` +public static final int Max +``` + + +指定填充样式 `System.Drawing.drawing2d.HatchStyle.SolidDiamond`。 + diff --git a/chinese/java/com.aspose.drawing.drawing2d/interpolationmode/_index.md b/chinese/java/com.aspose.drawing.drawing2d/interpolationmode/_index.md new file mode 100644 index 000000000..b097e65b4 --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/interpolationmode/_index.md @@ -0,0 +1,100 @@ +--- +title: InterpolationMode +second_title: Aspose.Drawing for Java API 参考 +description: InterpolationMode 枚举指定在对图像进行缩放或旋转时使用的算法。 +type: docs +weight: 28 +url: /zh/java/com.aspose.drawing.drawing2d/interpolationmode/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class InterpolationMode extends System.Enum +``` + +InterpolationMode 枚举指定在对图像进行缩放或旋转时使用的算法。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [Invalid](#Invalid) | 等同于 QualityMode 枚举的 Invalid 元素。 | +| [Default](#Default) | 指定默认模式。 | +| [Low](#Low) | 指定低质量插值。 | +| [High](#High) | 指定高质量插值。 | +| [Bilinear](#Bilinear) | 指定双线性插值。 | +| [Bicubic](#Bicubic) | 指定双三次插值。 | +| [NearestNeighbor](#NearestNeighbor) | 指定最近邻插值。 | +| [HighQualityBilinear](#HighQualityBilinear) | 指定高质量双线性插值。 | +| [HighQualityBicubic](#HighQualityBicubic) | 指定高质量双三次插值。 | +### Invalid {#Invalid} +``` +public static final int Invalid +``` + + +等同于 QualityMode 枚举的 Invalid 元素。 + +### Default {#Default} +``` +public static final int Default +``` + + +指定默认模式。 + +### Low {#Low} +``` +public static final int Low +``` + + +指定低质量插值。 + +### High {#High} +``` +public static final int High +``` + + +指定高质量插值。 + +### Bilinear {#Bilinear} +``` +public static final int Bilinear +``` + + +指定双线性插值。未进行预过滤。此模式不适用于将图像缩小至原始大小的 50% 以下。 + +### Bicubic {#Bicubic} +``` +public static final int Bicubic +``` + + +指定双三次插值。未进行预过滤。此模式不适用于将图像缩小至原始大小的 25% 以下。 + +### NearestNeighbor {#NearestNeighbor} +``` +public static final int NearestNeighbor +``` + + +指定最近邻插值。 + +### HighQualityBilinear {#HighQualityBilinear} +``` +public static final int HighQualityBilinear +``` + + +指定高质量双线性插值。执行预过滤以确保高质量缩小。 + +### HighQualityBicubic {#HighQualityBicubic} +``` +public static final int HighQualityBicubic +``` + + +指定高质量双三次插值。执行预过滤以确保高质量缩小。此模式产生最高质量的变换图像。 + diff --git a/chinese/java/com.aspose.drawing.drawing2d/lineargradientbrush/_index.md b/chinese/java/com.aspose.drawing.drawing2d/lineargradientbrush/_index.md new file mode 100644 index 000000000..b29e1a317 --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/lineargradientbrush/_index.md @@ -0,0 +1,520 @@ +--- +title: LinearGradientBrush +second_title: Aspose.Drawing for Java API 参考 +description: 封装一个具有线性渐变的对象。 +type: docs +weight: 31 +url: /zh/java/com.aspose.drawing.drawing2d/lineargradientbrush/ +--- +**Inheritance:** +java.lang.Object, [com.aspose.drawing.Brush](../../com.aspose.drawing/brush) +``` +public final class LinearGradientBrush extends Brush +``` + +封装一个带有线性渐变的 [Brush](../../com.aspose.drawing/brush)。此类不可被继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [LinearGradientBrush(PointF point1, PointF point2, Color color1, Color color2)](#LinearGradientBrush-com.aspose.drawing.PointF-com.aspose.drawing.PointF-com.aspose.drawing.Color-com.aspose.drawing.Color-) | 使用指定的点和颜色初始化 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 类的新实例。 | +| [LinearGradientBrush(Point point1, Point point2, Color color1, Color color2)](#LinearGradientBrush-com.aspose.drawing.Point-com.aspose.drawing.Point-com.aspose.drawing.Color-com.aspose.drawing.Color-) | 使用指定的点和颜色初始化 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 类的新实例。 | +| [LinearGradientBrush(RectangleF rect, Color color1, Color color2, int linearGradientMode)](#LinearGradientBrush-com.aspose.drawing.RectangleF-com.aspose.drawing.Color-com.aspose.drawing.Color-int-) | 基于矩形、起始和结束颜色以及方向模式,初始化 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 类的新实例。 | +| [LinearGradientBrush(Rectangle rect, Color color1, Color color2, int linearGradientMode)](#LinearGradientBrush-com.aspose.drawing.Rectangle-com.aspose.drawing.Color-com.aspose.drawing.Color-int-) | 基于矩形、起始和结束颜色以及方向,初始化 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 类的新实例。 | +| [LinearGradientBrush(RectangleF rect, Color color1, Color color2, float angle)](#LinearGradientBrush-com.aspose.drawing.RectangleF-com.aspose.drawing.Color-com.aspose.drawing.Color-float-) | 基于矩形、起始和结束颜色以及方向角,初始化 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 类的新实例。 | +| [LinearGradientBrush(RectangleF rect, Color color1, Color color2, float angle, boolean isAngleScaleable)](#LinearGradientBrush-com.aspose.drawing.RectangleF-com.aspose.drawing.Color-com.aspose.drawing.Color-float-boolean-) | 基于矩形、起始和结束颜色以及方向角,初始化 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 类的新实例。 | +| [LinearGradientBrush(Rectangle rect, Color color1, Color color2, float angle)](#LinearGradientBrush-com.aspose.drawing.Rectangle-com.aspose.drawing.Color-com.aspose.drawing.Color-float-) | 基于矩形、起始和结束颜色以及方向角,初始化 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 类的新实例。 | +| [LinearGradientBrush(Rectangle rect, Color color1, Color color2, float angle, boolean isAngleScaleable)](#LinearGradientBrush-com.aspose.drawing.Rectangle-com.aspose.drawing.Color-com.aspose.drawing.Color-float-boolean-) | 基于矩形、起始和结束颜色以及方向角,初始化 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 类的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getLinearColors()](#getLinearColors--) | 获取或设置渐变的起始和结束颜色。 | +| [setLinearColors(Color[] value)](#setLinearColors-com.aspose.drawing.Color---) | 获取或设置渐变的起始和结束颜色。 | +| [getRectangle()](#getRectangle--) | 获取定义渐变起始和结束点的矩形区域。 | +| [getGammaCorrection()](#getGammaCorrection--) | 获取或设置一个值,指示是否为此 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 启用伽马校正。 | +| [setGammaCorrection(boolean value)](#setGammaCorrection-boolean-) | 获取或设置一个值,指示是否为此 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 启用伽马校正。 | +| [getBlend()](#getBlend--) | 获取或设置一个 `Blend`([.getBlend](../../null/\#getBlend)/[.setBlend(Blend)](../../null/\#setBlend-Blend-)),它指定用于定义渐变自定义衰减的位置信息和因子。 | +| [setBlend(Blend value)](#setBlend-com.aspose.drawing.drawing2d.Blend-) | 获取或设置一个 `Blend`([.getBlend](../../null/\#getBlend)/[.setBlend(Blend)](../../null/\#setBlend-Blend-)),它指定用于定义渐变自定义衰减的位置信息和因子。 | +| [getInterpolationColors()](#getInterpolationColors--) | 获取或设置一个 [ColorBlend](../../com.aspose.drawing.drawing2d/colorblend),它定义多颜色线性渐变。 | +| [setInterpolationColors(ColorBlend value)](#setInterpolationColors-com.aspose.drawing.drawing2d.ColorBlend-) | 获取或设置一个 [ColorBlend](../../com.aspose.drawing.drawing2d/colorblend),它定义多颜色线性渐变。 | +| [getWrapMode()](#getWrapMode--) | 获取或设置一个 `WrapMode` 枚举,指示此 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 的包装模式。 | +| [setWrapMode(int value)](#setWrapMode-int-) | 获取或设置一个 `WrapMode` 枚举,指示此 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 的包装模式。 | +| [getTransform()](#getTransform--) | 获取或设置一个复制的 [Matrix](../../com.aspose.drawing.drawing2d/matrix),它定义此 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 的局部几何变换。 | +| [setTransform(Matrix value)](#setTransform-com.aspose.drawing.drawing2d.Matrix-) | 获取或设置一个复制的 [Matrix](../../com.aspose.drawing.drawing2d/matrix),它定义此 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 的局部几何变换。 | +| [deepClone()](#deepClone--) | 创建此 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 的精确副本。 | +| [setSigmaBellShape(float focus)](#setSigmaBellShape-float-) | 基于钟形曲线创建渐变衰减。 | +| [setSigmaBellShape(float focus, float scale)](#setSigmaBellShape-float-float-) | 基于钟形曲线创建渐变衰减。 | +| [setBlendTriangularShape(float focus)](#setBlendTriangularShape-float-) | 创建具有中心颜色的线性渐变,并在两端线性衰减至单一颜色。 | +| [setBlendTriangularShape(float focus, float scale)](#setBlendTriangularShape-float-float-) | 创建具有中心颜色的线性渐变,并在两端线性衰减至单一颜色。 | +| [resetTransform()](#resetTransform--) | 将 `LinearGradientBrush.Transform` 属性重置为单位矩阵。 | +| [multiplyTransform(Matrix matrix)](#multiplyTransform-com.aspose.drawing.drawing2d.Matrix-) | 将表示此 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 局部几何变换的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 与指定的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 相乘,并在前面预置指定的 [Matrix](../../com.aspose.drawing.drawing2d/matrix)。 | +| [multiplyTransform(Matrix matrix, int order)](#multiplyTransform-com.aspose.drawing.drawing2d.Matrix-int-) | 按照指定顺序,将表示此 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 局部几何变换的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 与指定的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 相乘。 | +| [translateTransform(float dx, float dy)](#translateTransform-float-float-) | 按指定的尺寸平移局部几何变换。 | +| [translateTransform(float dx, float dy, int order)](#translateTransform-float-float-int-) | 按指定的顺序,以指定的尺寸平移局部几何变换。 | +| [scaleTransform(float sx, float sy)](#scaleTransform-float-float-) | 按指定的量缩放局部几何变换。 | +| [scaleTransform(float sx, float sy, int order)](#scaleTransform-float-float-int-) | 按指定的顺序,以指定的量缩放局部几何变换。 | +| [rotateTransform(float angle)](#rotateTransform-float-) | 按指定的角度旋转局部几何变换。 | +| [rotateTransform(float angle, int order)](#rotateTransform-float-int-) | 按指定的顺序,以指定的角度旋转局部几何变换。 | +### LinearGradientBrush(PointF point1, PointF point2, Color color1, Color color2) {#LinearGradientBrush-com.aspose.drawing.PointF-com.aspose.drawing.PointF-com.aspose.drawing.Color-com.aspose.drawing.Color-} +``` +public LinearGradientBrush(PointF point1, PointF point2, Color color1, Color color2) +``` + + +使用指定的点和颜色初始化 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| point1 | [PointF](../../com.aspose.drawing/pointf) | 一个表示线性渐变起始点的 [PointF](../../com.aspose.drawing/pointf) 结构。 | +| point2 | [PointF](../../com.aspose.drawing/pointf) | 一个表示线性渐变终点的 [PointF](../../com.aspose.drawing/pointf) 结构。 | +| color1 | [Color](../../com.aspose.drawing/color) | 一个表示线性渐变起始颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| color2 | [Color](../../com.aspose.drawing/color) | 一个表示线性渐变结束颜色的 [Color](../../com.aspose.drawing/color) 结构。 | + +### LinearGradientBrush(Point point1, Point point2, Color color1, Color color2) {#LinearGradientBrush-com.aspose.drawing.Point-com.aspose.drawing.Point-com.aspose.drawing.Color-com.aspose.drawing.Color-} +``` +public LinearGradientBrush(Point point1, Point point2, Color color1, Color color2) +``` + + +使用指定的点和颜色初始化 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| point1 | [Point](../../com.aspose.drawing/point) | 一个表示线性渐变起始点的 [Point](../../com.aspose.drawing/point) 结构。 | +| point2 | [Point](../../com.aspose.drawing/point) | 一个表示线性渐变终点的 [Point](../../com.aspose.drawing/point) 结构。 | +| color1 | [Color](../../com.aspose.drawing/color) | 一个表示线性渐变起始颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| color2 | [Color](../../com.aspose.drawing/color) | 一个表示线性渐变结束颜色的 [Color](../../com.aspose.drawing/color) 结构。 | + +### LinearGradientBrush(RectangleF rect, Color color1, Color color2, int linearGradientMode) {#LinearGradientBrush-com.aspose.drawing.RectangleF-com.aspose.drawing.Color-com.aspose.drawing.Color-int-} +``` +public LinearGradientBrush(RectangleF rect, Color color1, Color color2, int linearGradientMode) +``` + + +基于矩形、起始和结束颜色以及方向模式,初始化 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [RectangleF](../../com.aspose.drawing/rectanglef) | 一个指定线性渐变边界的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构。 | +| color1 | [Color](../../com.aspose.drawing/color) | 一个表示渐变起始颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| color2 | [Color](../../com.aspose.drawing/color) | 表示渐变结束颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| linearGradientMode | int | 指定渐变方向的 [LinearGradientMode](../../com.aspose.drawing.drawing2d/lineargradientmode) 枚举元素。方向决定渐变的起始点和结束点。例如,LinearGradientMode.ForwardDiagonal 指定起始点为矩形的左上角,结束点为矩形的右下角。 | + +### LinearGradientBrush(Rectangle rect, Color color1, Color color2, int linearGradientMode) {#LinearGradientBrush-com.aspose.drawing.Rectangle-com.aspose.drawing.Color-com.aspose.drawing.Color-int-} +``` +public LinearGradientBrush(Rectangle rect, Color color1, Color color2, int linearGradientMode) +``` + + +基于矩形、起始和结束颜色以及方向,初始化 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [Rectangle](../../com.aspose.drawing/rectangle) | 指定线性渐变边界的 `Rectangle`([.getRectangle](../../null/\#getRectangle)) 结构。 | +| color1 | [Color](../../com.aspose.drawing/color) | 一个表示渐变起始颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| color2 | [Color](../../com.aspose.drawing/color) | 表示渐变结束颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| linearGradientMode | int | 指定渐变方向的 [LinearGradientMode](../../com.aspose.drawing.drawing2d/lineargradientmode) 枚举元素。方向决定渐变的起始点和结束点。例如,LinearGradientMode.ForwardDiagonal 指定起始点为矩形的左上角,结束点为矩形的右下角。 | + +### LinearGradientBrush(RectangleF rect, Color color1, Color color2, float angle) {#LinearGradientBrush-com.aspose.drawing.RectangleF-com.aspose.drawing.Color-com.aspose.drawing.Color-float-} +``` +public LinearGradientBrush(RectangleF rect, Color color1, Color color2, float angle) +``` + + +基于矩形、起始和结束颜色以及方向角,初始化 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [RectangleF](../../com.aspose.drawing/rectanglef) | 一个指定线性渐变边界的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构。 | +| color1 | [Color](../../com.aspose.drawing/color) | 一个表示渐变起始颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| color2 | [Color](../../com.aspose.drawing/color) | 表示渐变结束颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| 角度 | 浮点数 | 渐变方向线的角度,以顺时针方向从 x 轴测量的度数。 | + +### LinearGradientBrush(RectangleF rect, Color color1, Color color2, float angle, boolean isAngleScaleable) {#LinearGradientBrush-com.aspose.drawing.RectangleF-com.aspose.drawing.Color-com.aspose.drawing.Color-float-boolean-} +``` +public LinearGradientBrush(RectangleF rect, Color color1, Color color2, float angle, boolean isAngleScaleable) +``` + + +基于矩形、起始和结束颜色以及方向角,初始化 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [RectangleF](../../com.aspose.drawing/rectanglef) | 一个指定线性渐变边界的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构。 | +| color1 | [Color](../../com.aspose.drawing/color) | 一个表示渐变起始颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| color2 | [Color](../../com.aspose.drawing/color) | 表示渐变结束颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| 角度 | 浮点数 | 渐变方向线的角度,以顺时针方向从 x 轴测量的度数。 | +| isAngleScaleable | boolean | 设置为 true 以指定该角度受与此 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 关联的变换影响;否则为 false。 | + +### LinearGradientBrush(Rectangle rect, Color color1, Color color2, float angle) {#LinearGradientBrush-com.aspose.drawing.Rectangle-com.aspose.drawing.Color-com.aspose.drawing.Color-float-} +``` +public LinearGradientBrush(Rectangle rect, Color color1, Color color2, float angle) +``` + + +基于矩形、起始和结束颜色以及方向角,初始化 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [Rectangle](../../com.aspose.drawing/rectangle) | 指定线性渐变边界的 `Rectangle`([.getRectangle](../../null/\#getRectangle)) 结构。 | +| color1 | [Color](../../com.aspose.drawing/color) | 一个表示渐变起始颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| color2 | [Color](../../com.aspose.drawing/color) | 表示渐变结束颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| 角度 | 浮点数 | 渐变方向线的角度,以顺时针方向从 x 轴测量的度数。 | + +### LinearGradientBrush(Rectangle rect, Color color1, Color color2, float angle, boolean isAngleScaleable) {#LinearGradientBrush-com.aspose.drawing.Rectangle-com.aspose.drawing.Color-com.aspose.drawing.Color-float-boolean-} +``` +public LinearGradientBrush(Rectangle rect, Color color1, Color color2, float angle, boolean isAngleScaleable) +``` + + +基于矩形、起始和结束颜色以及方向角,初始化 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [Rectangle](../../com.aspose.drawing/rectangle) | 指定线性渐变边界的 `Rectangle`([.getRectangle](../../null/\#getRectangle)) 结构。 | +| color1 | [Color](../../com.aspose.drawing/color) | 一个表示渐变起始颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| color2 | [Color](../../com.aspose.drawing/color) | 表示渐变结束颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| 角度 | 浮点数 | 渐变方向线的角度,以顺时针方向从 x 轴测量的度数。 | +| isAngleScaleable | boolean | 设置为 true 以指定该角度受与此 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 关联的变换影响;否则为 false。 | + +### getLinearColors() {#getLinearColors--} +``` +public Color[] getLinearColors() +``` + + +获取或设置渐变的起始和结束颜色。 + +**Returns:** +com.aspose.drawing.Color[] +### setLinearColors(Color[] value) {#setLinearColors-com.aspose.drawing.Color---} +``` +public void setLinearColors(Color[] value) +``` + + +获取或设置渐变的起始和结束颜色。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [Color\[\]](../../com.aspose.drawing/color) | | + +### getRectangle() {#getRectangle--} +``` +public RectangleF getRectangle() +``` + + +获取定义渐变起始和结束点的矩形区域。 + +**Returns:** +[RectangleF](../../com.aspose.drawing/rectanglef) +### getGammaCorrection() {#getGammaCorrection--} +``` +public boolean getGammaCorrection() +``` + + +获取或设置一个值,指示是否为此 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 启用伽马校正。 + +**Returns:** +布尔型 +### setGammaCorrection(boolean value) {#setGammaCorrection-boolean-} +``` +public void setGammaCorrection(boolean value) +``` + + +获取或设置一个值,指示是否为此 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 启用伽马校正。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | 布尔型 | | + +### getBlend() {#getBlend--} +``` +public Blend getBlend() +``` + + +获取或设置一个 `Blend`([.getBlend](../../null/\#getBlend)/[.setBlend(Blend)](../../null/\#setBlend-Blend-)),它指定用于定义渐变自定义衰减的位置信息和因子。 + +**Returns:** +[Blend](../../com.aspose.drawing.drawing2d/blend) +### setBlend(Blend value) {#setBlend-com.aspose.drawing.drawing2d.Blend-} +``` +public void setBlend(Blend value) +``` + + +获取或设置一个 `Blend`([.getBlend](../../null/\#getBlend)/[.setBlend(Blend)](../../null/\#setBlend-Blend-)),它指定用于定义渐变自定义衰减的位置信息和因子。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [Blend](../../com.aspose.drawing.drawing2d/blend) | | + +### getInterpolationColors() {#getInterpolationColors--} +``` +public ColorBlend getInterpolationColors() +``` + + +获取或设置一个 [ColorBlend](../../com.aspose.drawing.drawing2d/colorblend),它定义多颜色线性渐变。 + +**Returns:** +[ColorBlend](../../com.aspose.drawing.drawing2d/colorblend) +### setInterpolationColors(ColorBlend value) {#setInterpolationColors-com.aspose.drawing.drawing2d.ColorBlend-} +``` +public void setInterpolationColors(ColorBlend value) +``` + + +获取或设置一个 [ColorBlend](../../com.aspose.drawing.drawing2d/colorblend),它定义多颜色线性渐变。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [ColorBlend](../../com.aspose.drawing.drawing2d/colorblend) | | + +### getWrapMode() {#getWrapMode--} +``` +public int getWrapMode() +``` + + +获取或设置一个 `WrapMode` 枚举,指示此 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 的包装模式。 + +**Returns:** +int +### setWrapMode(int value) {#setWrapMode-int-} +``` +public void setWrapMode(int value) +``` + + +获取或设置一个 `WrapMode` 枚举,指示此 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 的包装模式。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | | + +### getTransform() {#getTransform--} +``` +public Matrix getTransform() +``` + + +获取或设置一个复制的 [Matrix](../../com.aspose.drawing.drawing2d/matrix),它定义此 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 的局部几何变换。 + +**Returns:** +[Matrix](../../com.aspose.drawing.drawing2d/matrix) +### setTransform(Matrix value) {#setTransform-com.aspose.drawing.drawing2d.Matrix-} +``` +public void setTransform(Matrix value) +``` + + +获取或设置一个复制的 [Matrix](../../com.aspose.drawing.drawing2d/matrix),它定义此 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 的局部几何变换。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [Matrix](../../com.aspose.drawing.drawing2d/matrix) | | + +### deepClone() {#deepClone--} +``` +public Object deepClone() +``` + + +创建此 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 的精确副本。 + +**Returns:** +java.lang.Object - 此方法创建的 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush),作为对象进行强制转换。 +### setSigmaBellShape(float focus) {#setSigmaBellShape-float-} +``` +public void setSigmaBellShape(float focus) +``` + + +基于钟形曲线创建渐变衰减。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 焦点 | 浮点数 | 取值范围为 0 到 1,指定渐变的中心(起始颜色和结束颜色等比例混合的点)。 | + +### setSigmaBellShape(float focus, float scale) {#setSigmaBellShape-float-float-} +``` +public void setSigmaBellShape(float focus, float scale) +``` + + +基于钟形曲线创建渐变衰减。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 焦点 | 浮点数 | 取值范围为 0 到 1,指定渐变的中心(仅由结束颜色组成的点)。 | +| 比例 | 浮点数 | 取值范围为 0 到 1,指定颜色从 `focus` 衰减的速度。 | + +### setBlendTriangularShape(float focus) {#setBlendTriangularShape-float-} +``` +public void setBlendTriangularShape(float focus) +``` + + +创建具有中心颜色的线性渐变,并在两端线性衰减至单一颜色。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 焦点 | 浮点数 | 取值范围为 0 到 1,指定渐变的中心(仅由结束颜色组成的点)。 | + +### setBlendTriangularShape(float focus, float scale) {#setBlendTriangularShape-float-float-} +``` +public void setBlendTriangularShape(float focus, float scale) +``` + + +创建具有中心颜色的线性渐变,并在两端线性衰减至单一颜色。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 焦点 | 浮点数 | 取值范围为 0 到 1,指定渐变的中心(仅由结束颜色组成的点)。 | +| 比例 | 浮点数 | 取值范围为 0 到 1,指定颜色从起始颜色到 `focus`(结束颜色)的衰减速度。 | + +### resetTransform() {#resetTransform--} +``` +public void resetTransform() +``` + + +将 `LinearGradientBrush.Transform` 属性重置为单位矩阵。 + +### multiplyTransform(Matrix matrix) {#multiplyTransform-com.aspose.drawing.drawing2d.Matrix-} +``` +public void multiplyTransform(Matrix matrix) +``` + + +将表示此 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 局部几何变换的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 与指定的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 相乘,并在前面预置指定的 [Matrix](../../com.aspose.drawing.drawing2d/matrix)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| matrix | [Matrix](../../com.aspose.drawing.drawing2d/matrix) | 用于乘以几何变换的 [Matrix](../../com.aspose.drawing.drawing2d/matrix)。 | + +### multiplyTransform(Matrix matrix, int order) {#multiplyTransform-com.aspose.drawing.drawing2d.Matrix-int-} +``` +public void multiplyTransform(Matrix matrix, int order) +``` + + +按照指定顺序,将表示此 [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) 局部几何变换的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 与指定的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 相乘。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| matrix | [Matrix](../../com.aspose.drawing.drawing2d/matrix) | 用于乘以几何变换的 [Matrix](../../com.aspose.drawing.drawing2d/matrix)。 | +| order | int | 指定两个矩阵相乘顺序的 [MatrixOrder](../../com.aspose.drawing.drawing2d/matrixorder)。 | + +### translateTransform(float dx, float dy) {#translateTransform-float-float-} +``` +public void translateTransform(float dx, float dy) +``` + + +按指定尺寸平移本地几何变换。此方法将在变换前预先添加平移。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| dx | 浮点数 | x 方向的平移值。 | +| dy | 浮点数 | y 方向的平移值。 | + +### translateTransform(float dx, float dy, int order) {#translateTransform-float-float-int-} +``` +public void translateTransform(float dx, float dy, int order) +``` + + +按指定的顺序,以指定的尺寸平移局部几何变换。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| dx | 浮点数 | x 方向的平移值。 | +| dy | 浮点数 | y 方向的平移值。 | +| 顺序 | int | 应用平移的顺序(预先或追加)。 | + +### scaleTransform(float sx, float sy) {#scaleTransform-float-float-} +``` +public void scaleTransform(float sx, float sy) +``` + + +按指定的量缩放本地几何变换。此方法将缩放矩阵预先添加到变换中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| sx | 浮点数 | 在 x 轴方向上缩放变换的量。 | +| sy | 浮点数 | 在 y 轴方向上缩放变换的量。 | + +### scaleTransform(float sx, float sy, int order) {#scaleTransform-float-float-int-} +``` +public void scaleTransform(float sx, float sy, int order) +``` + + +按指定的顺序,以指定的量缩放局部几何变换。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| sx | 浮点数 | 在 x 轴方向上缩放变换的量。 | +| sy | 浮点数 | 在 y 轴方向上缩放变换的量。 | +| order | int | 一个 [MatrixOrder](../../com.aspose.drawing.drawing2d/matrixorder),用于指定是追加还是预置缩放矩阵。 | + +### rotateTransform(float angle) {#rotateTransform-float-} +``` +public void rotateTransform(float angle) +``` + + +按指定的量旋转本地几何变换。此方法将旋转矩阵预先添加到变换中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 角度 | 浮点数 | 旋转角度。 | + +### rotateTransform(float angle, int order) {#rotateTransform-float-int-} +``` +public void rotateTransform(float angle, int order) +``` + + +按指定的顺序,以指定的角度旋转局部几何变换。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 角度 | 浮点数 | 旋转角度。 | +| order | int | 一个 [MatrixOrder](../../com.aspose.drawing.drawing2d/matrixorder),用于指定是追加还是预置旋转矩阵。 | + diff --git a/chinese/java/com.aspose.drawing.drawing2d/lineargradientmode/_index.md b/chinese/java/com.aspose.drawing.drawing2d/lineargradientmode/_index.md new file mode 100644 index 000000000..7d0ff3933 --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/lineargradientmode/_index.md @@ -0,0 +1,55 @@ +--- +title: LinearGradientMode +second_title: Aspose.Drawing for Java API 参考 +description: 指定线性渐变的方向。 +type: docs +weight: 32 +url: /zh/java/com.aspose.drawing.drawing2d/lineargradientmode/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class LinearGradientMode extends System.Enum +``` + +指定线性渐变的方向。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [Horizontal](#Horizontal) | 指定从左到右的渐变。 | +| [Vertical](#Vertical) | 指定从上到下的渐变。 | +| [ForwardDiagonal](#ForwardDiagonal) | 指定从左上到右下的渐变。 | +| [BackwardDiagonal](#BackwardDiagonal) | 指定从右上到左下的渐变。 | +### Horizontal {#Horizontal} +``` +public static final int Horizontal +``` + + +指定从左到右的渐变。 + +### Vertical {#Vertical} +``` +public static final int Vertical +``` + + +指定从上到下的渐变。 + +### ForwardDiagonal {#ForwardDiagonal} +``` +public static final int ForwardDiagonal +``` + + +指定从左上到右下的渐变。 + +### BackwardDiagonal {#BackwardDiagonal} +``` +public static final int BackwardDiagonal +``` + + +指定从右上到左下的渐变。 + diff --git a/chinese/java/com.aspose.drawing.drawing2d/linecap/_index.md b/chinese/java/com.aspose.drawing.drawing2d/linecap/_index.md new file mode 100644 index 000000000..78c277247 --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/linecap/_index.md @@ -0,0 +1,118 @@ +--- +title: LineCap +second_title: Aspose.Drawing for Java API 参考 +description: 指定 Pen 对象可用于结束线条的可用帽子样式。 +type: docs +weight: 29 +url: /zh/java/com.aspose.drawing.drawing2d/linecap/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class LineCap extends System.Enum +``` + +指定 Pen 对象可用于结束线条的可用帽子样式。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [Flat](#Flat) | 指定平坦的线帽。 | +| [Square](#Square) | 指定方形线帽。 | +| [Round](#Round) | 指定圆形线帽。 | +| [Triangle](#Triangle) | 指定三角形线帽。 | +| [NoAnchor](#NoAnchor) | 指定无锚点。 | +| [SquareAnchor](#SquareAnchor) | 指定方形锚点线帽。 | +| [RoundAnchor](#RoundAnchor) | 指定圆形锚点帽。 | +| [DiamondAnchor](#DiamondAnchor) | 指定菱形锚点帽。 | +| [ArrowAnchor](#ArrowAnchor) | 指定箭头形锚点帽。 | +| [Custom](#Custom) | 指定自定义线帽。 | +| [AnchorMask](#AnchorMask) | 指定用于检查线帽是否为锚点帽的掩码。 | +### Flat {#Flat} +``` +public static final int Flat +``` + + +指定平坦的线帽。 + +### Square {#Square} +``` +public static final int Square +``` + + +指定方形线帽。 + +### Round {#Round} +``` +public static final int Round +``` + + +指定圆形线帽。 + +### Triangle {#Triangle} +``` +public static final int Triangle +``` + + +指定三角形线帽。 + +### NoAnchor {#NoAnchor} +``` +public static final int NoAnchor +``` + + +指定无锚点。 + +### SquareAnchor {#SquareAnchor} +``` +public static final int SquareAnchor +``` + + +指定方形锚点线帽。 + +### RoundAnchor {#RoundAnchor} +``` +public static final int RoundAnchor +``` + + +指定圆形锚点帽。 + +### DiamondAnchor {#DiamondAnchor} +``` +public static final int DiamondAnchor +``` + + +指定菱形锚点帽。 + +### ArrowAnchor {#ArrowAnchor} +``` +public static final int ArrowAnchor +``` + + +指定箭头形锚点帽。 + +### Custom {#Custom} +``` +public static final int Custom +``` + + +指定自定义线帽。 + +### AnchorMask {#AnchorMask} +``` +public static final int AnchorMask +``` + + +指定用于检查线帽是否为锚点帽的掩码。 + diff --git a/chinese/java/com.aspose.drawing.drawing2d/linejoin/_index.md b/chinese/java/com.aspose.drawing.drawing2d/linejoin/_index.md new file mode 100644 index 000000000..e9e28536c --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/linejoin/_index.md @@ -0,0 +1,59 @@ +--- +title: LineJoin +second_title: Aspose.Drawing for Java API 参考 +description: 指定如何在 GraphicsPath 对象中包含的图形子路径的连续直线或曲线段之间进行连接。 +type: docs +weight: 30 +url: /zh/java/com.aspose.drawing.drawing2d/linejoin/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class LineJoin extends System.Enum +``` + +指定如何在 GraphicsPath 对象中包含的图形(子路径)中连接连续的直线或曲线段。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [Miter](#Miter) | 指定斜接连接。 | +| [Bevel](#Bevel) | 指定斜角连接。 | +| [Round](#Round) | 指定圆形连接。 | +| [MiterClipped](#MiterClipped) | 指定斜接连接。 | +### Miter {#Miter} +``` +public static final int Miter +``` + + +指定斜接连接。这会产生锐角或被裁剪的角,取决于斜接长度是否超过斜接限制。 + +-------------------- + +目前,斜接连接实际上表现为 MiterClipped。 + +### Bevel {#Bevel} +``` +public static final int Bevel +``` + + +指定斜角连接。这会产生对角角。 + +### Round {#Round} +``` +public static final int Round +``` + + +指定圆形连接。这会在直线之间产生平滑的圆弧。 + +### MiterClipped {#MiterClipped} +``` +public static final int MiterClipped +``` + + +指定斜接连接。这会产生锐角或斜角,取决于斜接长度是否超过斜接限制。 + diff --git a/chinese/java/com.aspose.drawing.drawing2d/matrix/_index.md b/chinese/java/com.aspose.drawing.drawing2d/matrix/_index.md new file mode 100644 index 000000000..7a924b553 --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/matrix/_index.md @@ -0,0 +1,416 @@ +--- +title: Matrix +second_title: Aspose.Drawing for Java API 参考 +description: 封装表示几何变换的 3×3 仿射矩阵。 +type: docs +weight: 33 +url: /zh/java/com.aspose.drawing.drawing2d/matrix/ +--- +**Inheritance:** +java.lang.Object + +**All Implemented Interfaces:** +com.aspose.ms.System.IDisposable +``` +public final class Matrix implements System.IDisposable +``` + +封装一个 3×3 仿射矩阵,表示几何变换。此类不可被继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [Matrix()](#Matrix--) | 初始化 Matrix 类的新实例为单位矩阵。 | +| [Matrix(float m11, float m12, float m21, float m22, float dx, float dy)](#Matrix-float-float-float-float-float-float-) | 使用指定的元素初始化 Matrix 类的新实例。 | +| [Matrix(Rectangle rect, Point[] plgpts)](#Matrix-com.aspose.drawing.Rectangle-com.aspose.drawing.Point---) | 将 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 类初始化为由指定矩形和点数组定义的几何变换的新实例。 | +| [Matrix(RectangleF rect, PointF[] plgpts)](#Matrix-com.aspose.drawing.RectangleF-com.aspose.drawing.PointF---) | 将 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 类初始化为由指定矩形和点数组定义的几何变换的新实例。 | +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [IdentityTransform](#IdentityTransform) | | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getElements()](#getElements--) | 获取表示此 Matrix 元素的浮点值数组。 | +| [isIdentity()](#isIdentity--) | 获取一个值,指示此 Matrix 是否为单位矩阵。 | +| [isInvertible()](#isInvertible--) | 获取一个值,指示此 Matrix 是否可逆。 | +| [getOffsetX()](#getOffsetX--) | 获取此 Matrix 的 x 平移值(dx 值,或第三行第一列的元素)。 | +| [getOffsetY()](#getOffsetY--) | 获取此 Matrix 的 y 平移值(`dy` 值,或第三行第二列的元素)。 | +| [dispose()](#dispose--) | 释放此 Matrix 使用的所有资源。 | +| [deepClone()](#deepClone--) | 创建此 Matrix 的精确副本。 | +| [invert()](#invert--) | 如果可逆,则对该 Matrix 进行求逆。 | +| [translate(float offsetX, float offsetY)](#translate-float-float-) | 通过在前面添加平移向量,将指定的平移向量(offsetX 和 offsetY)应用于此 Matrix。 | +| [translate(float offsetX, float offsetY, int order)](#translate-float-float-int-) | 按照指定顺序将指定的平移向量应用于此 Matrix。 | +| [transformVectors(PointF[] pts)](#transformVectors-com.aspose.drawing.PointF---) | 将数组中的每个向量乘以此 Matrix。 | +| [scale(float scaleX, float scaleY)](#scale-float-float-) | 通过在前面添加缩放向量,将指定的缩放向量应用于此 Matrix。 | +| [scale(float scaleX, float scaleY, int order)](#scale-float-float-int-) | 使用指定顺序,将指定的缩放向量(scaleX 和 scaleY)应用于此 Matrix。 | +| [shear(float shearX, float shearY)](#shear-float-float-) | 通过在前面添加剪切变换,将指定的剪切向量应用于此 Matrix。 | +| [shear(float shearX, float shearY, int order)](#shear-float-float-int-) | 按照指定顺序将指定的剪切向量应用于此 Matrix。 | +| [rotateAt(float angle, PointF point)](#rotateAt-float-com.aspose.drawing.PointF-) | 围绕 point 参数指定的点,通过在前面添加旋转,将顺时针旋转应用于此 Matrix。 | +| [rotateAt(float angle, PointF point, int order)](#rotateAt-float-com.aspose.drawing.PointF-int-) | 按照指定顺序围绕指定点将顺时针旋转应用于此 Matrix。 | +| [transformPoints(PointF[] pts)](#transformPoints-com.aspose.drawing.PointF---) | 将此 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 表示的几何变换应用于指定的点数组。 | +| [transformPoints(Point[] pts)](#transformPoints-com.aspose.drawing.Point---) | 将此 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 表示的几何变换应用于指定的点数组。 | +| [multiply(Matrix matrix)](#multiply-com.aspose.drawing.drawing2d.Matrix-) | 通过在前面添加指定的 [Matrix](../../com.aspose.drawing.drawing2d/matrix),将此 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 与 `matrix` 参数中指定的矩阵相乘。 | +| [multiply(Matrix matrix, int order)](#multiply-com.aspose.drawing.drawing2d.Matrix-int-) | 将此 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 与 `matrix` 参数中指定的矩阵相乘,并按照 `order` 参数中指定的顺序进行。 | +| [rotate(float angle)](#rotate-float-) | 在此 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 前添加一个围绕原点、按指定角度的顺时针旋转。 | +| [rotate(float angle, int order)](#rotate-float-int-) | 对该 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 围绕原点(零 x 和 y 坐标)进行一个角度参数指定的顺时针旋转。 | +| [reset()](#reset--) | 将此 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 重置为单位矩阵的元素。 | +### Matrix() {#Matrix--} +``` +public Matrix() +``` + + +初始化 Matrix 类的新实例为单位矩阵。 + +### Matrix(float m11, float m12, float m21, float m22, float dx, float dy) {#Matrix-float-float-float-float-float-float-} +``` +public Matrix(float m11, float m12, float m21, float m22, float dx, float dy) +``` + + +使用指定的元素初始化 Matrix 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| m11 | 浮点数 | 新 Matrix 第一行第一列的值。 | +| m12 | 浮点数 | 新 Matrix 第一行第二列的值。 | +| m21 | 浮点数 | 新矩阵第二行第一列的值。 | +| m22 | 浮点数 | 新矩阵第二行第二列的值。 | +| dx | 浮点数 | 新矩阵第三行第一列的值。 | +| dy | 浮点数 | 新矩阵第三行第二列的值。 | + +### Matrix(Rectangle rect, Point[] plgpts) {#Matrix-com.aspose.drawing.Rectangle-com.aspose.drawing.Point---} +``` +public Matrix(Rectangle rect, Point[] plgpts) +``` + + +将 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 类初始化为由指定矩形和点数组定义的几何变换的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [Rectangle](../../com.aspose.drawing/rectangle) | 一个表示要转换的矩形的 [Rectangle](../../com.aspose.drawing/rectangle) 结构。 | +| plgpts | [Point\[\]](../../com.aspose.drawing/point) | 一个包含三个 [Point](../../com.aspose.drawing/point) 结构的数组,表示要将矩形的左上、右上和左下角转换到的平行四边形的三个点。平行四边形的右下角由前面三个角推断得到。 | + +### Matrix(RectangleF rect, PointF[] plgpts) {#Matrix-com.aspose.drawing.RectangleF-com.aspose.drawing.PointF---} +``` +public Matrix(RectangleF rect, PointF[] plgpts) +``` + + +将 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 类初始化为由指定矩形和点数组定义的几何变换的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [RectangleF](../../com.aspose.drawing/rectanglef) | 一个表示要转换的矩形的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构。 | +| plgpts | [PointF\[\]](../../com.aspose.drawing/pointf) | 一个包含三个 [PointF](../../com.aspose.drawing/pointf) 结构的数组,表示要将矩形的左上、右上和左下角转换到的平行四边形的三个点。平行四边形的右下角由前面三个角推断得到。 | + +### IdentityTransform {#IdentityTransform} +``` +public static final Matrix IdentityTransform +``` + + +### getElements() {#getElements--} +``` +public float[] getElements() +``` + + +获取表示此 Matrix 元素的浮点值数组。 + +**Returns:** +float[] - 表示此矩阵元素的浮点值数组。 +### isIdentity() {#isIdentity--} +``` +public boolean isIdentity() +``` + + +获取一个值,指示此 Matrix 是否为单位矩阵。 + +**Returns:** +boolean - 指示此矩阵是否为单位矩阵的值。 +### isInvertible() {#isInvertible--} +``` +public boolean isInvertible() +``` + + +获取一个值,指示此 Matrix 是否可逆。 + +**Returns:** +boolean - 指示此矩阵是否可逆的值。 +### getOffsetX() {#getOffsetX--} +``` +public float getOffsetX() +``` + + +获取此 Matrix 的 x 平移值(dx 值,或第三行第一列的元素)。 + +**Returns:** +float - 此矩阵的 x 平移值(dx 值,或第三行第一列的元素)。 +### getOffsetY() {#getOffsetY--} +``` +public float getOffsetY() +``` + + +获取此 Matrix 的 y 平移值(`dy` 值,或第三行第二列的元素)。 + +**Returns:** +float - 此矩阵的 y 平移值(`dy` 值,或第三行第二列的元素)。 +### dispose() {#dispose--} +``` +public void dispose() +``` + + +释放此 Matrix 使用的所有资源。 + +-------------------- + +此方法实际上不执行任何操作。它仅用于与 System.Drawing API 的兼容性。 + +### deepClone() {#deepClone--} +``` +public Matrix deepClone() +``` + + +创建此 Matrix 的精确副本。 + +**Returns:** +[Matrix](../../com.aspose.drawing.drawing2d/matrix) - The Matrix that this method creates. +### invert() {#invert--} +``` +public void invert() +``` + + +如果可逆,则对该 Matrix 进行求逆。 + +### translate(float offsetX, float offsetY) {#translate-float-float-} +``` +public void translate(float offsetX, float offsetY) +``` + + +通过在前面添加平移向量,将指定的平移向量(offsetX 和 offsetY)应用于此 Matrix。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| offsetX | 浮点数 | 用于平移此矩阵的 x 值。 | +| offsetY | 浮点数 | 用于平移此矩阵的 y 值。 | + +### translate(float offsetX, float offsetY, int order) {#translate-float-float-int-} +``` +public void translate(float offsetX, float offsetY, int order) +``` + + +按照指定顺序将指定的平移向量应用于此 Matrix。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| offsetX | 浮点数 | 用于平移此矩阵的 x 值。 | +| offsetY | 浮点数 | 用于平移此矩阵的 y 值。 | +| 顺序 | int | 一个指定平移在此矩阵上应用顺序(追加或预置)的 MatrixOrder。 | + +### transformVectors(PointF[] pts) {#transformVectors-com.aspose.drawing.PointF---} +``` +public void transformVectors(PointF[] pts) +``` + + +将数组中的每个向量乘以矩阵。此矩阵的平移元素(第三行)将被忽略。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| pts | [PointF\[\]](../../com.aspose.drawing/pointf) | 一个表示要转换的点的 [PointF](../../com.aspose.drawing/pointf) 结构数组。 | + +### scale(float scaleX, float scaleY) {#scale-float-float-} +``` +public void scale(float scaleX, float scaleY) +``` + + +通过在前面添加缩放向量,将指定的缩放向量应用于此 Matrix。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| scaleX | 浮点数 | 此矩阵在 x 轴方向上的缩放值。 | +| scaleY | 浮点数 | 在 y 轴方向上缩放此 Matrix 的值。 | + +### scale(float scaleX, float scaleY, int order) {#scale-float-float-int-} +``` +public void scale(float scaleX, float scaleY, int order) +``` + + +使用指定顺序,将指定的缩放向量(scaleX 和 scaleY)应用于此 Matrix。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| scaleX | 浮点数 | 此矩阵在 x 轴方向上的缩放值。 | +| scaleY | 浮点数 | 在 y 轴方向上缩放此 Matrix 的值。 | +| 顺序 | int | 一个 MatrixOrder,指定将缩放向量应用于此 Matrix 的顺序(追加或预置)。 | + +### shear(float shearX, float shearY) {#shear-float-float-} +``` +public void shear(float shearX, float shearY) +``` + + +通过在前面添加剪切变换,将指定的剪切向量应用于此 Matrix。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| shearX | 浮点数 | 水平剪切因子。 | +| shearY | 浮点数 | 垂直剪切因子。 | + +### shear(float shearX, float shearY, int order) {#shear-float-float-int-} +``` +public void shear(float shearX, float shearY, int order) +``` + + +按照指定顺序将指定的剪切向量应用于此 Matrix。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| shearX | 浮点数 | 水平剪切因子。 | +| shearY | 浮点数 | 垂直剪切因子。 | +| 顺序 | int | 一个 MatrixOrder,指定剪切的应用顺序(追加或预置)。 | + +### rotateAt(float angle, PointF point) {#rotateAt-float-com.aspose.drawing.PointF-} +``` +public void rotateAt(float angle, PointF point) +``` + + +围绕 point 参数指定的点,通过在前面添加旋转,将顺时针旋转应用于此 Matrix。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 角度 | 浮点数 | 旋转的角度(幅度),单位为度。 | +| point | [PointF](../../com.aspose.drawing/pointf) | 一个 PointF,表示旋转的中心。 | + +### rotateAt(float angle, PointF point, int order) {#rotateAt-float-com.aspose.drawing.PointF-int-} +``` +public void rotateAt(float angle, PointF point, int order) +``` + + +按照指定顺序围绕指定点将顺时针旋转应用于此 Matrix。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 角度 | 浮点数 | 旋转的角度,单位为度。 | +| point | [PointF](../../com.aspose.drawing/pointf) | 一个 PointF,表示旋转的中心。 | +| 顺序 | int | 一个 MatrixOrder,指定旋转的应用顺序(追加或预置)。 | + +### transformPoints(PointF[] pts) {#transformPoints-com.aspose.drawing.PointF---} +``` +public void transformPoints(PointF[] pts) +``` + + +将此 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 表示的几何变换应用于指定的点数组。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| pts | [PointF\[\]](../../com.aspose.drawing/pointf) | 一个表示要转换的点的 [PointF](../../com.aspose.drawing/pointf) 结构数组。 | + +### transformPoints(Point[] pts) {#transformPoints-com.aspose.drawing.Point---} +``` +public void transformPoints(Point[] pts) +``` + + +将此 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 表示的几何变换应用于指定的点数组。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| pts | [Point\[\]](../../com.aspose.drawing/point) | 一个由 [Point](../../com.aspose.drawing/point) 结构组成的数组,表示要转换的点。 | + +### multiply(Matrix matrix) {#multiply-com.aspose.drawing.drawing2d.Matrix-} +``` +public void multiply(Matrix matrix) +``` + + +通过在前面添加指定的 [Matrix](../../com.aspose.drawing.drawing2d/matrix),将此 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 与 `matrix` 参数中指定的矩阵相乘。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| matrix | [Matrix](../../com.aspose.drawing.drawing2d/matrix) | 用于将此 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 相乘的 [Matrix](../../com.aspose.drawing.drawing2d/matrix)。 | + +### multiply(Matrix matrix, int order) {#multiply-com.aspose.drawing.drawing2d.Matrix-int-} +``` +public void multiply(Matrix matrix, int order) +``` + + +将此 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 与 `matrix` 参数中指定的矩阵相乘,并按照 `order` 参数中指定的顺序进行。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| matrix | [Matrix](../../com.aspose.drawing.drawing2d/matrix) | 用于将此 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 相乘的 [Matrix](../../com.aspose.drawing.drawing2d/matrix)。 | +| order | int | 表示乘法顺序的 [MatrixOrder](../../com.aspose.drawing.drawing2d/matrixorder)。 | + +### rotate(float angle) {#rotate-float-} +``` +public void rotate(float angle) +``` + + +在此 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 前添加一个围绕原点、按指定角度的顺时针旋转。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 角度 | 浮点数 | 旋转的角度,单位为度。 | + +### rotate(float angle, int order) {#rotate-float-int-} +``` +public void rotate(float angle, int order) +``` + + +对该 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 围绕原点(零 x 和 y 坐标)进行一个角度参数指定的顺时针旋转。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 角度 | 浮点数 | 旋转的角度,单位为度。 | +| order | int | 一个 [MatrixOrder](../../com.aspose.drawing.drawing2d/matrixorder),指定将旋转应用于此 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 的顺序(追加或预置)。 | + +### reset() {#reset--} +``` +public void reset() +``` + + +将此 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 重置为单位矩阵的元素。 + diff --git a/chinese/java/com.aspose.drawing.drawing2d/matrixorder/_index.md b/chinese/java/com.aspose.drawing.drawing2d/matrixorder/_index.md new file mode 100644 index 000000000..092d96864 --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/matrixorder/_index.md @@ -0,0 +1,37 @@ +--- +title: MatrixOrder +second_title: Aspose.Drawing for Java API 参考 +description: 指定矩阵变换操作的顺序。 +type: docs +weight: 34 +url: /zh/java/com.aspose.drawing.drawing2d/matrixorder/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class MatrixOrder extends System.Enum +``` + +指定矩阵变换操作的顺序。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [Prepend](#Prepend) | 新操作在旧操作之前应用。 | +| [Append](#Append) | 新操作在旧操作之后应用。 | +### Prepend {#Prepend} +``` +public static final int Prepend +``` + + +新操作在旧操作之前应用。 + +### Append {#Append} +``` +public static final int Append +``` + + +新操作在旧操作之后应用。 + diff --git a/chinese/java/com.aspose.drawing.drawing2d/pathdata/_index.md b/chinese/java/com.aspose.drawing.drawing2d/pathdata/_index.md new file mode 100644 index 000000000..cf2b10b9e --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/pathdata/_index.md @@ -0,0 +1,88 @@ +--- +title: PathData +second_title: Aspose.Drawing for Java API 参考 +description: 包含构成对象的图形数据。 +type: docs +weight: 35 +url: /zh/java/com.aspose.drawing.drawing2d/pathdata/ +--- +**Inheritance:** +java.lang.Object +``` +public final class PathData +``` + +包含构成 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 对象的图形数据。此类不可继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [PathData()](#PathData--) | | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getPoints()](#getPoints--) | 获取一个 [PointF](../../com.aspose.drawing/pointf) 结构数组,表示路径构建所经过的点。 | +| [setPoints(PointF[] value)](#setPoints-com.aspose.drawing.PointF---) | 设置一个 [PointF](../../com.aspose.drawing/pointf) 结构数组,表示路径构建所经过的点。 | +| [getTypes()](#getTypes--) | 获取路径中相应点的类型。 | +| [setTypes(byte[] value)](#setTypes-byte---) | 设置路径中相应点的类型。 | +### PathData() {#PathData--} +``` +public PathData() +``` + + +### getPoints() {#getPoints--} +``` +public PointF[] getPoints() +``` + + +获取一个 [PointF](../../com.aspose.drawing/pointf) 结构数组,表示路径构建所经过的点。 + +值:一个 [PointF](../../com.aspose.drawing/pointf) 对象数组,表示路径构建所经过的点。 + +**Returns:** +com.aspose.drawing.PointF[] - 一个 [PointF](../../com.aspose.drawing/pointf) 结构数组,表示路径构建所经过的点。 +### setPoints(PointF[] value) {#setPoints-com.aspose.drawing.PointF---} +``` +public void setPoints(PointF[] value) +``` + + +设置一个 [PointF](../../com.aspose.drawing/pointf) 结构数组,表示路径构建所经过的点。 + +值:一个 [PointF](../../com.aspose.drawing/pointf) 对象数组,表示路径构建所经过的点。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [PointF\[\]](../../com.aspose.drawing/pointf) | 一个 [PointF](../../com.aspose.drawing/pointf) 结构数组,表示路径构建所经过的点。 | + +### getTypes() {#getTypes--} +``` +public byte[] getTypes() +``` + + +获取路径中相应点的类型。 + +值:一个字节数组,指定路径中相应点的类型。 + +**Returns:** +byte[] - 路径中相应点的类型。 +### setTypes(byte[] value) {#setTypes-byte---} +``` +public void setTypes(byte[] value) +``` + + +设置路径中相应点的类型。 + +值:一个字节数组,指定路径中相应点的类型。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | byte[] | 路径中相应点的类型。 | + diff --git a/chinese/java/com.aspose.drawing.drawing2d/pathgradientbrush/_index.md b/chinese/java/com.aspose.drawing.drawing2d/pathgradientbrush/_index.md new file mode 100644 index 000000000..a09603d0f --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/pathgradientbrush/_index.md @@ -0,0 +1,504 @@ +--- +title: PathGradientBrush +second_title: Aspose.Drawing for Java API 参考 +description: 封装一个对象,以渐变填充另一个对象的内部。 +type: docs +weight: 36 +url: /zh/java/com.aspose.drawing.drawing2d/pathgradientbrush/ +--- +**Inheritance:** +java.lang.Object, [com.aspose.drawing.Brush](../../com.aspose.drawing/brush) +``` +public final class PathGradientBrush extends Brush +``` + +封装一个 [Brush](../../com.aspose.drawing/brush) 对象,以渐变填充 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 对象的内部。此类不可被继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [PathGradientBrush(PointF[] points)](#PathGradientBrush-com.aspose.drawing.PointF---) | 使用指定的点初始化 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 类的新实例。 | +| [PathGradientBrush(PointF[] points, int wrapMode)](#PathGradientBrush-com.aspose.drawing.PointF---int-) | 使用指定的点和包装模式初始化 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 类的新实例。 | +| [PathGradientBrush(Point[] points)](#PathGradientBrush-com.aspose.drawing.Point---) | 使用指定的点初始化 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 类的新实例。 | +| [PathGradientBrush(Point[] points, int wrapMode)](#PathGradientBrush-com.aspose.drawing.Point---int-) | 使用指定的点和包装模式初始化 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 类的新实例。 | +| [PathGradientBrush(GraphicsPath path)](#PathGradientBrush-com.aspose.drawing.drawing2d.GraphicsPath-) | 使用指定的路径初始化 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 类的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getCenterColor()](#getCenterColor--) | 获取或设置路径渐变中心的颜色。 | +| [setCenterColor(Color value)](#setCenterColor-com.aspose.drawing.Color-) | 获取或设置路径渐变中心的颜色。 | +| [getSurroundColors()](#getSurroundColors--) | 获取或设置与此 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 填充的路径中的点对应的颜色数组。 | +| [setSurroundColors(Color[] value)](#setSurroundColors-com.aspose.drawing.Color---) | 获取或设置与此 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 填充的路径中的点对应的颜色数组。 | +| [getCenterPoint()](#getCenterPoint--) | 获取或设置路径渐变的中心点。 | +| [setCenterPoint(PointF value)](#setCenterPoint-com.aspose.drawing.PointF-) | 获取或设置路径渐变的中心点。 | +| [getRectangle()](#getRectangle--) | 获取此 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 的边界矩形。 | +| [getBlend()](#getBlend--) | 获取或设置一个 `Blend`([.getBlend](../../null/\#getBlend)/[.setBlend(Blend)](../../null/\#setBlend-Blend-)),它指定用于定义渐变自定义衰减的位置信息和因子。 | +| [setBlend(Blend value)](#setBlend-com.aspose.drawing.drawing2d.Blend-) | 获取或设置一个 `Blend`([.getBlend](../../null/\#getBlend)/[.setBlend(Blend)](../../null/\#setBlend-Blend-)),它指定用于定义渐变自定义衰减的位置信息和因子。 | +| [getInterpolationColors()](#getInterpolationColors--) | 获取或设置一个 [ColorBlend](../../com.aspose.drawing.drawing2d/colorblend),它定义多颜色线性渐变。 | +| [setInterpolationColors(ColorBlend value)](#setInterpolationColors-com.aspose.drawing.drawing2d.ColorBlend-) | 获取或设置一个 [ColorBlend](../../com.aspose.drawing.drawing2d/colorblend),它定义多颜色线性渐变。 | +| [getTransform()](#getTransform--) | 获取或设置定义此 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 本地几何变换的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 的副本。 | +| [setTransform(Matrix value)](#setTransform-com.aspose.drawing.drawing2d.Matrix-) | 获取或设置定义此 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 本地几何变换的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 的副本。 | +| [getFocusScales()](#getFocusScales--) | 获取或设置渐变衰减的焦点。 | +| [setFocusScales(PointF value)](#setFocusScales-com.aspose.drawing.PointF-) | 获取或设置渐变衰减的焦点。 | +| [getWrapMode()](#getWrapMode--) | 获取或设置一个 `WrapMode`([.getWrapMode](../../null/\#getWrapMode)/[.setWrapMode(int)](../../null/\#setWrapMode-int-)),指示此 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 的包装模式。 | +| [setWrapMode(int value)](#setWrapMode-int-) | 获取或设置一个 `WrapMode`([.getWrapMode](../../null/\#getWrapMode)/[.setWrapMode(int)](../../null/\#setWrapMode-int-)),指示此 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 的包装模式。 | +| [deepClone()](#deepClone--) | 创建此 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 的精确副本。 | +| [setSigmaBellShape(float focus)](#setSigmaBellShape-float-) | 创建一种渐变画刷,使颜色从路径中心向外变化至路径边界。 | +| [setSigmaBellShape(float focus, float scale)](#setSigmaBellShape-float-float-) | 创建一种渐变画刷,使颜色从路径中心向外变化至路径边界。 | +| [setBlendTriangularShape(float focus)](#setBlendTriangularShape-float-) | 创建一种渐变,以中心颜色和线性衰减至一种周围颜色。 | +| [setBlendTriangularShape(float focus, float scale)](#setBlendTriangularShape-float-float-) | 创建一个以中心颜色为起点、向每个周围颜色线性衰减的渐变。 | +| [resetTransform()](#resetTransform--) | 将 `PathGradientBrush.Transform` 属性重置为单位矩阵。 | +| [multiplyTransform(Matrix matrix)](#multiplyTransform-com.aspose.drawing.drawing2d.Matrix-) | 使用刷子的变换矩阵乘以另一个矩阵的乘积来更新刷子的变换矩阵。 | +| [multiplyTransform(Matrix matrix, int order)](#multiplyTransform-com.aspose.drawing.drawing2d.Matrix-int-) | 使用刷子的变换矩阵乘以另一个矩阵的乘积来更新刷子的变换矩阵。 | +| [translateTransform(float dx, float dy)](#translateTransform-float-float-) | 将指定的平移应用于局部几何变换。 | +| [translateTransform(float dx, float dy, int order)](#translateTransform-float-float-int-) | 按指定顺序将指定的平移应用于局部几何变换。 | +| [scaleTransform(float sx, float sy)](#scaleTransform-float-float-) | 按指定的量缩放局部几何变换。 | +| [scaleTransform(float sx, float sy, int order)](#scaleTransform-float-float-int-) | 按指定的顺序,以指定的量缩放局部几何变换。 | +| [rotateTransform(float angle)](#rotateTransform-float-) | 按指定的角度旋转局部几何变换。 | +| [rotateTransform(float angle, int order)](#rotateTransform-float-int-) | 按指定的顺序,以指定的角度旋转局部几何变换。 | +### PathGradientBrush(PointF[] points) {#PathGradientBrush-com.aspose.drawing.PointF---} +``` +public PathGradientBrush(PointF[] points) +``` + + +使用指定的点初始化 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| points | [PointF\[\]](../../com.aspose.drawing/pointf) | 一个由 [PointF](../../com.aspose.drawing/pointf) 结构组成的数组,表示构成路径顶点的点。 | + +### PathGradientBrush(PointF[] points, int wrapMode) {#PathGradientBrush-com.aspose.drawing.PointF---int-} +``` +public PathGradientBrush(PointF[] points, int wrapMode) +``` + + +使用指定的点和包装模式初始化 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| points | [PointF\[\]](../../com.aspose.drawing/pointf) | 一个由 [PointF](../../com.aspose.drawing/pointf) 结构组成的数组,表示构成路径顶点的点。 | +| wrapMode | int | 一个 `WrapMode`([.getWrapMode](../../null/\#getWrapMode)/[.setWrapMode(int)](../../null/\#setWrapMode-int-))用于指定使用此 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 绘制的填充如何平铺。 | + +### PathGradientBrush(Point[] points) {#PathGradientBrush-com.aspose.drawing.Point---} +``` +public PathGradientBrush(Point[] points) +``` + + +使用指定的点初始化 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| points | [Point\[\]](../../com.aspose.drawing/point) | 一个由 [Point](../../com.aspose.drawing/point) 结构组成的数组,表示构成路径顶点的点。 | + +### PathGradientBrush(Point[] points, int wrapMode) {#PathGradientBrush-com.aspose.drawing.Point---int-} +``` +public PathGradientBrush(Point[] points, int wrapMode) +``` + + +使用指定的点和包装模式初始化 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| points | [Point\[\]](../../com.aspose.drawing/point) | 一个由 [Point](../../com.aspose.drawing/point) 结构组成的数组,表示构成路径顶点的点。 | +| wrapMode | int | 一个 `WrapMode`([.getWrapMode](../../null/\#getWrapMode)/[.setWrapMode(int)](../../null/\#setWrapMode-int-))用于指定使用此 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 绘制的填充如何平铺。 | + +### PathGradientBrush(GraphicsPath path) {#PathGradientBrush-com.aspose.drawing.drawing2d.GraphicsPath-} +``` +public PathGradientBrush(GraphicsPath path) +``` + + +使用指定的路径初始化 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| path | [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) | 定义此 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 所填充区域的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath)。 | + +### getCenterColor() {#getCenterColor--} +``` +public Color getCenterColor() +``` + + +获取或设置路径渐变中心的颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) +### setCenterColor(Color value) {#setCenterColor-com.aspose.drawing.Color-} +``` +public void setCenterColor(Color value) +``` + + +获取或设置路径渐变中心的颜色。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [Color](../../com.aspose.drawing/color) | | + +### getSurroundColors() {#getSurroundColors--} +``` +public Color[] getSurroundColors() +``` + + +获取或设置与此 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 填充的路径中的点对应的颜色数组。 + +**Returns:** +com.aspose.drawing.Color[] +### setSurroundColors(Color[] value) {#setSurroundColors-com.aspose.drawing.Color---} +``` +public void setSurroundColors(Color[] value) +``` + + +获取或设置与此 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 填充的路径中的点对应的颜色数组。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [Color\[\]](../../com.aspose.drawing/color) | | + +### getCenterPoint() {#getCenterPoint--} +``` +public PointF getCenterPoint() +``` + + +获取或设置路径渐变的中心点。 + +**Returns:** +[PointF](../../com.aspose.drawing/pointf) +### setCenterPoint(PointF value) {#setCenterPoint-com.aspose.drawing.PointF-} +``` +public void setCenterPoint(PointF value) +``` + + +获取或设置路径渐变的中心点。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [PointF](../../com.aspose.drawing/pointf) | | + +### getRectangle() {#getRectangle--} +``` +public RectangleF getRectangle() +``` + + +获取此 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 的边界矩形。 + +**Returns:** +[RectangleF](../../com.aspose.drawing/rectanglef) +### getBlend() {#getBlend--} +``` +public Blend getBlend() +``` + + +获取或设置一个 `Blend`([.getBlend](../../null/\#getBlend)/[.setBlend(Blend)](../../null/\#setBlend-Blend-)),它指定用于定义渐变自定义衰减的位置信息和因子。 + +**Returns:** +[Blend](../../com.aspose.drawing.drawing2d/blend) +### setBlend(Blend value) {#setBlend-com.aspose.drawing.drawing2d.Blend-} +``` +public void setBlend(Blend value) +``` + + +获取或设置一个 `Blend`([.getBlend](../../null/\#getBlend)/[.setBlend(Blend)](../../null/\#setBlend-Blend-)),它指定用于定义渐变自定义衰减的位置信息和因子。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [Blend](../../com.aspose.drawing.drawing2d/blend) | | + +### getInterpolationColors() {#getInterpolationColors--} +``` +public ColorBlend getInterpolationColors() +``` + + +获取或设置一个 [ColorBlend](../../com.aspose.drawing.drawing2d/colorblend),它定义多颜色线性渐变。 + +**Returns:** +[ColorBlend](../../com.aspose.drawing.drawing2d/colorblend) +### setInterpolationColors(ColorBlend value) {#setInterpolationColors-com.aspose.drawing.drawing2d.ColorBlend-} +``` +public void setInterpolationColors(ColorBlend value) +``` + + +获取或设置一个 [ColorBlend](../../com.aspose.drawing.drawing2d/colorblend),它定义多颜色线性渐变。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [ColorBlend](../../com.aspose.drawing.drawing2d/colorblend) | | + +### getTransform() {#getTransform--} +``` +public Matrix getTransform() +``` + + +获取或设置定义此 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 本地几何变换的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 的副本。 + +**Returns:** +[Matrix](../../com.aspose.drawing.drawing2d/matrix) +### setTransform(Matrix value) {#setTransform-com.aspose.drawing.drawing2d.Matrix-} +``` +public void setTransform(Matrix value) +``` + + +获取或设置定义此 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 本地几何变换的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 的副本。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [Matrix](../../com.aspose.drawing.drawing2d/matrix) | | + +### getFocusScales() {#getFocusScales--} +``` +public PointF getFocusScales() +``` + + +获取或设置渐变衰减的焦点。 + +**Returns:** +[PointF](../../com.aspose.drawing/pointf) +### setFocusScales(PointF value) {#setFocusScales-com.aspose.drawing.PointF-} +``` +public void setFocusScales(PointF value) +``` + + +获取或设置渐变衰减的焦点。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [PointF](../../com.aspose.drawing/pointf) | | + +### getWrapMode() {#getWrapMode--} +``` +public int getWrapMode() +``` + + +获取或设置一个 `WrapMode`([.getWrapMode](../../null/\#getWrapMode)/[.setWrapMode(int)](../../null/\#setWrapMode-int-)),指示此 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 的包装模式。 + +**Returns:** +int +### setWrapMode(int value) {#setWrapMode-int-} +``` +public void setWrapMode(int value) +``` + + +获取或设置一个 `WrapMode`([.getWrapMode](../../null/\#getWrapMode)/[.setWrapMode(int)](../../null/\#setWrapMode-int-)),指示此 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 的包装模式。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | | + +### deepClone() {#deepClone--} +``` +public Object deepClone() +``` + + +创建此 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush) 的精确副本。 + +**Returns:** +java.lang.Object - 此方法创建的 [PathGradientBrush](../../com.aspose.drawing.drawing2d/pathgradientbrush),作为对象进行强制转换。 +### setSigmaBellShape(float focus) {#setSigmaBellShape-float-} +``` +public void setSigmaBellShape(float focus) +``` + + +创建一种渐变画刷,从路径中心向路径边界逐渐改变颜色。颜色之间的过渡基于钟形曲线。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 焦点 | 浮点数 | 一个介于 0 到 1 之间的值,指定沿从路径中心到路径边界的任意径向,中心颜色达到最高强度的位置。值为 1(默认)时,最高强度位于路径中心。 | + +### setSigmaBellShape(float focus, float scale) {#setSigmaBellShape-float-float-} +``` +public void setSigmaBellShape(float focus, float scale) +``` + + +创建一种渐变画刷,从路径中心向路径边界逐渐改变颜色。颜色之间的过渡基于钟形曲线。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 焦点 | 浮点数 | 一个介于 0 到 1 之间的值,指定沿从路径中心到路径边界的任意径向,中心颜色达到最高强度的位置。值为 1(默认)时,最高强度位于路径中心。 | +| 比例 | 浮点数 | 一个介于 0 到 1 之间的值,指定中心颜色与边界颜色混合时的最大强度。值为 1 时会产生中心颜色的最高可能强度,这是默认值。 | + +### setBlendTriangularShape(float focus) {#setBlendTriangularShape-float-} +``` +public void setBlendTriangularShape(float focus) +``` + + +创建一种渐变,以中心颜色和线性衰减至一种周围颜色。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 焦点 | 浮点数 | 一个介于 0 到 1 之间的值,指定沿从路径中心到路径边界的任意径向,中心颜色达到最高强度的位置。值为 1(默认)时,最高强度位于路径中心。 | + +### setBlendTriangularShape(float focus, float scale) {#setBlendTriangularShape-float-float-} +``` +public void setBlendTriangularShape(float focus, float scale) +``` + + +创建一个以中心颜色为起点、向每个周围颜色线性衰减的渐变。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 焦点 | 浮点数 | 一个介于 0 到 1 之间的值,指定沿从路径中心到路径边界的任意径向,中心颜色达到最高强度的位置。值为 1(默认)时,最高强度位于路径中心。 | +| 比例 | 浮点数 | 一个介于 0 到 1 之间的值,指定中心颜色与边界颜色混合时的最大强度。值为 1 时会产生中心颜色的最高可能强度,这是默认值。 | + +### resetTransform() {#resetTransform--} +``` +public void resetTransform() +``` + + +将 `PathGradientBrush.Transform` 属性重置为单位矩阵。 + +### multiplyTransform(Matrix matrix) {#multiplyTransform-com.aspose.drawing.drawing2d.Matrix-} +``` +public void multiplyTransform(Matrix matrix) +``` + + +使用刷子的变换矩阵乘以另一个矩阵的乘积来更新刷子的变换矩阵。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| matrix | [Matrix](../../com.aspose.drawing.drawing2d/matrix) | 将与刷子当前变换矩阵相乘的 [Matrix](../../com.aspose.drawing.drawing2d/matrix)。 | + +### multiplyTransform(Matrix matrix, int order) {#multiplyTransform-com.aspose.drawing.drawing2d.Matrix-int-} +``` +public void multiplyTransform(Matrix matrix, int order) +``` + + +使用刷子的变换矩阵乘以另一个矩阵的乘积来更新刷子的变换矩阵。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| matrix | [Matrix](../../com.aspose.drawing.drawing2d/matrix) | 将与刷子当前变换矩阵相乘的 [Matrix](../../com.aspose.drawing.drawing2d/matrix)。 | +| order | int | 指定两个矩阵相乘顺序的 [MatrixOrder](../../com.aspose.drawing.drawing2d/matrixorder)。 | + +### translateTransform(float dx, float dy) {#translateTransform-float-float-} +``` +public void translateTransform(float dx, float dy) +``` + + +将指定的平移应用于局部几何变换。此方法将在变换前置平移。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| dx | 浮点数 | x 方向的平移值。 | +| dy | 浮点数 | y 方向的平移值。 | + +### translateTransform(float dx, float dy, int order) {#translateTransform-float-float-int-} +``` +public void translateTransform(float dx, float dy, int order) +``` + + +按指定顺序将指定的平移应用于局部几何变换。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| dx | 浮点数 | x 方向的平移值。 | +| dy | 浮点数 | y 方向的平移值。 | +| 顺序 | int | 应用平移的顺序(预先或追加)。 | + +### scaleTransform(float sx, float sy) {#scaleTransform-float-float-} +``` +public void scaleTransform(float sx, float sy) +``` + + +按指定的量缩放本地几何变换。此方法将缩放矩阵预先添加到变换中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| sx | 浮点数 | X 轴方向的变换缩放因子。 | +| sy | 浮点数 | Y 轴方向的变换缩放因子。 | + +### scaleTransform(float sx, float sy, int order) {#scaleTransform-float-float-int-} +``` +public void scaleTransform(float sx, float sy, int order) +``` + + +按指定的顺序,以指定的量缩放局部几何变换。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| sx | 浮点数 | X 轴方向的变换缩放因子。 | +| sy | 浮点数 | Y 轴方向的变换缩放因子。 | +| order | int | 一个 [MatrixOrder](../../com.aspose.drawing.drawing2d/matrixorder),用于指定是追加还是预置缩放矩阵。 | + +### rotateTransform(float angle) {#rotateTransform-float-} +``` +public void rotateTransform(float angle) +``` + + +按指定的量旋转本地几何变换。此方法将旋转矩阵预先添加到变换中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 角度 | 浮点数 | 旋转的角度(范围)。 | + +### rotateTransform(float angle, int order) {#rotateTransform-float-int-} +``` +public void rotateTransform(float angle, int order) +``` + + +按指定的顺序,以指定的角度旋转局部几何变换。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 角度 | 浮点数 | 旋转的角度(范围)。 | +| order | int | 一个 [MatrixOrder](../../com.aspose.drawing.drawing2d/matrixorder),用于指定是追加还是预置旋转矩阵。 | + diff --git a/chinese/java/com.aspose.drawing.drawing2d/penalignment/_index.md b/chinese/java/com.aspose.drawing.drawing2d/penalignment/_index.md new file mode 100644 index 000000000..d2e068300 --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/penalignment/_index.md @@ -0,0 +1,64 @@ +--- +title: PenAlignment +second_title: Aspose.Drawing for Java API 参考 +description: 指定对象相对于理论零宽线的对齐方式。 +type: docs +weight: 38 +url: /zh/java/com.aspose.drawing.drawing2d/penalignment/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class PenAlignment extends System.Enum +``` + +指定 [Pen](../../com.aspose.drawing/pen) 对象相对于理论零宽线的对齐方式。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [Center](#Center) | 指定 [Pen](../../com.aspose.drawing/pen) 对象居中于理论线之上。 | +| [Inset](#Inset) | 指定 [Pen](../../com.aspose.drawing/pen) 位于理论线的内部。 | +| [Outset](#Outset) | 指定 [Pen](../../com.aspose.drawing/pen) 位于理论线的外部。 | +| [Left](#Left) | 指定 [Pen](../../com.aspose.drawing/pen) 位于理论线的左侧。 | +| [Right](#Right) | 指定 [Pen](../../com.aspose.drawing/pen) 位于理论线的右侧。 | +### Center {#Center} +``` +public static final int Center +``` + + +指定 [Pen](../../com.aspose.drawing/pen) 对象居中于理论线之上。 + +### Inset {#Inset} +``` +public static final int Inset +``` + + +指定 [Pen](../../com.aspose.drawing/pen) 位于理论线的内部。 + +### Outset {#Outset} +``` +public static final int Outset +``` + + +指定 [Pen](../../com.aspose.drawing/pen) 位于理论线的外部。 + +### Left {#Left} +``` +public static final int Left +``` + + +指定 [Pen](../../com.aspose.drawing/pen) 位于理论线的左侧。 + +### Right {#Right} +``` +public static final int Right +``` + + +指定 [Pen](../../com.aspose.drawing/pen) 位于理论线的右侧。 + diff --git a/chinese/java/com.aspose.drawing.drawing2d/pentype/_index.md b/chinese/java/com.aspose.drawing.drawing2d/pentype/_index.md new file mode 100644 index 000000000..922e585f9 --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/pentype/_index.md @@ -0,0 +1,64 @@ +--- +title: PenType +second_title: Aspose.Drawing for Java API 参考 +description: 指定 Pen 对象用于填充线条的填充类型。 +type: docs +weight: 39 +url: /zh/java/com.aspose.drawing.drawing2d/pentype/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class PenType extends System.Enum +``` + +指定 Pen 对象用于填充线条的填充类型。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [SolidColor](#SolidColor) | 指定纯色填充。 | +| [HatchFill](#HatchFill) | 指定网格填充。 | +| [TextureFill](#TextureFill) | 指定位图纹理填充。 | +| [PathGradient](#PathGradient) | 指定路径渐变填充。 | +| [LinearGradient](#LinearGradient) | 指定线性渐变填充。 | +### SolidColor {#SolidColor} +``` +public static final int SolidColor +``` + + +指定纯色填充。 + +### HatchFill {#HatchFill} +``` +public static final int HatchFill +``` + + +指定网格填充。 + +### TextureFill {#TextureFill} +``` +public static final int TextureFill +``` + + +指定位图纹理填充。 + +### PathGradient {#PathGradient} +``` +public static final int PathGradient +``` + + +指定路径渐变填充。 + +### LinearGradient {#LinearGradient} +``` +public static final int LinearGradient +``` + + +指定线性渐变填充。 + diff --git a/chinese/java/com.aspose.drawing.drawing2d/pixeloffsetmode/_index.md b/chinese/java/com.aspose.drawing.drawing2d/pixeloffsetmode/_index.md new file mode 100644 index 000000000..a529c13b5 --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/pixeloffsetmode/_index.md @@ -0,0 +1,73 @@ +--- +title: PixelOffsetMode +second_title: Aspose.Drawing for Java API 参考 +description: 指定渲染过程中像素的偏移方式。 +type: docs +weight: 40 +url: /zh/java/com.aspose.drawing.drawing2d/pixeloffsetmode/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class PixelOffsetMode extends System.Enum +``` + +指定渲染过程中像素的偏移方式。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [Invalid](#Invalid) | 指定无效模式。 | +| [Default](#Default) | 指定默认模式。 | +| [HighSpeed](#HighSpeed) | 指定高速、低质量渲染。 | +| [HighQuality](#HighQuality) | 指定高质量、低速度渲染。 | +| [None](#None) | 指定无像素偏移。 | +| [Half](#Half) | 指定像素在水平和垂直方向上偏移 -0.5 单位,以实现高速抗锯齿。 | +### Invalid {#Invalid} +``` +public static final int Invalid +``` + + +指定无效模式。 + +### Default {#Default} +``` +public static final int Default +``` + + +指定默认模式。 + +### HighSpeed {#HighSpeed} +``` +public static final int HighSpeed +``` + + +指定高速、低质量渲染。 + +### HighQuality {#HighQuality} +``` +public static final int HighQuality +``` + + +指定高质量、低速度渲染。 + +### None {#None} +``` +public static final int None +``` + + +指定无像素偏移。 + +### Half {#Half} +``` +public static final int Half +``` + + +指定像素在水平和垂直方向上偏移 -0.5 单位,以实现高速抗锯齿。 + diff --git a/chinese/java/com.aspose.drawing.drawing2d/regiondata/_index.md b/chinese/java/com.aspose.drawing.drawing2d/regiondata/_index.md new file mode 100644 index 000000000..34604521b --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/regiondata/_index.md @@ -0,0 +1,44 @@ +--- +title: RegionData +second_title: Aspose.Drawing for Java API 参考 +description: 封装构成对象的数据。 +type: docs +weight: 41 +url: /zh/java/com.aspose.drawing.drawing2d/regiondata/ +--- +**Inheritance:** +java.lang.Object +``` +public final class RegionData +``` + +封装构成 [Region](../../com.aspose.drawing/region) 对象的数据。此类不可被继承。 +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getData()](#getData--) | 获取指定 [Region](../../com.aspose.drawing/region) 对象的字节数组。 | +| [setData(byte[] value)](#setData-byte---) | 设置一个字节数组,用于指定 [Region](../../com.aspose.drawing/region) 对象。 | +### getData() {#getData--} +``` +public byte[] getData() +``` + + +获取指定 [Region](../../com.aspose.drawing/region) 对象的字节数组。 + +**Returns:** +byte[] - 一个字节数组,用于指定 [Region](../../com.aspose.drawing/region) 对象。 +### setData(byte[] value) {#setData-byte---} +``` +public void setData(byte[] value) +``` + + +设置一个字节数组,用于指定 [Region](../../com.aspose.drawing/region) 对象。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | byte[] | 一个字节数组,用于指定 [Region](../../com.aspose.drawing/region) 对象。 | + diff --git a/chinese/java/com.aspose.drawing.drawing2d/smoothingmode/_index.md b/chinese/java/com.aspose.drawing.drawing2d/smoothingmode/_index.md new file mode 100644 index 000000000..df764ec95 --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/smoothingmode/_index.md @@ -0,0 +1,73 @@ +--- +title: SmoothingMode +second_title: Aspose.Drawing for Java API 参考 +description: 指定是否对直线、曲线以及填充区域的边缘应用平滑抗锯齿。 +type: docs +weight: 42 +url: /zh/java/com.aspose.drawing.drawing2d/smoothingmode/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class SmoothingMode extends System.Enum +``` + +指定是否对线条、曲线以及填充区域的边缘应用平滑(抗锯齿)。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [Invalid](#Invalid) | 指定无效模式。 | +| [Default](#Default) | 指定不使用抗锯齿。 | +| [HighSpeed](#HighSpeed) | 指定不使用抗锯齿。 | +| [HighQuality](#HighQuality) | 指定抗锯齿渲染。 | +| [None](#None) | 指定不使用抗锯齿。 | +| [AntiAlias](#AntiAlias) | 指定抗锯齿渲染。 | +### Invalid {#Invalid} +``` +public static final int Invalid +``` + + +指定无效模式。 + +### Default {#Default} +``` +public static final int Default +``` + + +指定不使用抗锯齿。 + +### HighSpeed {#HighSpeed} +``` +public static final int HighSpeed +``` + + +指定不使用抗锯齿。 + +### HighQuality {#HighQuality} +``` +public static final int HighQuality +``` + + +指定抗锯齿渲染。 + +### None {#None} +``` +public static final int None +``` + + +指定不使用抗锯齿。 + +### AntiAlias {#AntiAlias} +``` +public static final int AntiAlias +``` + + +指定抗锯齿渲染。 + diff --git a/chinese/java/com.aspose.drawing.drawing2d/warpmode/_index.md b/chinese/java/com.aspose.drawing.drawing2d/warpmode/_index.md new file mode 100644 index 000000000..d7d0efcbb --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/warpmode/_index.md @@ -0,0 +1,37 @@ +--- +title: WarpMode +second_title: Aspose.Drawing for Java API 参考 +description: 指定在 Warp 方法中应用的扭曲变换类型。 +type: docs +weight: 43 +url: /zh/java/com.aspose.drawing.drawing2d/warpmode/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class WarpMode extends System.Enum +``` + +指定在 `Warp` 方法中应用的扭曲变换类型。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [Perspective](#Perspective) | 指定透视扭曲。 | +| [Bilinear](#Bilinear) | 指定双线性扭曲。 | +### Perspective {#Perspective} +``` +public static final int Perspective +``` + + +指定透视扭曲。 + +### Bilinear {#Bilinear} +``` +public static final int Bilinear +``` + + +指定双线性扭曲。 + diff --git a/chinese/java/com.aspose.drawing.drawing2d/wrapmode/_index.md b/chinese/java/com.aspose.drawing.drawing2d/wrapmode/_index.md new file mode 100644 index 000000000..fb8380e5c --- /dev/null +++ b/chinese/java/com.aspose.drawing.drawing2d/wrapmode/_index.md @@ -0,0 +1,64 @@ +--- +title: WrapMode +second_title: Aspose.Drawing for Java API 参考 +description: 指定当纹理或渐变小于填充区域时的平铺方式。 +type: docs +weight: 44 +url: /zh/java/com.aspose.drawing.drawing2d/wrapmode/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class WrapMode extends System.Enum +``` + +指定当纹理或渐变小于填充区域时的平铺方式。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [Tile](#Tile) | 平铺渐变或纹理。 | +| [TileFlipX](#TileFlipX) | 水平翻转纹理或渐变,然后平铺纹理或渐变。 | +| [TileFlipY](#TileFlipY) | 垂直翻转纹理或渐变,然后平铺纹理或渐变。 | +| [TileFlipXY](#TileFlipXY) | 水平和垂直翻转纹理或渐变,然后平铺纹理或渐变。 | +| [Clamp](#Clamp) | 纹理或渐变未被平铺。 | +### Tile {#Tile} +``` +public static final int Tile +``` + + +平铺渐变或纹理。 + +### TileFlipX {#TileFlipX} +``` +public static final int TileFlipX +``` + + +水平翻转纹理或渐变,然后平铺纹理或渐变。 + +### TileFlipY {#TileFlipY} +``` +public static final int TileFlipY +``` + + +垂直翻转纹理或渐变,然后平铺纹理或渐变。 + +### TileFlipXY {#TileFlipXY} +``` +public static final int TileFlipXY +``` + + +水平和垂直翻转纹理或渐变,然后平铺纹理或渐变。 + +### Clamp {#Clamp} +``` +public static final int Clamp +``` + + +纹理或渐变未被平铺。 + diff --git a/chinese/java/com.aspose.drawing.dynabic.metered/_index.md b/chinese/java/com.aspose.drawing.dynabic.metered/_index.md new file mode 100644 index 000000000..12d70aed8 --- /dev/null +++ b/chinese/java/com.aspose.drawing.dynabic.metered/_index.md @@ -0,0 +1,14 @@ +--- +title: com.aspose.drawing.dynabic.metered +second_title: Aspose.Drawing for Java API 参考 +description: +type: docs +weight: 12 +url: /zh/java/com.aspose.drawing.dynabic.metered/ +--- + +## 类 + +| 类 | 描述 | +| --- | --- | +| [Metered](../com.aspose.drawing.dynabic.metered/metered) | 提供用于集成的计量方法。 | diff --git a/chinese/java/com.aspose.drawing.dynabic.metered/metered/_index.md b/chinese/java/com.aspose.drawing.dynabic.metered/metered/_index.md new file mode 100644 index 000000000..addebfaf4 --- /dev/null +++ b/chinese/java/com.aspose.drawing.dynabic.metered/metered/_index.md @@ -0,0 +1,87 @@ +--- +title: 计量的 +second_title: Aspose.Drawing for Java API 参考 +description: 提供用于集成的计量方法。 +type: docs +weight: 10 +url: /zh/java/com.aspose.drawing.dynabic.metered/metered/ +--- +**Inheritance:** +java.lang.Object +``` +public class Metered +``` + +提供用于集成的计量方法。 + +在此示例中,将尝试设置计量的公钥和私钥。 + +`// the component jar file: Metered matered = new Metered(); matered.setMeteredKey("PublicKey", "PrivateKey"); ` +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [Metered()](#Metered--) | | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getConsumptionQuantity()](#getConsumptionQuantity--) | 获取消耗文件大小 | +| [getConsumptionCredit()](#getConsumptionCredit--) | 获取消耗信用 | +| [setMeteredKey(String publicKey, String privateKey)](#setMeteredKey-java.lang.String-java.lang.String-) | 设置计量的公钥和私钥 | +| [equals(Object obj)](#equals-java.lang.Object-) | 确定指定的对象是否等于此实例。 | +### Metered() {#Metered--} +``` +public Metered() +``` + + +### getConsumptionQuantity() {#getConsumptionQuantity--} +``` +public static BigDecimal getConsumptionQuantity() +``` + + +获取消耗文件大小 + +**Returns:** +java.math.BigDecimal - 消耗文件大小 +### getConsumptionCredit() {#getConsumptionCredit--} +``` +public static BigDecimal getConsumptionCredit() +``` + + +获取消耗信用 + +**Returns:** +java.math.BigDecimal - 消耗数量 +### setMeteredKey(String publicKey, String privateKey) {#setMeteredKey-java.lang.String-java.lang.String-} +``` +public void setMeteredKey(String publicKey, String privateKey) +``` + + +设置计量的公钥和私钥 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| publicKey | java.lang.String | 公钥 | +| privateKey | java.lang.String | 私钥 | + +### equals(Object obj) {#equals-java.lang.Object-} +``` +public boolean equals(Object obj) +``` + + +确定指定的对象是否等于此实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| obj | java.lang.Object | 用于与此实例比较的 Object。 | + +**Returns:** +boolean - 如果指定的 Object 等于此实例,则为 `true`;否则为 `false`。 diff --git a/chinese/java/com.aspose.drawing.imaging/_index.md b/chinese/java/com.aspose.drawing.imaging/_index.md new file mode 100644 index 000000000..0747af79c --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/_index.md @@ -0,0 +1,41 @@ +--- +title: com.aspose.drawing.imaging +second_title: Aspose.Drawing for Java API 参考 +description: +type: docs +weight: 13 +url: /zh/java/com.aspose.drawing.imaging/ +--- + +## 类 + +| 类 | 描述 | +| --- | --- | +| [BitmapData](../com.aspose.drawing.imaging/bitmapdata) | 指定位图图像的属性。 | +| [ColorAdjustType](../com.aspose.drawing.imaging/coloradjusttype) | 指定哪些 GDI+ 对象使用颜色调整信息。 | +| [ColorChannelFlag](../com.aspose.drawing.imaging/colorchannelflag) | 指定 CMYK(青色、品红、黄色、黑色)颜色空间中的各个通道。 | +| [ColorMap](../com.aspose.drawing.imaging/colormap) | 定义用于转换颜色的映射。 | +| [ColorMatrix](../com.aspose.drawing.imaging/colormatrix) | 定义一个 5 x 5 矩阵,其中包含 RGBA 空间的坐标。 | +| [ColorMatrixFlag](../com.aspose.drawing.imaging/colormatrixflag) | 指定受 [ImageAttributes](../com.aspose.drawing.imaging/imageattributes) 的颜色和灰度调整设置影响的图像和颜色类型。 | +| [ColorPalette](../com.aspose.drawing.imaging/colorpalette) | 定义组成颜色调色板的颜色数组。 | +| [EmfPlusRecordType](../com.aspose.drawing.imaging/emfplusrecordtype) | 指定可用于元文件读取和写入图形命令的方法。 | +| [EmfType](../com.aspose.drawing.imaging/emftype) | 指定放置在增强型元文件(EMF)中的记录的性质。 | +| [Encoder](../com.aspose.drawing.imaging/encoder) | 一个 [Encoder](../com.aspose.drawing.imaging/encoder) 对象封装了全局唯一标识符 (GUID),用于标识图像编码器参数的类别。 | +| [EncoderParameter](../com.aspose.drawing.imaging/encoderparameter) | 用于向图像编码器传递一个值或值数组。 | +| [EncoderParameters](../com.aspose.drawing.imaging/encoderparameters) | 封装一个 [EncoderParameter](../com.aspose.drawing.imaging/encoderparameter) 对象数组。 | +| [EncoderValue](../com.aspose.drawing.imaging/encodervalue) | 用于在使用 `M:Image.Save(System.String,System.Drawing.Imaging.ImageCodecInfo,System.Drawing.Imaging.EncoderParameters)` 或 `M:Image.SaveAdd(System.Drawing.Imaging.EncoderParameters)` 方法时指定传递给 JPEG 或 TIFF 图像编码器的参数值。 | +| [FrameDimension](../com.aspose.drawing.imaging/framedimension) | 提供获取图像帧维度的属性。 | +| [ImageAttributes](../com.aspose.drawing.imaging/imageattributes) | 包含有关在渲染过程中如何操作位图和元文件颜色的信息。 | +| [ImageCodecInfo](../com.aspose.drawing.imaging/imagecodecinfo) | [ImageCodecInfo](../com.aspose.drawing.imaging/imagecodecinfo) 类提供必要的存储成员和方法,以检索有关已安装图像编码器和解码器(称为编解码器)的所有相关信息。 | +| [ImageFlags](../com.aspose.drawing.imaging/imageflags) | 指定 [Image](../com.aspose.drawing/image) 对象中包含的像素数据的属性。 | +| [ImageFormat](../com.aspose.drawing.imaging/imageformat) | 指定图像的文件格式。 | +| [ImageLockMode](../com.aspose.drawing.imaging/imagelockmode) | 指定传递给 [Bitmap.\#lockBits(Rectangle, int, int)](../com.aspose.drawing/bitmap\#lockBits-Rectangle--int--int-) 方法的 flags 参数的标志。 | +| [MetaHeader](../com.aspose.drawing.imaging/metaheader) | 包含有关 Windows 格式 (WMF) 元文件的信息。 | +| [Metafile](../com.aspose.drawing.imaging/metafile) | 定义图形元文件。 | +| [MetafileFrameUnit](../com.aspose.drawing.imaging/metafileframeunit) | 指定用于调整元文件大小和位置的矩形的测量单位。 | +| [MetafileHeader](../com.aspose.drawing.imaging/metafileheader) | 包含关联的 [Metafile](../com.aspose.drawing.imaging/metafile) 的属性。 | +| [MetafileType](../com.aspose.drawing.imaging/metafiletype) | 指定元文件的类型。 | +| [PixelFormat](../com.aspose.drawing.imaging/pixelformat) | 指定图像中每个像素的颜色数据格式。 | +| [PlayRecordCallback](../com.aspose.drawing.imaging/playrecordcallback) | 此委托未使用。 | +| [PropertyItem](../com.aspose.drawing.imaging/propertyitem) | 封装要包含在图像文件中的元数据属性。 | +| [WmfPlaceableFileHeader](../com.aspose.drawing.imaging/wmfplaceablefileheader) | 定义可放置的元文件。 | diff --git a/chinese/java/com.aspose.drawing.imaging/bitmapdata/_index.md b/chinese/java/com.aspose.drawing.imaging/bitmapdata/_index.md new file mode 100644 index 000000000..5f330405d --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/bitmapdata/_index.md @@ -0,0 +1,155 @@ +--- +title: BitmapData +second_title: Aspose.Drawing for Java API 参考 +description: 指定位图图像的属性。 +type: docs +weight: 10 +url: /zh/java/com.aspose.drawing.imaging/bitmapdata/ +--- +**Inheritance:** +java.lang.Object +``` +public final class BitmapData +``` + +指定位图图像的属性。[BitmapData](../../com.aspose.drawing.imaging/bitmapdata) 类由 [Bitmap](../../com.aspose.drawing/bitmap) 类的 `E:Bitmap.LockBits` 和 `M:Bitmap.UnlockBits(BitmapData)` 方法使用。不可继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [BitmapData()](#BitmapData--) | | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getWidth()](#getWidth--) | 获取 [Bitmap](../../com.aspose.drawing/bitmap) 对象的像素宽度。 | +| [setWidth(int value)](#setWidth-int-) | 设置 [Bitmap](../../com.aspose.drawing/bitmap) 对象的像素宽度。 | +| [getHeight()](#getHeight--) | 获取 [Bitmap](../../com.aspose.drawing/bitmap) 对象的像素高度。 | +| [setHeight(int value)](#setHeight-int-) | 设置 [Bitmap](../../com.aspose.drawing/bitmap) 对象的像素高度。 | +| [getStride()](#getStride--) | 获取 [Bitmap](../../com.aspose.drawing/bitmap) 对象的跨距宽度(亦称扫描宽度)。 | +| [setStride(int value)](#setStride-int-) | 设置 [Bitmap](../../com.aspose.drawing/bitmap) 对象的跨距宽度(亦称扫描宽度)。 | +| [getPixelFormat()](#getPixelFormat--) | 获取返回此 [BitmapData](../../com.aspose.drawing.imaging/bitmapdata) 对象的 [Bitmap](../../com.aspose.drawing/bitmap) 对象中像素信息的格式。 | +| [setPixelFormat(int value)](#setPixelFormat-int-) | 设置返回此 [BitmapData](../../com.aspose.drawing.imaging/bitmapdata) 对象的 [Bitmap](../../com.aspose.drawing/bitmap) 对象中像素信息的格式。 | +| [getScan0()](#getScan0--) | 获取位图中第一个像素数据的地址。 | +| [setScan0(int[] value)](#setScan0-int---) | 设置位图中第一个像素数据的地址。 | +### BitmapData() {#BitmapData--} +``` +public BitmapData() +``` + + +### getWidth() {#getWidth--} +``` +public int getWidth() +``` + + +获取 [Bitmap](../../com.aspose.drawing/bitmap) 对象的像素宽度。这也可以视为一行扫描线中的像素数量。 + +**Returns:** +int - [Bitmap](../../com.aspose.drawing/bitmap) 对象的像素宽度。 +### setWidth(int value) {#setWidth-int-} +``` +public void setWidth(int value) +``` + + +设置 [Bitmap](../../com.aspose.drawing/bitmap) 对象的像素宽度。这也可以视为一行扫描线中的像素数量。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | [Bitmap](../../com.aspose.drawing/bitmap) 对象的像素宽度。 | + +### getHeight() {#getHeight--} +``` +public int getHeight() +``` + + +获取 [Bitmap](../../com.aspose.drawing/bitmap) 对象的像素高度。有时也称为扫描线的数量。 + +**Returns:** +int - [Bitmap](../../com.aspose.drawing/bitmap) 对象的像素高度。 +### setHeight(int value) {#setHeight-int-} +``` +public void setHeight(int value) +``` + + +设置 [Bitmap](../../com.aspose.drawing/bitmap) 对象的像素高度。有时也称为扫描线的数量。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | [Bitmap](../../com.aspose.drawing/bitmap) 对象的像素高度。 | + +### getStride() {#getStride--} +``` +public int getStride() +``` + + +获取 [Bitmap](../../com.aspose.drawing/bitmap) 对象的跨距宽度(亦称扫描宽度)。 + +**Returns:** +int - [Bitmap](../../com.aspose.drawing/bitmap) 对象的跨距宽度(以字节为单位)。 +### setStride(int value) {#setStride-int-} +``` +public void setStride(int value) +``` + + +设置 [Bitmap](../../com.aspose.drawing/bitmap) 对象的跨距宽度(亦称扫描宽度)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | [Bitmap](../../com.aspose.drawing/bitmap) 对象的跨距宽度(也称为扫描宽度)。 | + +### getPixelFormat() {#getPixelFormat--} +``` +public int getPixelFormat() +``` + + +获取返回此 [BitmapData](../../com.aspose.drawing.imaging/bitmapdata) 对象的 [Bitmap](../../com.aspose.drawing/bitmap) 对象中像素信息的格式。 + +**Returns:** +int - 一个 `PixelFormat`([.getPixelFormat](../../null/\#getPixelFormat)/[.setPixelFormat(int)](../../null/\#setPixelFormat-int-))指定关联的 [Bitmap](../../com.aspose.drawing/bitmap) 对象中像素信息的格式。 +### setPixelFormat(int value) {#setPixelFormat-int-} +``` +public void setPixelFormat(int value) +``` + + +设置返回此 [BitmapData](../../com.aspose.drawing.imaging/bitmapdata) 对象的 [Bitmap](../../com.aspose.drawing/bitmap) 对象中像素信息的格式。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | 返回此 [BitmapData](../../com.aspose.drawing.imaging/bitmapdata) 对象的 [Bitmap](../../com.aspose.drawing/bitmap) 对象中像素信息的格式。 | + +### getScan0() {#getScan0--} +``` +public int[] getScan0() +``` + + +获取位图中第一个像素数据的地址。这也可以视为位图中的第一行扫描线。 + +**Returns:** +int[] - 位图中第一个像素数据的地址。 +### setScan0(int[] value) {#setScan0-int---} +``` +public void setScan0(int[] value) +``` + + +设置位图中第一个像素数据的地址。这也可以视为位图中的第一行扫描线。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int[] | 位图中第一个像素数据的地址。 | + diff --git a/chinese/java/com.aspose.drawing.imaging/coloradjusttype/_index.md b/chinese/java/com.aspose.drawing.imaging/coloradjusttype/_index.md new file mode 100644 index 000000000..e4b6ea226 --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/coloradjusttype/_index.md @@ -0,0 +1,82 @@ +--- +title: ColorAdjustType +second_title: Aspose.Drawing for Java API 参考 +description: 指定哪些 GDI 对象使用颜色调整信息。 +type: docs +weight: 11 +url: /zh/java/com.aspose.drawing.imaging/coloradjusttype/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class ColorAdjustType extends System.Enum +``` + +指定哪些 GDI+ 对象使用颜色调整信息。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [Default](#Default) | 所有没有自身颜色调整信息的 GDI+ 对象使用的颜色调整信息。 | +| [Bitmap](#Bitmap) | 针对 [Bitmap](../../com.aspose.drawing.imaging/coloradjusttype\#Bitmap) 对象的颜色调整信息。 | +| [Brush](#Brush) | 针对 [Brush](../../com.aspose.drawing.imaging/coloradjusttype\#Brush) 对象的颜色调整信息。 | +| [Pen](#Pen) | 针对 [Pen](../../com.aspose.drawing.imaging/coloradjusttype\#Pen) 对象的颜色调整信息。 | +| [Text](#Text) | 针对文本的颜色调整信息。 | +| [Count](#Count) | 指定的类型数量。 | +| [Any](#Any) | 指定的类型数量。 | +### Default {#Default} +``` +public static final int Default +``` + + +所有没有自身颜色调整信息的 GDI+ 对象使用的颜色调整信息。 + +### Bitmap {#Bitmap} +``` +public static final int Bitmap +``` + + +针对 [Bitmap](../../com.aspose.drawing.imaging/coloradjusttype\#Bitmap) 对象的颜色调整信息。 + +### Brush {#Brush} +``` +public static final int Brush +``` + + +针对 [Brush](../../com.aspose.drawing.imaging/coloradjusttype\#Brush) 对象的颜色调整信息。 + +### Pen {#Pen} +``` +public static final int Pen +``` + + +针对 [Pen](../../com.aspose.drawing.imaging/coloradjusttype\#Pen) 对象的颜色调整信息。 + +### Text {#Text} +``` +public static final int Text +``` + + +针对文本的颜色调整信息。 + +### Count {#Count} +``` +public static final int Count +``` + + +指定的类型数量。 + +### Any {#Any} +``` +public static final int Any +``` + + +指定的类型数量。 + diff --git a/chinese/java/com.aspose.drawing.imaging/colorchannelflag/_index.md b/chinese/java/com.aspose.drawing.imaging/colorchannelflag/_index.md new file mode 100644 index 000000000..d35f6cecb --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/colorchannelflag/_index.md @@ -0,0 +1,64 @@ +--- +title: ColorChannelFlag +second_title: Aspose.Drawing for Java API 参考 +description: 指定 CMYK(青、品红、黄、黑)颜色空间中的各个通道。 +type: docs +weight: 12 +url: /zh/java/com.aspose.drawing.imaging/colorchannelflag/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class ColorChannelFlag extends System.Enum +``` + +指定 CMYK(青、品红、黄、黑)颜色空间中的各个通道。此枚举由 `ImageAttributes.SetOutputChannel` 方法使用。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [ColorChannelC](#ColorChannelC) | 青色通道。 | +| [ColorChannelM](#ColorChannelM) | 品红色通道。 | +| [ColorChannelY](#ColorChannelY) | 黄色颜色通道。 | +| [ColorChannelK](#ColorChannelK) | 黑色颜色通道。 | +| [ColorChannelLast](#ColorChannelLast) | 应使用上一次选择的通道。 | +### ColorChannelC {#ColorChannelC} +``` +public static final int ColorChannelC +``` + + +青色通道。 + +### ColorChannelM {#ColorChannelM} +``` +public static final int ColorChannelM +``` + + +品红色通道。 + +### ColorChannelY {#ColorChannelY} +``` +public static final int ColorChannelY +``` + + +黄色颜色通道。 + +### ColorChannelK {#ColorChannelK} +``` +public static final int ColorChannelK +``` + + +黑色颜色通道。 + +### ColorChannelLast {#ColorChannelLast} +``` +public static final int ColorChannelLast +``` + + +应使用上一次选择的通道。 + diff --git a/chinese/java/com.aspose.drawing.imaging/colormap/_index.md b/chinese/java/com.aspose.drawing.imaging/colormap/_index.md new file mode 100644 index 000000000..17f7bdef5 --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/colormap/_index.md @@ -0,0 +1,82 @@ +--- +title: ColorMap +second_title: Aspose.Drawing for Java API 参考 +description: 定义用于转换颜色的映射。 +type: docs +weight: 13 +url: /zh/java/com.aspose.drawing.imaging/colormap/ +--- +**Inheritance:** +java.lang.Object +``` +public final class ColorMap +``` + +定义颜色转换映射。[ImageAttributes](../../com.aspose.drawing.imaging/imageattributes) 类的多种方法通过使用颜色重新映射表(即 [ColorMap](../../com.aspose.drawing.imaging/colormap) 结构数组)来调整图像颜色。不可继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [ColorMap()](#ColorMap--) | 初始化 [ColorMap](../../com.aspose.drawing.imaging/colormap) 类的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getOldColor()](#getOldColor--) | 获取要转换的现有 [Color](../../com.aspose.drawing/color) 结构。 | +| [setOldColor(Color value)](#setOldColor-com.aspose.drawing.Color-) | 设置要转换的现有 [Color](../../com.aspose.drawing/color) 结构。 | +| [getNewColor()](#getNewColor--) | 获取要转换到的新 [Color](../../com.aspose.drawing/color) 结构。 | +| [setNewColor(Color value)](#setNewColor-com.aspose.drawing.Color-) | 设置要转换到的新 [Color](../../com.aspose.drawing/color) 结构。 | +### ColorMap() {#ColorMap--} +``` +public ColorMap() +``` + + +初始化 [ColorMap](../../com.aspose.drawing.imaging/colormap) 类的新实例。 + +### getOldColor() {#getOldColor--} +``` +public Color getOldColor() +``` + + +获取要转换的现有 [Color](../../com.aspose.drawing/color) 结构。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - The existing [Color](../../com.aspose.drawing/color) structure to be converted. +### setOldColor(Color value) {#setOldColor-com.aspose.drawing.Color-} +``` +public void setOldColor(Color value) +``` + + +设置要转换的现有 [Color](../../com.aspose.drawing/color) 结构。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [Color](../../com.aspose.drawing/color) | 要转换的现有 [Color](../../com.aspose.drawing/color) 结构。 | + +### getNewColor() {#getNewColor--} +``` +public Color getNewColor() +``` + + +获取要转换到的新 [Color](../../com.aspose.drawing/color) 结构。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - The new [Color](../../com.aspose.drawing/color) structure to which to convert. +### setNewColor(Color value) {#setNewColor-com.aspose.drawing.Color-} +``` +public void setNewColor(Color value) +``` + + +设置要转换到的新 [Color](../../com.aspose.drawing/color) 结构。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [Color](../../com.aspose.drawing/color) | 要转换到的新 [Color](../../com.aspose.drawing/color) 结构。 | + diff --git a/chinese/java/com.aspose.drawing.imaging/colormatrix/_index.md b/chinese/java/com.aspose.drawing.imaging/colormatrix/_index.md new file mode 100644 index 000000000..3c30b7cd4 --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/colormatrix/_index.md @@ -0,0 +1,704 @@ +--- +title: ColorMatrix +second_title: Aspose.Drawing for Java API 参考 +description: 定义一个 5 x 5 矩阵,其中包含 RGBA 空间的坐标。 +type: docs +weight: 14 +url: /zh/java/com.aspose.drawing.imaging/colormatrix/ +--- +**Inheritance:** +java.lang.Object +``` +public final class ColorMatrix +``` + +定义一个 5 x 5 矩阵,包含 RGBA 空间的坐标。 [ImageAttributes](../../com.aspose.drawing.imaging/imageattributes) 类的多个方法通过使用颜色矩阵来调整图像颜色。此类不可被继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [ColorMatrix()](#ColorMatrix--) | 初始化 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 类的新实例。 | +| [ColorMatrix(float[][] newColorMatrix)](#ColorMatrix-float-----) | 使用指定矩阵 `newColorMatrix` 中的元素初始化 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 类的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getMatrix00()](#getMatrix00--) | 获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第 0(零)行第 0 列的元素。 | +| [setMatrix00(float value)](#setMatrix00-float-) | 设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第 0(零)行第 0 列的元素。 | +| [getMatrix01()](#getMatrix01--) | 获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第 0(零)行第一列的元素。 | +| [setMatrix01(float value)](#setMatrix01-float-) | 设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第 0(零)行第一列的元素。 | +| [getMatrix02()](#getMatrix02--) | 获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第 0(零)行第二列的元素。 | +| [setMatrix02(float value)](#setMatrix02-float-) | 设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第 0(零)行第二列的元素。 | +| [getMatrix03()](#getMatrix03--) | 获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第 0(零)行第三列的元素。 | +| [setMatrix03(float value)](#setMatrix03-float-) | 设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第0(零)行和第3列的元素。 | +| [getMatrix04()](#getMatrix04--) | 获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第0(零)行和第4列的元素。 | +| [setMatrix04(float value)](#setMatrix04-float-) | 设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第0(零)行和第4列的元素。 | +| [getMatrix10()](#getMatrix10--) | 获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第1行和第0(零)列的元素。 | +| [setMatrix10(float value)](#setMatrix10-float-) | 设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第1行和第0(零)列的元素。 | +| [getMatrix11()](#getMatrix11--) | 获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第1行和第1列的元素。 | +| [setMatrix11(float value)](#setMatrix11-float-) | 设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第1行和第1列的元素。 | +| [getMatrix12()](#getMatrix12--) | 获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第1行和第2列的元素。 | +| [setMatrix12(float value)](#setMatrix12-float-) | 设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第1行和第2列的元素。 | +| [getMatrix13()](#getMatrix13--) | 获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第1行和第3列的元素。 | +| [setMatrix13(float value)](#setMatrix13-float-) | 设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第1行和第3列的元素。 | +| [getMatrix14()](#getMatrix14--) | 获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第1行和第4列的元素。 | +| [setMatrix14(float value)](#setMatrix14-float-) | 设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第1行和第4列的元素。 | +| [getMatrix20()](#getMatrix20--) | 获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第2行和第0(零)列的元素。 | +| [setMatrix20(float value)](#setMatrix20-float-) | 设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第2行和第0(零)列的元素。 | +| [getMatrix21()](#getMatrix21--) | 获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第2行和第1列的元素。 | +| [setMatrix21(float value)](#setMatrix21-float-) | 设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第2行和第1列的元素。 | +| [getMatrix22()](#getMatrix22--) | 获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第2行和第2列的元素。 | +| [setMatrix22(float value)](#setMatrix22-float-) | 设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第2行和第2列的元素。 | +| [getMatrix23()](#getMatrix23--) | 获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第2行和第3列的元素。 | +| [setMatrix23(float value)](#setMatrix23-float-) | 设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第2行和第3列的元素。 | +| [getMatrix24()](#getMatrix24--) | 获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第2行和第4列的元素。 | +| [setMatrix24(float value)](#setMatrix24-float-) | 设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第2行和第4列的元素。 | +| [getMatrix30()](#getMatrix30--) | 获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第3行和第0(零)列的元素。 | +| [setMatrix30(float value)](#setMatrix30-float-) | 设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第3行和第0(零)列的元素。 | +| [getMatrix31()](#getMatrix31--) | 获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第三行第一列的元素。 | +| [setMatrix31(float value)](#setMatrix31-float-) | 设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第三行第一列的元素。 | +| [getMatrix32()](#getMatrix32--) | 获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第三行第二列的元素。 | +| [setMatrix32(float value)](#setMatrix32-float-) | 设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第三行第二列的元素。 | +| [getMatrix33()](#getMatrix33--) | 获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第三行第三列的元素。 | +| [setMatrix33(float value)](#setMatrix33-float-) | 设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第三行第三列的元素。 | +| [getMatrix34()](#getMatrix34--) | 获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第三行第四列的元素。 | +| [setMatrix34(float value)](#setMatrix34-float-) | 设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第三行第四列的元素。 | +| [getMatrix40()](#getMatrix40--) | 获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第四行第0(零)列的元素。 | +| [setMatrix40(float value)](#setMatrix40-float-) | 设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第四行第0(零)列的元素。 | +| [getMatrix41()](#getMatrix41--) | 获取此 `.ColorMatrix` 第四行第一列的元素。 | +| [setMatrix41(float value)](#setMatrix41-float-) | 设置此 `.ColorMatrix` 第四行第一列的元素。 | +| [getMatrix42()](#getMatrix42--) | 获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第四行第二列的元素。 | +| [setMatrix42(float value)](#setMatrix42-float-) | 设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第四行第二列的元素。 | +| [getMatrix43()](#getMatrix43--) | 获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第四行第三列的元素。 | +| [setMatrix43(float value)](#setMatrix43-float-) | 设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第四行第三列的元素。 | +| [getMatrix44()](#getMatrix44--) | 获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第四行第四列的元素。 | +| [setMatrix44(float value)](#setMatrix44-float-) | 设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第四行第四列的元素。 | +| [get_Item(int row, int column)](#get-Item-int-int-) | 获取 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 中指定行列的元素。 | +| [set_Item(int row, int column, float value)](#set-Item-int-int-float-) | 设置 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 中指定行列的元素。 | +### ColorMatrix() {#ColorMatrix--} +``` +public ColorMatrix() +``` + + +初始化 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 类的新实例。 + +### ColorMatrix(float[][] newColorMatrix) {#ColorMatrix-float-----} +``` +public ColorMatrix(float[][] newColorMatrix) +``` + + +使用指定矩阵 `newColorMatrix` 中的元素初始化 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| newColorMatrix | float[][] | 新 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 元素的值。 | + +### getMatrix00() {#getMatrix00--} +``` +public float getMatrix00() +``` + + +获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第 0(零)行第 0 列的元素。 + +**Returns:** +float - 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第0(零)行第0列的元素。 +### setMatrix00(float value) {#setMatrix00-float-} +``` +public void setMatrix00(float value) +``` + + +设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第 0(零)行第 0 列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float | 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第0(零)行第0列的元素。 | + +### getMatrix01() {#getMatrix01--} +``` +public float getMatrix01() +``` + + +获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第 0(零)行第一列的元素。 + +**Returns:** +float - 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第0(零)行第一列的元素。 +### setMatrix01(float value) {#setMatrix01-float-} +``` +public void setMatrix01(float value) +``` + + +设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第 0(零)行第一列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float | 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第0(零)行第一列的元素。 | + +### getMatrix02() {#getMatrix02--} +``` +public float getMatrix02() +``` + + +获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第 0(零)行第二列的元素。 + +**Returns:** +float - 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第 0(零)行第二列的元素。 +### setMatrix02(float value) {#setMatrix02-float-} +``` +public void setMatrix02(float value) +``` + + +设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第 0(零)行第二列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float | 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第 0(零)行第二列的元素。 | + +### getMatrix03() {#getMatrix03--} +``` +public float getMatrix03() +``` + + +获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第 0(零)行第三列的元素。 + +**Returns:** +float - 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第 0(零)行第三列的元素。 +### setMatrix03(float value) {#setMatrix03-float-} +``` +public void setMatrix03(float value) +``` + + +设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第0(零)行和第3列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float | 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第 0(零)行第三列的元素。 | + +### getMatrix04() {#getMatrix04--} +``` +public float getMatrix04() +``` + + +获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第0(零)行和第4列的元素。 + +**Returns:** +float - 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第 0(零)行第四列的元素。 +### setMatrix04(float value) {#setMatrix04-float-} +``` +public void setMatrix04(float value) +``` + + +设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第0(零)行和第4列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float | 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第 0(零)行第四列的元素。 | + +### getMatrix10() {#getMatrix10--} +``` +public float getMatrix10() +``` + + +获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第1行和第0(零)列的元素。 + +**Returns:** +float - 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第一行第 0(零)列的元素。 +### setMatrix10(float value) {#setMatrix10-float-} +``` +public void setMatrix10(float value) +``` + + +设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第1行和第0(零)列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float | 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第一行第 0(零)列的元素。 | + +### getMatrix11() {#getMatrix11--} +``` +public float getMatrix11() +``` + + +获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第1行和第1列的元素。 + +**Returns:** +float - 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第一行第一列的元素。 +### setMatrix11(float value) {#setMatrix11-float-} +``` +public void setMatrix11(float value) +``` + + +设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第1行和第1列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float | 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第一行第一列的元素。 | + +### getMatrix12() {#getMatrix12--} +``` +public float getMatrix12() +``` + + +获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第1行和第2列的元素。 + +**Returns:** +float - 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第一行第二列的元素。 +### setMatrix12(float value) {#setMatrix12-float-} +``` +public void setMatrix12(float value) +``` + + +设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第1行和第2列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float | 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第一行第二列的元素。 | + +### getMatrix13() {#getMatrix13--} +``` +public float getMatrix13() +``` + + +获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第1行和第3列的元素。 + +**Returns:** +float - 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第一行第三列的元素。 +### setMatrix13(float value) {#setMatrix13-float-} +``` +public void setMatrix13(float value) +``` + + +设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第1行和第3列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float | 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第一行第三列的元素。 | + +### getMatrix14() {#getMatrix14--} +``` +public float getMatrix14() +``` + + +获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第1行和第4列的元素。 + +**Returns:** +float - 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第一行第四列的元素。 +### setMatrix14(float value) {#setMatrix14-float-} +``` +public void setMatrix14(float value) +``` + + +设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第1行和第4列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float | 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第一行第四列的元素。 | + +### getMatrix20() {#getMatrix20--} +``` +public float getMatrix20() +``` + + +获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第2行和第0(零)列的元素。 + +**Returns:** +float - 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第二行第 0(零)列的元素。 +### setMatrix20(float value) {#setMatrix20-float-} +``` +public void setMatrix20(float value) +``` + + +设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第2行和第0(零)列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float | 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第二行第 0(零)列的元素。 | + +### getMatrix21() {#getMatrix21--} +``` +public float getMatrix21() +``` + + +获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第2行和第1列的元素。 + +**Returns:** +float - 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第二行第一列的元素。 +### setMatrix21(float value) {#setMatrix21-float-} +``` +public void setMatrix21(float value) +``` + + +设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第2行和第1列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float | 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第二行第一列的元素。 | + +### getMatrix22() {#getMatrix22--} +``` +public float getMatrix22() +``` + + +获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第2行和第2列的元素。 + +**Returns:** +float - 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第二行第二列的元素。 +### setMatrix22(float value) {#setMatrix22-float-} +``` +public void setMatrix22(float value) +``` + + +设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第2行和第2列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float | 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第二行第二列的元素。 | + +### getMatrix23() {#getMatrix23--} +``` +public float getMatrix23() +``` + + +获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第2行和第3列的元素。 + +**Returns:** +float - 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第二行第三列的元素。 +### setMatrix23(float value) {#setMatrix23-float-} +``` +public void setMatrix23(float value) +``` + + +设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第2行和第3列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float | 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第二行第三列的元素。 | + +### getMatrix24() {#getMatrix24--} +``` +public float getMatrix24() +``` + + +获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第2行和第4列的元素。 + +**Returns:** +float - 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第二行第四列的元素。 +### setMatrix24(float value) {#setMatrix24-float-} +``` +public void setMatrix24(float value) +``` + + +设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第2行和第4列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float | 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 中第二行第四列的元素. | + +### getMatrix30() {#getMatrix30--} +``` +public float getMatrix30() +``` + + +获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第3行和第0(零)列的元素。 + +**Returns:** +float - 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 中第三行第0(零)列的元素. +### setMatrix30(float value) {#setMatrix30-float-} +``` +public void setMatrix30(float value) +``` + + +设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 的第3行和第0(零)列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float | 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 中第三行第0(零)列的元素. | + +### getMatrix31() {#getMatrix31--} +``` +public float getMatrix31() +``` + + +获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第三行第一列的元素。 + +**Returns:** +float - 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 中第三行第一列的元素. +### setMatrix31(float value) {#setMatrix31-float-} +``` +public void setMatrix31(float value) +``` + + +设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第三行第一列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float | 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 中第三行第一列的元素. | + +### getMatrix32() {#getMatrix32--} +``` +public float getMatrix32() +``` + + +获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第三行第二列的元素。 + +**Returns:** +float - 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 中第三行第二列的元素. +### setMatrix32(float value) {#setMatrix32-float-} +``` +public void setMatrix32(float value) +``` + + +设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第三行第二列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float | 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 中第三行第二列的元素. | + +### getMatrix33() {#getMatrix33--} +``` +public float getMatrix33() +``` + + +获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第三行第三列的元素。 + +**Returns:** +float - 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 中第三行第三列的元素. +### setMatrix33(float value) {#setMatrix33-float-} +``` +public void setMatrix33(float value) +``` + + +设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第三行第三列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float | 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 中第三行第三列的元素. | + +### getMatrix34() {#getMatrix34--} +``` +public float getMatrix34() +``` + + +获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第三行第四列的元素。 + +**Returns:** +float - 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 中第三行第四列的元素. +### setMatrix34(float value) {#setMatrix34-float-} +``` +public void setMatrix34(float value) +``` + + +设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第三行第四列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float | 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 中第三行第四列的元素. | + +### getMatrix40() {#getMatrix40--} +``` +public float getMatrix40() +``` + + +获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第四行第0(零)列的元素。 + +**Returns:** +float - 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 中第四行第0(零)列的元素. +### setMatrix40(float value) {#setMatrix40-float-} +``` +public void setMatrix40(float value) +``` + + +设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第四行第0(零)列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float | 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 中第四行第0(零)列的元素. | + +### getMatrix41() {#getMatrix41--} +``` +public float getMatrix41() +``` + + +获取此 `.ColorMatrix` 第四行第一列的元素。 + +**Returns:** +float - 此 `.ColorMatrix` 中第四行第一列的元素. +### setMatrix41(float value) {#setMatrix41-float-} +``` +public void setMatrix41(float value) +``` + + +设置此 `.ColorMatrix` 第四行第一列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | 浮点数 | 此 `.ColorMatrix` 中第四行第一列的元素. | + +### getMatrix42() {#getMatrix42--} +``` +public float getMatrix42() +``` + + +获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第四行第二列的元素。 + +**Returns:** +float - 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 中第四行第二列的元素. +### setMatrix42(float value) {#setMatrix42-float-} +``` +public void setMatrix42(float value) +``` + + +设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第四行第二列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float | 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 中第四行第二列的元素. | + +### getMatrix43() {#getMatrix43--} +``` +public float getMatrix43() +``` + + +获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第四行第三列的元素。 + +**Returns:** +float - 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 中第四行第三列的元素. +### setMatrix43(float value) {#setMatrix43-float-} +``` +public void setMatrix43(float value) +``` + + +设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第四行第三列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float | 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 中第四行第三列的元素. | + +### getMatrix44() {#getMatrix44--} +``` +public float getMatrix44() +``` + + +获取此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第四行第四列的元素。 + +**Returns:** +float - 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 中第四行第四列的元素. +### setMatrix44(float value) {#setMatrix44-float-} +``` +public void setMatrix44(float value) +``` + + +设置此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 第四行第四列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float | 此 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 中第四行第四列的元素. | + +### get_Item(int row, int column) {#get-Item-int-int-} +``` +public float get_Item(int row, int column) +``` + + +获取 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 中指定行列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 行 | int | 元素的行. | +| 列 | int | 元素的列. | + +**Returns:** +float - 指定行和列处的元素。 +### set_Item(int row, int column, float value) {#set-Item-int-int-float-} +``` +public void set_Item(int row, int column, float value) +``` + + +设置 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 中指定行列的元素。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 行 | int | 元素的行. | +| 列 | int | 元素的列. | +| value | float | 在 [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) 中指定行和列处的元素。 | + diff --git a/chinese/java/com.aspose.drawing.imaging/colormatrixflag/_index.md b/chinese/java/com.aspose.drawing.imaging/colormatrixflag/_index.md new file mode 100644 index 000000000..8c74561d7 --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/colormatrixflag/_index.md @@ -0,0 +1,46 @@ +--- +title: ColorMatrixFlag +second_title: Aspose.Drawing for Java API 参考 +description: 指定将受到颜色和灰度调整设置影响的图像和颜色类型。 +type: docs +weight: 15 +url: /zh/java/com.aspose.drawing.imaging/colormatrixflag/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class ColorMatrixFlag extends System.Enum +``` + +指定将受到 [ImageAttributes](../../com.aspose.drawing.imaging/imageattributes) 的颜色和灰度调整设置影响的图像和颜色类型。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [Default](#Default) | 所有颜色值(包括灰色阴影)均通过相同的颜色调整矩阵进行调整。 | +| [SkipGrays](#SkipGrays) | 所有颜色都会被调整,但灰色阴影不进行调整。 | +| [AltGrays](#AltGrays) | 仅调整灰色阴影。 | +### Default {#Default} +``` +public static final int Default +``` + + +所有颜色值(包括灰色阴影)均通过相同的颜色调整矩阵进行调整。 + +### SkipGrays {#SkipGrays} +``` +public static final int SkipGrays +``` + + +所有颜色都会被调整,但灰色阴影不进行调整。灰色阴影是指红、绿、蓝分量值相同的任何颜色。 + +### AltGrays {#AltGrays} +``` +public static final int AltGrays +``` + + +仅调整灰色阴影。 + diff --git a/chinese/java/com.aspose.drawing.imaging/colorpalette/_index.md b/chinese/java/com.aspose.drawing.imaging/colorpalette/_index.md new file mode 100644 index 000000000..b0e154ddc --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/colorpalette/_index.md @@ -0,0 +1,101 @@ +--- +title: ColorPalette +second_title: Aspose.Drawing for Java API 参考 +description: 定义组成颜色调色板的颜色数组。 +type: docs +weight: 16 +url: /zh/java/com.aspose.drawing.imaging/colorpalette/ +--- +**Inheritance:** +java.lang.Object +``` +public final class ColorPalette +``` + +定义组成颜色调色板的颜色数组。颜色为 32 位 ARGB 颜色。不可继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [ColorPalette(int count)](#ColorPalette-int-) | 初始化 `ColorPalette` 类的新实例,且 IsCompactPalette 为 false。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getEntries()](#getEntries--) | 获取 `com.aspose.drawing.Color` 结构的数组。 | +| [isCompactPalette()](#isCompactPalette--) | 获取或设置指示是否使用紧凑调色板的值。 | +| [getFlags()](#getFlags--) | | +| [setFlags(int flags)](#setFlags-int-) | | +| [setEntries(int i, Color color)](#setEntries-int-com.aspose.drawing.Color-) | | +### ColorPalette(int count) {#ColorPalette-int-} +``` +public ColorPalette(int count) +``` + + +初始化 `ColorPalette` 类的新实例,且 IsCompactPalette 为 false。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| count | int | 颜色调色板条目。 | + +### getEntries() {#getEntries--} +``` +public Color[] getEntries() +``` + + +获取 `com.aspose.drawing.Color` 结构的数组。 + +**Returns:** +com.aspose.drawing.Color[] - 条目。由 `com.aspose.drawing.Color` 结构组成的数组,构成此 `Aspose.Imaging.ColorPalette`。 +### isCompactPalette() {#isCompactPalette--} +``` +public boolean isCompactPalette() +``` + + +获取或设置指示是否使用紧凑调色板的值。 + +**Returns:** +boolean - 如果使用紧凑调色板则为 `true`;否则为 `false`。 + +紧凑调色板意味着图像将在可能的情况下仅包含指定的调色板条目,换句话说,图像将更紧凑并占用更少空间;否则将有 2^BitsPerPixel 条目,图像将为所有可能的调色板条目保留更多空间。将此值设为 true 并更改调色板条目可能会导致性能惩罚,因为可能会发生数据移动,所以请谨慎使用。 +### getFlags() {#getFlags--} +``` +public int getFlags() +``` + + + + +**Returns:** +int +### setFlags(int flags) {#setFlags-int-} +``` +public void setFlags(int flags) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| flags | int | | + +### setEntries(int i, Color color) {#setEntries-int-com.aspose.drawing.Color-} +``` +public void setEntries(int i, Color color) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| i | int | | +| color | [Color](../../com.aspose.drawing/color) | | + diff --git a/chinese/java/com.aspose.drawing.imaging/emfplusrecordtype/_index.md b/chinese/java/com.aspose.drawing.imaging/emfplusrecordtype/_index.md new file mode 100644 index 000000000..99cc2f8bd --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/emfplusrecordtype/_index.md @@ -0,0 +1,2296 @@ +--- +title: EmfPlusRecordType +second_title: Aspose.Drawing for Java API 参考 +description: 指定可用于元文件读取和写入图形命令的方法。 +type: docs +weight: 17 +url: /zh/java/com.aspose.drawing.imaging/emfplusrecordtype/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class EmfPlusRecordType extends System.Enum +``` + +指定可用于元文件读取和写入图形命令的方法。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [EmfHeader](#EmfHeader) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfMin](#EmfMin) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfPolyBezier](#EmfPolyBezier) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfPolygon](#EmfPolygon) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfPolyline](#EmfPolyline) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfPolyBezierTo](#EmfPolyBezierTo) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfPolyLineTo](#EmfPolyLineTo) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfPolyPolyline](#EmfPolyPolyline) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfPolyPolygon](#EmfPolyPolygon) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetWindowExtEx](#EmfSetWindowExtEx) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetWindowOrgEx](#EmfSetWindowOrgEx) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetViewportExtEx](#EmfSetViewportExtEx) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetViewportOrgEx](#EmfSetViewportOrgEx) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetBrushOrgEx](#EmfSetBrushOrgEx) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfEof](#EmfEof) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetPixelV](#EmfSetPixelV) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetMapperFlags](#EmfSetMapperFlags) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetMapMode](#EmfSetMapMode) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetBkMode](#EmfSetBkMode) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetPolyFillMode](#EmfSetPolyFillMode) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetROP2](#EmfSetROP2) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetStretchBltMode](#EmfSetStretchBltMode) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetTextAlign](#EmfSetTextAlign) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetColorAdjustment](#EmfSetColorAdjustment) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetTextColor](#EmfSetTextColor) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetBkColor](#EmfSetBkColor) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfOffsetClipRgn](#EmfOffsetClipRgn) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfMoveToEx](#EmfMoveToEx) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetMetaRgn](#EmfSetMetaRgn) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfExcludeClipRect](#EmfExcludeClipRect) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfIntersectClipRect](#EmfIntersectClipRect) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfScaleViewportExtEx](#EmfScaleViewportExtEx) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfScaleWindowExtEx](#EmfScaleWindowExtEx) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSaveDC](#EmfSaveDC) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfRestoreDC](#EmfRestoreDC) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetWorldTransform](#EmfSetWorldTransform) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfModifyWorldTransform](#EmfModifyWorldTransform) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSelectObject](#EmfSelectObject) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfCreatePen](#EmfCreatePen) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfCreateBrushIndirect](#EmfCreateBrushIndirect) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfDeleteObject](#EmfDeleteObject) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfAngleArc](#EmfAngleArc) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfEllipse](#EmfEllipse) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfRectangle](#EmfRectangle) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfRoundRect](#EmfRoundRect) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfRoundArc](#EmfRoundArc) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfChord](#EmfChord) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfPie](#EmfPie) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSelectPalette](#EmfSelectPalette) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfCreatePalette](#EmfCreatePalette) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetPaletteEntries](#EmfSetPaletteEntries) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfResizePalette](#EmfResizePalette) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfRealizePalette](#EmfRealizePalette) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfExtFloodFill](#EmfExtFloodFill) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfLineTo](#EmfLineTo) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfArcTo](#EmfArcTo) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfPolyDraw](#EmfPolyDraw) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetArcDirection](#EmfSetArcDirection) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetMiterLimit](#EmfSetMiterLimit) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfBeginPath](#EmfBeginPath) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfEndPath](#EmfEndPath) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfCloseFigure](#EmfCloseFigure) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfFillPath](#EmfFillPath) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfStrokeAndFillPath](#EmfStrokeAndFillPath) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfStrokePath](#EmfStrokePath) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfFlattenPath](#EmfFlattenPath) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfWidenPath](#EmfWidenPath) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSelectClipPath](#EmfSelectClipPath) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfAbortPath](#EmfAbortPath) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfReserved069](#EmfReserved069) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfGdiComment](#EmfGdiComment) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfFillRgn](#EmfFillRgn) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfFrameRgn](#EmfFrameRgn) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfInvertRgn](#EmfInvertRgn) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfPaintRgn](#EmfPaintRgn) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfExtSelectClipRgn](#EmfExtSelectClipRgn) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfBitBlt](#EmfBitBlt) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfStretchBlt](#EmfStretchBlt) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfMaskBlt](#EmfMaskBlt) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfPlgBlt](#EmfPlgBlt) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetDIBitsToDevice](#EmfSetDIBitsToDevice) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfStretchDIBits](#EmfStretchDIBits) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfExtCreateFontIndirect](#EmfExtCreateFontIndirect) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfExtTextOutA](#EmfExtTextOutA) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfExtTextOutW](#EmfExtTextOutW) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfPolyBezier16](#EmfPolyBezier16) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfPolygon16](#EmfPolygon16) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfPolyline16](#EmfPolyline16) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfPolyBezierTo16](#EmfPolyBezierTo16) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfPolylineTo16](#EmfPolylineTo16) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfPolyPolyline16](#EmfPolyPolyline16) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfPolyPolygon16](#EmfPolyPolygon16) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfPolyDraw16](#EmfPolyDraw16) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfCreateMonoBrush](#EmfCreateMonoBrush) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfCreateDibPatternBrushPt](#EmfCreateDibPatternBrushPt) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfExtCreatePen](#EmfExtCreatePen) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfPolyTextOutA](#EmfPolyTextOutA) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfPolyTextOutW](#EmfPolyTextOutW) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetIcmMode](#EmfSetIcmMode) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfCreateColorSpace](#EmfCreateColorSpace) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetColorSpace](#EmfSetColorSpace) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfDeleteColorSpace](#EmfDeleteColorSpace) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfGlsRecord](#EmfGlsRecord) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfGlsBoundedRecord](#EmfGlsBoundedRecord) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfPixelFormat](#EmfPixelFormat) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfDrawEscape](#EmfDrawEscape) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfExtEscape](#EmfExtEscape) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfStartDoc](#EmfStartDoc) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSmallTextOut](#EmfSmallTextOut) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfForceUfiMapping](#EmfForceUfiMapping) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfNamedEscpae](#EmfNamedEscpae) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfColorCorrectPalette](#EmfColorCorrectPalette) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetIcmProfileA](#EmfSetIcmProfileA) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetIcmProfileW](#EmfSetIcmProfileW) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfAlphaBlend](#EmfAlphaBlend) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetLayout](#EmfSetLayout) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfTransparentBlt](#EmfTransparentBlt) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfReserved117](#EmfReserved117) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfGradientFill](#EmfGradientFill) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetLinkedUfis](#EmfSetLinkedUfis) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfSetTextJustification](#EmfSetTextJustification) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfColorMatchToTargetW](#EmfColorMatchToTargetW) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfCreateColorSpaceW](#EmfCreateColorSpaceW) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfMax](#EmfMax) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [EmfPlusRecordBase](#EmfPlusRecordBase) | 请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 | +| [Invalid](#Invalid) | 指示无效数据。 | +| [Header](#Header) | 标识 EMF+ 标头的记录。 | +| [Min](#Min) | 此枚举的最小值。 | +| [EndOfFile](#EndOfFile) | 标识标记元文件最后一个 EMF+ 记录的记录。 | +| [Comment](#Comment) | 请参阅 `M:Graphics.AddMetafileComment`。 | +| [GetDC](#GetDC) | 请参阅 `M:Graphics.GetHdc`。 | +| [MultiFormatStart](#MultiFormatStart) | 标记多格式部分的开始。 | +| [MultiFormatSection](#MultiFormatSection) | 标记多格式部分。 | +| [MultiFormatEnd](#MultiFormatEnd) | 标记多格式部分的结束。 | +| [Object](#Object) | 标记一个对象。 | +| [Clear](#Clear) | 参见 `M:Graphics.Clear`。 | +| [FillRects](#FillRects) | 参见 `M:Graphics.FillRectangles` 方法。 | +| [DrawRects](#DrawRects) | 参见 `M:Graphics.DrawRectangles` 方法。 | +| [FillPolygon](#FillPolygon) | 参见 `M:Graphics.FillPolygon` 方法。 | +| [DrawLines](#DrawLines) | 参见 `M:Graphics.DrawLines` 方法。 | +| [FillEllipse](#FillEllipse) | 参见 `M:Graphics.FillEllipse` 方法。 | +| [DrawEllipse](#DrawEllipse) | 参见 `M:Graphics.DrawEllipse` 方法。 | +| [FillPie](#FillPie) | 参见 `M:Graphics.FillPie` 方法。 | +| [DrawPie](#DrawPie) | 参见 `M:Graphics.DrawPie` 方法。 | +| [DrawArc](#DrawArc) | 参见 `M:Graphics.DrawArc` 方法。 | +| [FillRegion](#FillRegion) | 参见 `M:Graphics.FillRegion`。 | +| [FillPath](#FillPath) | 参见 `M:Graphics.FillPath`。 | +| [DrawPath](#DrawPath) | 参见 `M:Graphics.DrawPath`。 | +| [FillClosedCurve](#FillClosedCurve) | 参见 `M:Graphics.FillClosedCurve` 方法。 | +| [DrawClosedCurve](#DrawClosedCurve) | 参见 `M:Graphics.DrawClosedCurve` 方法。 | +| [DrawCurve](#DrawCurve) | 参见 `M:Graphics.DrawCurve` 方法。 | +| [DrawBeziers](#DrawBeziers) | 参见 `M:Graphics.DrawBeziers` 方法。 | +| [DrawImage](#DrawImage) | 参见 `M:Graphics.DrawImage` 方法。 | +| [DrawImagePoints](#DrawImagePoints) | 参见 `M:Graphics.DrawImagePoints` 方法。 | +| [DrawString](#DrawString) | 参见 `M:Graphics.DrawString` 方法。 | +| [SetRenderingOrigin](#SetRenderingOrigin) | 参见 `M:Graphics.RenderingOrigin`。 | +| [SetAntiAliasMode](#SetAntiAliasMode) | 参见 `M:Graphics.SmoothingMode`。 | +| [SetTextRenderingHint](#SetTextRenderingHint) | 参见 `M:Graphics.TextRenderingHint`。 | +| [SetTextContrast](#SetTextContrast) | 参见 `M:Graphics.TextContrast`。 | +| [SetInterpolationMode](#SetInterpolationMode) | 参见 `M:Graphics.InterpolationMode`。 | +| [SetPixelOffsetMode](#SetPixelOffsetMode) | 参见 `M:Graphics.PixelOffsetMode`。 | +| [SetCompositingMode](#SetCompositingMode) | 参见 `M:Graphics.CompositingMode`。 | +| [SetCompositingQuality](#SetCompositingQuality) | 参见 `M:Graphics.CompositingQuality`。 | +| [Save](#Save) | 参见 `M:Graphics.Save`。 | +| [Restore](#Restore) | 参见 `M:Graphics.Restore`。 | +| [BeginContainer](#BeginContainer) | 参见 `M:Graphics.BeginContainer` 方法。 | +| [BeginContainerNoParams](#BeginContainerNoParams) | 参见 `M:Graphics.BeginContainer` 方法。 | +| [EndContainer](#EndContainer) | 参见 `M:Graphics.EndContainer`。 | +| [SetWorldTransform](#SetWorldTransform) | 参见 `M:Graphics.TransformPoints` 方法。 | +| [ResetWorldTransform](#ResetWorldTransform) | 参见 `M:Graphics.ResetTransform`。 | +| [MultiplyWorldTransform](#MultiplyWorldTransform) | 参见 `M:Graphics.MultiplyTransform` 方法。 | +| [TranslateWorldTransform](#TranslateWorldTransform) | 参见 `M:Graphics.TransformPoints` 方法。 | +| [ScaleWorldTransform](#ScaleWorldTransform) | 参见 `M:Graphics.ScaleTransform` 方法。 | +| [RotateWorldTransform](#RotateWorldTransform) | 参见 `M:Graphics.RotateTransform` 方法。 | +| [SetPageTransform](#SetPageTransform) | 参见 `M:Graphics.TransformPoints` 方法。 | +| [ResetClip](#ResetClip) | 参见 `M:Graphics.ResetClip`。 | +| [SetClipRect](#SetClipRect) | 参见 `M:Graphics.SetClip` 方法。 | +| [SetClipPath](#SetClipPath) | 参见 `M:Graphics.SetClip` 方法。 | +| [SetClipRegion](#SetClipRegion) | 参见 `M:Graphics.SetClip` 方法。 | +| [OffsetClip](#OffsetClip) | 参见 `M:Graphics.TranslateClip` 方法。 | +| [DrawDriverString](#DrawDriverString) | 指定字符字符串、位置和格式信息。 | +| [Max](#Max) | 此枚举的最大值。 | +| [Total](#Total) | 内部使用。 | +| [WmfRecordBase](#WmfRecordBase) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfSaveDC](#WmfSaveDC) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfRealizePalette](#WmfRealizePalette) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfSetPalEntries](#WmfSetPalEntries) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfCreatePalette](#WmfCreatePalette) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfSetBkMode](#WmfSetBkMode) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfSetMapMode](#WmfSetMapMode) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfSetROP2](#WmfSetROP2) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfSetRelAbs](#WmfSetRelAbs) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfSetPolyFillMode](#WmfSetPolyFillMode) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfSetStretchBltMode](#WmfSetStretchBltMode) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfSetTextCharExtra](#WmfSetTextCharExtra) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfRestoreDC](#WmfRestoreDC) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfInvertRegion](#WmfInvertRegion) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfPaintRegion](#WmfPaintRegion) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfSelectClipRegion](#WmfSelectClipRegion) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfSelectObject](#WmfSelectObject) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfSetTextAlign](#WmfSetTextAlign) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfResizePalette](#WmfResizePalette) | 根据指定值增加或减少逻辑调色板的大小。 | +| [WmfDibCreatePatternBrush](#WmfDibCreatePatternBrush) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfSetLayout](#WmfSetLayout) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfDeleteObject](#WmfDeleteObject) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfCreatePatternBrush](#WmfCreatePatternBrush) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfSetBkColor](#WmfSetBkColor) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfSetTextColor](#WmfSetTextColor) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfSetTextJustification](#WmfSetTextJustification) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfSetWindowOrg](#WmfSetWindowOrg) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfSetWindowExt](#WmfSetWindowExt) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfSetViewportOrg](#WmfSetViewportOrg) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfSetViewportExt](#WmfSetViewportExt) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfOffsetWindowOrg](#WmfOffsetWindowOrg) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfOffsetViewportOrg](#WmfOffsetViewportOrg) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfLineTo](#WmfLineTo) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfMoveTo](#WmfMoveTo) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfOffsetCilpRgn](#WmfOffsetCilpRgn) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfFillRegion](#WmfFillRegion) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfSetMapperFlags](#WmfSetMapperFlags) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfSelectPalette](#WmfSelectPalette) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfCreatePenIndirect](#WmfCreatePenIndirect) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfCreateFontIndirect](#WmfCreateFontIndirect) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfCreateBrushIndirect](#WmfCreateBrushIndirect) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfPolygon](#WmfPolygon) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfPolyline](#WmfPolyline) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfScaleWindowExt](#WmfScaleWindowExt) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfScaleViewportExt](#WmfScaleViewportExt) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfExcludeClipRect](#WmfExcludeClipRect) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfIntersectClipRect](#WmfIntersectClipRect) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfEllipse](#WmfEllipse) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfFloodFill](#WmfFloodFill) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfRectangle](#WmfRectangle) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfSetPixel](#WmfSetPixel) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfFrameRegion](#WmfFrameRegion) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfAnimatePalette](#WmfAnimatePalette) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfTextOut](#WmfTextOut) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfPolyPolygon](#WmfPolyPolygon) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfExtFloodFill](#WmfExtFloodFill) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfRoundRect](#WmfRoundRect) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfPatBlt](#WmfPatBlt) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfEscape](#WmfEscape) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfCreateRegion](#WmfCreateRegion) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfArc](#WmfArc) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfPie](#WmfPie) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfChord](#WmfChord) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfBitBlt](#WmfBitBlt) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfDibBitBlt](#WmfDibBitBlt) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfExtTextOut](#WmfExtTextOut) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfStretchBlt](#WmfStretchBlt) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfDibStretchBlt](#WmfDibStretchBlt) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfSetDibToDev](#WmfSetDibToDev) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +| [WmfStretchDib](#WmfStretchDib) | 参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 | +### EmfHeader {#EmfHeader} +``` +public static final int EmfHeader +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfMin {#EmfMin} +``` +public static final int EmfMin +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfPolyBezier {#EmfPolyBezier} +``` +public static final int EmfPolyBezier +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfPolygon {#EmfPolygon} +``` +public static final int EmfPolygon +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfPolyline {#EmfPolyline} +``` +public static final int EmfPolyline +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfPolyBezierTo {#EmfPolyBezierTo} +``` +public static final int EmfPolyBezierTo +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfPolyLineTo {#EmfPolyLineTo} +``` +public static final int EmfPolyLineTo +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfPolyPolyline {#EmfPolyPolyline} +``` +public static final int EmfPolyPolyline +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfPolyPolygon {#EmfPolyPolygon} +``` +public static final int EmfPolyPolygon +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetWindowExtEx {#EmfSetWindowExtEx} +``` +public static final int EmfSetWindowExtEx +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetWindowOrgEx {#EmfSetWindowOrgEx} +``` +public static final int EmfSetWindowOrgEx +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetViewportExtEx {#EmfSetViewportExtEx} +``` +public static final int EmfSetViewportExtEx +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetViewportOrgEx {#EmfSetViewportOrgEx} +``` +public static final int EmfSetViewportOrgEx +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetBrushOrgEx {#EmfSetBrushOrgEx} +``` +public static final int EmfSetBrushOrgEx +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfEof {#EmfEof} +``` +public static final int EmfEof +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetPixelV {#EmfSetPixelV} +``` +public static final int EmfSetPixelV +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetMapperFlags {#EmfSetMapperFlags} +``` +public static final int EmfSetMapperFlags +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetMapMode {#EmfSetMapMode} +``` +public static final int EmfSetMapMode +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetBkMode {#EmfSetBkMode} +``` +public static final int EmfSetBkMode +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetPolyFillMode {#EmfSetPolyFillMode} +``` +public static final int EmfSetPolyFillMode +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetROP2 {#EmfSetROP2} +``` +public static final int EmfSetROP2 +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetStretchBltMode {#EmfSetStretchBltMode} +``` +public static final int EmfSetStretchBltMode +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetTextAlign {#EmfSetTextAlign} +``` +public static final int EmfSetTextAlign +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetColorAdjustment {#EmfSetColorAdjustment} +``` +public static final int EmfSetColorAdjustment +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetTextColor {#EmfSetTextColor} +``` +public static final int EmfSetTextColor +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetBkColor {#EmfSetBkColor} +``` +public static final int EmfSetBkColor +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfOffsetClipRgn {#EmfOffsetClipRgn} +``` +public static final int EmfOffsetClipRgn +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfMoveToEx {#EmfMoveToEx} +``` +public static final int EmfMoveToEx +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetMetaRgn {#EmfSetMetaRgn} +``` +public static final int EmfSetMetaRgn +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfExcludeClipRect {#EmfExcludeClipRect} +``` +public static final int EmfExcludeClipRect +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfIntersectClipRect {#EmfIntersectClipRect} +``` +public static final int EmfIntersectClipRect +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfScaleViewportExtEx {#EmfScaleViewportExtEx} +``` +public static final int EmfScaleViewportExtEx +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfScaleWindowExtEx {#EmfScaleWindowExtEx} +``` +public static final int EmfScaleWindowExtEx +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSaveDC {#EmfSaveDC} +``` +public static final int EmfSaveDC +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfRestoreDC {#EmfRestoreDC} +``` +public static final int EmfRestoreDC +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetWorldTransform {#EmfSetWorldTransform} +``` +public static final int EmfSetWorldTransform +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfModifyWorldTransform {#EmfModifyWorldTransform} +``` +public static final int EmfModifyWorldTransform +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSelectObject {#EmfSelectObject} +``` +public static final int EmfSelectObject +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfCreatePen {#EmfCreatePen} +``` +public static final int EmfCreatePen +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfCreateBrushIndirect {#EmfCreateBrushIndirect} +``` +public static final int EmfCreateBrushIndirect +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfDeleteObject {#EmfDeleteObject} +``` +public static final int EmfDeleteObject +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfAngleArc {#EmfAngleArc} +``` +public static final int EmfAngleArc +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfEllipse {#EmfEllipse} +``` +public static final int EmfEllipse +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfRectangle {#EmfRectangle} +``` +public static final int EmfRectangle +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfRoundRect {#EmfRoundRect} +``` +public static final int EmfRoundRect +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfRoundArc {#EmfRoundArc} +``` +public static final int EmfRoundArc +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfChord {#EmfChord} +``` +public static final int EmfChord +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfPie {#EmfPie} +``` +public static final int EmfPie +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSelectPalette {#EmfSelectPalette} +``` +public static final int EmfSelectPalette +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfCreatePalette {#EmfCreatePalette} +``` +public static final int EmfCreatePalette +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetPaletteEntries {#EmfSetPaletteEntries} +``` +public static final int EmfSetPaletteEntries +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfResizePalette {#EmfResizePalette} +``` +public static final int EmfResizePalette +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfRealizePalette {#EmfRealizePalette} +``` +public static final int EmfRealizePalette +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfExtFloodFill {#EmfExtFloodFill} +``` +public static final int EmfExtFloodFill +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfLineTo {#EmfLineTo} +``` +public static final int EmfLineTo +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfArcTo {#EmfArcTo} +``` +public static final int EmfArcTo +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfPolyDraw {#EmfPolyDraw} +``` +public static final int EmfPolyDraw +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetArcDirection {#EmfSetArcDirection} +``` +public static final int EmfSetArcDirection +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetMiterLimit {#EmfSetMiterLimit} +``` +public static final int EmfSetMiterLimit +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfBeginPath {#EmfBeginPath} +``` +public static final int EmfBeginPath +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfEndPath {#EmfEndPath} +``` +public static final int EmfEndPath +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfCloseFigure {#EmfCloseFigure} +``` +public static final int EmfCloseFigure +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfFillPath {#EmfFillPath} +``` +public static final int EmfFillPath +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfStrokeAndFillPath {#EmfStrokeAndFillPath} +``` +public static final int EmfStrokeAndFillPath +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfStrokePath {#EmfStrokePath} +``` +public static final int EmfStrokePath +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfFlattenPath {#EmfFlattenPath} +``` +public static final int EmfFlattenPath +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfWidenPath {#EmfWidenPath} +``` +public static final int EmfWidenPath +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSelectClipPath {#EmfSelectClipPath} +``` +public static final int EmfSelectClipPath +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfAbortPath {#EmfAbortPath} +``` +public static final int EmfAbortPath +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfReserved069 {#EmfReserved069} +``` +public static final int EmfReserved069 +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfGdiComment {#EmfGdiComment} +``` +public static final int EmfGdiComment +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfFillRgn {#EmfFillRgn} +``` +public static final int EmfFillRgn +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfFrameRgn {#EmfFrameRgn} +``` +public static final int EmfFrameRgn +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfInvertRgn {#EmfInvertRgn} +``` +public static final int EmfInvertRgn +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfPaintRgn {#EmfPaintRgn} +``` +public static final int EmfPaintRgn +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfExtSelectClipRgn {#EmfExtSelectClipRgn} +``` +public static final int EmfExtSelectClipRgn +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfBitBlt {#EmfBitBlt} +``` +public static final int EmfBitBlt +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfStretchBlt {#EmfStretchBlt} +``` +public static final int EmfStretchBlt +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfMaskBlt {#EmfMaskBlt} +``` +public static final int EmfMaskBlt +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfPlgBlt {#EmfPlgBlt} +``` +public static final int EmfPlgBlt +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetDIBitsToDevice {#EmfSetDIBitsToDevice} +``` +public static final int EmfSetDIBitsToDevice +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfStretchDIBits {#EmfStretchDIBits} +``` +public static final int EmfStretchDIBits +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfExtCreateFontIndirect {#EmfExtCreateFontIndirect} +``` +public static final int EmfExtCreateFontIndirect +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfExtTextOutA {#EmfExtTextOutA} +``` +public static final int EmfExtTextOutA +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfExtTextOutW {#EmfExtTextOutW} +``` +public static final int EmfExtTextOutW +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfPolyBezier16 {#EmfPolyBezier16} +``` +public static final int EmfPolyBezier16 +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfPolygon16 {#EmfPolygon16} +``` +public static final int EmfPolygon16 +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfPolyline16 {#EmfPolyline16} +``` +public static final int EmfPolyline16 +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfPolyBezierTo16 {#EmfPolyBezierTo16} +``` +public static final int EmfPolyBezierTo16 +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfPolylineTo16 {#EmfPolylineTo16} +``` +public static final int EmfPolylineTo16 +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfPolyPolyline16 {#EmfPolyPolyline16} +``` +public static final int EmfPolyPolyline16 +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfPolyPolygon16 {#EmfPolyPolygon16} +``` +public static final int EmfPolyPolygon16 +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfPolyDraw16 {#EmfPolyDraw16} +``` +public static final int EmfPolyDraw16 +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfCreateMonoBrush {#EmfCreateMonoBrush} +``` +public static final int EmfCreateMonoBrush +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfCreateDibPatternBrushPt {#EmfCreateDibPatternBrushPt} +``` +public static final int EmfCreateDibPatternBrushPt +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfExtCreatePen {#EmfExtCreatePen} +``` +public static final int EmfExtCreatePen +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfPolyTextOutA {#EmfPolyTextOutA} +``` +public static final int EmfPolyTextOutA +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfPolyTextOutW {#EmfPolyTextOutW} +``` +public static final int EmfPolyTextOutW +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetIcmMode {#EmfSetIcmMode} +``` +public static final int EmfSetIcmMode +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfCreateColorSpace {#EmfCreateColorSpace} +``` +public static final int EmfCreateColorSpace +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetColorSpace {#EmfSetColorSpace} +``` +public static final int EmfSetColorSpace +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfDeleteColorSpace {#EmfDeleteColorSpace} +``` +public static final int EmfDeleteColorSpace +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfGlsRecord {#EmfGlsRecord} +``` +public static final int EmfGlsRecord +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfGlsBoundedRecord {#EmfGlsBoundedRecord} +``` +public static final int EmfGlsBoundedRecord +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfPixelFormat {#EmfPixelFormat} +``` +public static final int EmfPixelFormat +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfDrawEscape {#EmfDrawEscape} +``` +public static final int EmfDrawEscape +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfExtEscape {#EmfExtEscape} +``` +public static final int EmfExtEscape +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfStartDoc {#EmfStartDoc} +``` +public static final int EmfStartDoc +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSmallTextOut {#EmfSmallTextOut} +``` +public static final int EmfSmallTextOut +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfForceUfiMapping {#EmfForceUfiMapping} +``` +public static final int EmfForceUfiMapping +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfNamedEscpae {#EmfNamedEscpae} +``` +public static final int EmfNamedEscpae +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfColorCorrectPalette {#EmfColorCorrectPalette} +``` +public static final int EmfColorCorrectPalette +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetIcmProfileA {#EmfSetIcmProfileA} +``` +public static final int EmfSetIcmProfileA +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetIcmProfileW {#EmfSetIcmProfileW} +``` +public static final int EmfSetIcmProfileW +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfAlphaBlend {#EmfAlphaBlend} +``` +public static final int EmfAlphaBlend +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetLayout {#EmfSetLayout} +``` +public static final int EmfSetLayout +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfTransparentBlt {#EmfTransparentBlt} +``` +public static final int EmfTransparentBlt +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfReserved117 {#EmfReserved117} +``` +public static final int EmfReserved117 +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfGradientFill {#EmfGradientFill} +``` +public static final int EmfGradientFill +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetLinkedUfis {#EmfSetLinkedUfis} +``` +public static final int EmfSetLinkedUfis +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfSetTextJustification {#EmfSetTextJustification} +``` +public static final int EmfSetTextJustification +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfColorMatchToTargetW {#EmfColorMatchToTargetW} +``` +public static final int EmfColorMatchToTargetW +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfCreateColorSpaceW {#EmfCreateColorSpaceW} +``` +public static final int EmfCreateColorSpaceW +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfMax {#EmfMax} +``` +public static final int EmfMax +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### EmfPlusRecordBase {#EmfPlusRecordBase} +``` +public static final int EmfPlusRecordBase +``` + + +请参阅 MSDN 库中 GDI 部分的“Enhanced-Format Metafiles”。 + +### Invalid {#Invalid} +``` +public static final int Invalid +``` + + +指示无效数据。 + +### Header {#Header} +``` +public static final int Header +``` + + +标识 EMF+ 标头的记录。 + +### Min {#Min} +``` +public static final int Min +``` + + +此枚举的最小值。 + +### EndOfFile {#EndOfFile} +``` +public static final int EndOfFile +``` + + +标识标记元文件最后一个 EMF+ 记录的记录。 + +### Comment {#Comment} +``` +public static final int Comment +``` + + +请参阅 `M:Graphics.AddMetafileComment`。 + +### GetDC {#GetDC} +``` +public static final int GetDC +``` + + +请参阅 `M:Graphics.GetHdc`。 + +### MultiFormatStart {#MultiFormatStart} +``` +public static final int MultiFormatStart +``` + + +标记多格式部分的开始。 + +### MultiFormatSection {#MultiFormatSection} +``` +public static final int MultiFormatSection +``` + + +标记多格式部分。 + +### MultiFormatEnd {#MultiFormatEnd} +``` +public static final int MultiFormatEnd +``` + + +标记多格式部分的结束。 + +### Object {#Object} +``` +public static final int Object +``` + + +标记一个对象。 + +### Clear {#Clear} +``` +public static final int Clear +``` + + +参见 `M:Graphics.Clear`。 + +### FillRects {#FillRects} +``` +public static final int FillRects +``` + + +参见 `M:Graphics.FillRectangles` 方法。 + +### DrawRects {#DrawRects} +``` +public static final int DrawRects +``` + + +参见 `M:Graphics.DrawRectangles` 方法。 + +### FillPolygon {#FillPolygon} +``` +public static final int FillPolygon +``` + + +参见 `M:Graphics.FillPolygon` 方法。 + +### DrawLines {#DrawLines} +``` +public static final int DrawLines +``` + + +参见 `M:Graphics.DrawLines` 方法。 + +### FillEllipse {#FillEllipse} +``` +public static final int FillEllipse +``` + + +参见 `M:Graphics.FillEllipse` 方法。 + +### DrawEllipse {#DrawEllipse} +``` +public static final int DrawEllipse +``` + + +参见 `M:Graphics.DrawEllipse` 方法。 + +### FillPie {#FillPie} +``` +public static final int FillPie +``` + + +参见 `M:Graphics.FillPie` 方法。 + +### DrawPie {#DrawPie} +``` +public static final int DrawPie +``` + + +参见 `M:Graphics.DrawPie` 方法。 + +### DrawArc {#DrawArc} +``` +public static final int DrawArc +``` + + +参见 `M:Graphics.DrawArc` 方法。 + +### FillRegion {#FillRegion} +``` +public static final int FillRegion +``` + + +参见 `M:Graphics.FillRegion`。 + +### FillPath {#FillPath} +``` +public static final int FillPath +``` + + +参见 `M:Graphics.FillPath`。 + +### DrawPath {#DrawPath} +``` +public static final int DrawPath +``` + + +参见 `M:Graphics.DrawPath`。 + +### FillClosedCurve {#FillClosedCurve} +``` +public static final int FillClosedCurve +``` + + +参见 `M:Graphics.FillClosedCurve` 方法。 + +### DrawClosedCurve {#DrawClosedCurve} +``` +public static final int DrawClosedCurve +``` + + +参见 `M:Graphics.DrawClosedCurve` 方法。 + +### DrawCurve {#DrawCurve} +``` +public static final int DrawCurve +``` + + +参见 `M:Graphics.DrawCurve` 方法。 + +### DrawBeziers {#DrawBeziers} +``` +public static final int DrawBeziers +``` + + +参见 `M:Graphics.DrawBeziers` 方法。 + +### DrawImage {#DrawImage} +``` +public static final int DrawImage +``` + + +参见 `M:Graphics.DrawImage` 方法。 + +### DrawImagePoints {#DrawImagePoints} +``` +public static final int DrawImagePoints +``` + + +参见 `M:Graphics.DrawImagePoints` 方法。 + +### DrawString {#DrawString} +``` +public static final int DrawString +``` + + +参见 `M:Graphics.DrawString` 方法。 + +### SetRenderingOrigin {#SetRenderingOrigin} +``` +public static final int SetRenderingOrigin +``` + + +参见 `M:Graphics.RenderingOrigin`。 + +### SetAntiAliasMode {#SetAntiAliasMode} +``` +public static final int SetAntiAliasMode +``` + + +参见 `M:Graphics.SmoothingMode`。 + +### SetTextRenderingHint {#SetTextRenderingHint} +``` +public static final int SetTextRenderingHint +``` + + +参见 `M:Graphics.TextRenderingHint`。 + +### SetTextContrast {#SetTextContrast} +``` +public static final int SetTextContrast +``` + + +参见 `M:Graphics.TextContrast`。 + +### SetInterpolationMode {#SetInterpolationMode} +``` +public static final int SetInterpolationMode +``` + + +参见 `M:Graphics.InterpolationMode`。 + +### SetPixelOffsetMode {#SetPixelOffsetMode} +``` +public static final int SetPixelOffsetMode +``` + + +参见 `M:Graphics.PixelOffsetMode`。 + +### SetCompositingMode {#SetCompositingMode} +``` +public static final int SetCompositingMode +``` + + +参见 `M:Graphics.CompositingMode`。 + +### SetCompositingQuality {#SetCompositingQuality} +``` +public static final int SetCompositingQuality +``` + + +参见 `M:Graphics.CompositingQuality`。 + +### Save {#Save} +``` +public static final int Save +``` + + +参见 `M:Graphics.Save`。 + +### Restore {#Restore} +``` +public static final int Restore +``` + + +参见 `M:Graphics.Restore`。 + +### BeginContainer {#BeginContainer} +``` +public static final int BeginContainer +``` + + +参见 `M:Graphics.BeginContainer` 方法。 + +### BeginContainerNoParams {#BeginContainerNoParams} +``` +public static final int BeginContainerNoParams +``` + + +参见 `M:Graphics.BeginContainer` 方法。 + +### EndContainer {#EndContainer} +``` +public static final int EndContainer +``` + + +参见 `M:Graphics.EndContainer`。 + +### SetWorldTransform {#SetWorldTransform} +``` +public static final int SetWorldTransform +``` + + +参见 `M:Graphics.TransformPoints` 方法。 + +### ResetWorldTransform {#ResetWorldTransform} +``` +public static final int ResetWorldTransform +``` + + +参见 `M:Graphics.ResetTransform`。 + +### MultiplyWorldTransform {#MultiplyWorldTransform} +``` +public static final int MultiplyWorldTransform +``` + + +参见 `M:Graphics.MultiplyTransform` 方法。 + +### TranslateWorldTransform {#TranslateWorldTransform} +``` +public static final int TranslateWorldTransform +``` + + +参见 `M:Graphics.TransformPoints` 方法。 + +### ScaleWorldTransform {#ScaleWorldTransform} +``` +public static final int ScaleWorldTransform +``` + + +参见 `M:Graphics.ScaleTransform` 方法。 + +### RotateWorldTransform {#RotateWorldTransform} +``` +public static final int RotateWorldTransform +``` + + +参见 `M:Graphics.RotateTransform` 方法。 + +### SetPageTransform {#SetPageTransform} +``` +public static final int SetPageTransform +``` + + +参见 `M:Graphics.TransformPoints` 方法。 + +### ResetClip {#ResetClip} +``` +public static final int ResetClip +``` + + +参见 `M:Graphics.ResetClip`。 + +### SetClipRect {#SetClipRect} +``` +public static final int SetClipRect +``` + + +参见 `M:Graphics.SetClip` 方法。 + +### SetClipPath {#SetClipPath} +``` +public static final int SetClipPath +``` + + +参见 `M:Graphics.SetClip` 方法。 + +### SetClipRegion {#SetClipRegion} +``` +public static final int SetClipRegion +``` + + +参见 `M:Graphics.SetClip` 方法。 + +### OffsetClip {#OffsetClip} +``` +public static final int OffsetClip +``` + + +参见 `M:Graphics.TranslateClip` 方法。 + +### DrawDriverString {#DrawDriverString} +``` +public static final int DrawDriverString +``` + + +指定字符字符串、位置和格式信息。 + +### Max {#Max} +``` +public static final int Max +``` + + +此枚举的最大值。 + +### Total {#Total} +``` +public static final int Total +``` + + +内部使用。 + +### WmfRecordBase {#WmfRecordBase} +``` +public static final int WmfRecordBase +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfSaveDC {#WmfSaveDC} +``` +public static final int WmfSaveDC +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfRealizePalette {#WmfRealizePalette} +``` +public static final int WmfRealizePalette +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfSetPalEntries {#WmfSetPalEntries} +``` +public static final int WmfSetPalEntries +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfCreatePalette {#WmfCreatePalette} +``` +public static final int WmfCreatePalette +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfSetBkMode {#WmfSetBkMode} +``` +public static final int WmfSetBkMode +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfSetMapMode {#WmfSetMapMode} +``` +public static final int WmfSetMapMode +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfSetROP2 {#WmfSetROP2} +``` +public static final int WmfSetROP2 +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfSetRelAbs {#WmfSetRelAbs} +``` +public static final int WmfSetRelAbs +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfSetPolyFillMode {#WmfSetPolyFillMode} +``` +public static final int WmfSetPolyFillMode +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfSetStretchBltMode {#WmfSetStretchBltMode} +``` +public static final int WmfSetStretchBltMode +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfSetTextCharExtra {#WmfSetTextCharExtra} +``` +public static final int WmfSetTextCharExtra +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfRestoreDC {#WmfRestoreDC} +``` +public static final int WmfRestoreDC +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfInvertRegion {#WmfInvertRegion} +``` +public static final int WmfInvertRegion +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfPaintRegion {#WmfPaintRegion} +``` +public static final int WmfPaintRegion +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfSelectClipRegion {#WmfSelectClipRegion} +``` +public static final int WmfSelectClipRegion +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfSelectObject {#WmfSelectObject} +``` +public static final int WmfSelectObject +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfSetTextAlign {#WmfSetTextAlign} +``` +public static final int WmfSetTextAlign +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfResizePalette {#WmfResizePalette} +``` +public static final int WmfResizePalette +``` + + +根据指定值增加或减少逻辑调色板的大小。 + +### WmfDibCreatePatternBrush {#WmfDibCreatePatternBrush} +``` +public static final int WmfDibCreatePatternBrush +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfSetLayout {#WmfSetLayout} +``` +public static final int WmfSetLayout +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfDeleteObject {#WmfDeleteObject} +``` +public static final int WmfDeleteObject +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfCreatePatternBrush {#WmfCreatePatternBrush} +``` +public static final int WmfCreatePatternBrush +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfSetBkColor {#WmfSetBkColor} +``` +public static final int WmfSetBkColor +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfSetTextColor {#WmfSetTextColor} +``` +public static final int WmfSetTextColor +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfSetTextJustification {#WmfSetTextJustification} +``` +public static final int WmfSetTextJustification +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfSetWindowOrg {#WmfSetWindowOrg} +``` +public static final int WmfSetWindowOrg +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfSetWindowExt {#WmfSetWindowExt} +``` +public static final int WmfSetWindowExt +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfSetViewportOrg {#WmfSetViewportOrg} +``` +public static final int WmfSetViewportOrg +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfSetViewportExt {#WmfSetViewportExt} +``` +public static final int WmfSetViewportExt +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfOffsetWindowOrg {#WmfOffsetWindowOrg} +``` +public static final int WmfOffsetWindowOrg +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfOffsetViewportOrg {#WmfOffsetViewportOrg} +``` +public static final int WmfOffsetViewportOrg +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfLineTo {#WmfLineTo} +``` +public static final int WmfLineTo +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfMoveTo {#WmfMoveTo} +``` +public static final int WmfMoveTo +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfOffsetCilpRgn {#WmfOffsetCilpRgn} +``` +public static final int WmfOffsetCilpRgn +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfFillRegion {#WmfFillRegion} +``` +public static final int WmfFillRegion +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfSetMapperFlags {#WmfSetMapperFlags} +``` +public static final int WmfSetMapperFlags +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfSelectPalette {#WmfSelectPalette} +``` +public static final int WmfSelectPalette +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfCreatePenIndirect {#WmfCreatePenIndirect} +``` +public static final int WmfCreatePenIndirect +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfCreateFontIndirect {#WmfCreateFontIndirect} +``` +public static final int WmfCreateFontIndirect +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfCreateBrushIndirect {#WmfCreateBrushIndirect} +``` +public static final int WmfCreateBrushIndirect +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfPolygon {#WmfPolygon} +``` +public static final int WmfPolygon +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfPolyline {#WmfPolyline} +``` +public static final int WmfPolyline +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfScaleWindowExt {#WmfScaleWindowExt} +``` +public static final int WmfScaleWindowExt +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfScaleViewportExt {#WmfScaleViewportExt} +``` +public static final int WmfScaleViewportExt +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfExcludeClipRect {#WmfExcludeClipRect} +``` +public static final int WmfExcludeClipRect +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfIntersectClipRect {#WmfIntersectClipRect} +``` +public static final int WmfIntersectClipRect +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfEllipse {#WmfEllipse} +``` +public static final int WmfEllipse +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfFloodFill {#WmfFloodFill} +``` +public static final int WmfFloodFill +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfRectangle {#WmfRectangle} +``` +public static final int WmfRectangle +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfSetPixel {#WmfSetPixel} +``` +public static final int WmfSetPixel +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfFrameRegion {#WmfFrameRegion} +``` +public static final int WmfFrameRegion +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfAnimatePalette {#WmfAnimatePalette} +``` +public static final int WmfAnimatePalette +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfTextOut {#WmfTextOut} +``` +public static final int WmfTextOut +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfPolyPolygon {#WmfPolyPolygon} +``` +public static final int WmfPolyPolygon +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfExtFloodFill {#WmfExtFloodFill} +``` +public static final int WmfExtFloodFill +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfRoundRect {#WmfRoundRect} +``` +public static final int WmfRoundRect +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfPatBlt {#WmfPatBlt} +``` +public static final int WmfPatBlt +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfEscape {#WmfEscape} +``` +public static final int WmfEscape +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfCreateRegion {#WmfCreateRegion} +``` +public static final int WmfCreateRegion +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfArc {#WmfArc} +``` +public static final int WmfArc +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfPie {#WmfPie} +``` +public static final int WmfPie +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfChord {#WmfChord} +``` +public static final int WmfChord +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfBitBlt {#WmfBitBlt} +``` +public static final int WmfBitBlt +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfDibBitBlt {#WmfDibBitBlt} +``` +public static final int WmfDibBitBlt +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfExtTextOut {#WmfExtTextOut} +``` +public static final int WmfExtTextOut +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfStretchBlt {#WmfStretchBlt} +``` +public static final int WmfStretchBlt +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfDibStretchBlt {#WmfDibStretchBlt} +``` +public static final int WmfDibStretchBlt +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfSetDibToDev {#WmfSetDibToDev} +``` +public static final int WmfSetDibToDev +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + +### WmfStretchDib {#WmfStretchDib} +``` +public static final int WmfStretchDib +``` + + +参见 MSDN 库中 GDI 部分的 “Windows-Format Metafiles”。 + diff --git a/chinese/java/com.aspose.drawing.imaging/emftype/_index.md b/chinese/java/com.aspose.drawing.imaging/emftype/_index.md new file mode 100644 index 000000000..03b28b7fa --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/emftype/_index.md @@ -0,0 +1,46 @@ +--- +title: EmfType +second_title: Aspose.Drawing for Java API 参考 +description: 指定放置在增强型图元文件(EMF)中的记录的性质。 +type: docs +weight: 18 +url: /zh/java/com.aspose.drawing.imaging/emftype/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class EmfType extends System.Enum +``` + +指定放置在增强型图元文件(EMF)中的记录的性质。此枚举在 [Metafile](../../com.aspose.drawing.imaging/metafile) 类的多个构造函数中使用。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [EmfOnly](#EmfOnly) | 指定元文件中的所有记录都是 EMF 记录,可由 GDI 或 GDI+ 显示。 | +| [EmfPlusOnly](#EmfPlusOnly) | 指定元文件中的所有记录都是 EMF+ 记录,可由 GDI+ 显示,但不能由 GDI 显示。 | +| [EmfPlusDual](#EmfPlusDual) | 指定元文件中的所有 EMF+ 记录都关联到另一个 EMF 记录。 | +### EmfOnly {#EmfOnly} +``` +public static final int EmfOnly +``` + + +指定元文件中的所有记录都是 EMF 记录,可由 GDI 或 GDI+ 显示。 + +### EmfPlusOnly {#EmfPlusOnly} +``` +public static final int EmfPlusOnly +``` + + +指定元文件中的所有记录都是 EMF+ 记录,可由 GDI+ 显示,但不能由 GDI 显示。 + +### EmfPlusDual {#EmfPlusDual} +``` +public static final int EmfPlusDual +``` + + +指定元文件中的所有 EMF+ 记录都关联到另一个 EMF 记录。类型为 `EmfType.EmfPlusDual` 的元文件可由 GDI 或 GDI+ 显示。 + diff --git a/chinese/java/com.aspose.drawing.imaging/encoder/_index.md b/chinese/java/com.aspose.drawing.imaging/encoder/_index.md new file mode 100644 index 000000000..7f399bdb8 --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/encoder/_index.md @@ -0,0 +1,142 @@ +--- +title: 编码器 +second_title: Aspose.Drawing for Java API 参考 +description: 对象封装了全局唯一标识符 GUID,用于标识图像编码器参数的类别。 +type: docs +weight: 19 +url: /zh/java/com.aspose.drawing.imaging/encoder/ +--- +**Inheritance:** +java.lang.Object +``` +public final class Encoder +``` + +对象 [Encoder](../../com.aspose.drawing.imaging/encoder) 封装了全局唯一标识符 (GUID),用于标识图像编码器参数的类别。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [Encoder(UUID guid)](#Encoder-java.util.UUID-) | 从指定的全局唯一标识符 (GUID) 初始化 [Encoder](../../com.aspose.drawing.imaging/encoder) 类的新实例。 | +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [COMPRESSION](#COMPRESSION) | 一个使用全局唯一标识符初始化的 [Encoder](../../com.aspose.drawing.imaging/encoder) 对象,用于压缩参数类别。 | +| [COLOR_DEPTH](#COLOR-DEPTH) | 一个使用全局唯一标识符初始化的 [Encoder](../../com.aspose.drawing.imaging/encoder) 对象,用于颜色深度参数类别。 | +| [SCAN_METHOD](#SCAN-METHOD) | 表示一个使用全局唯一标识符初始化的 [Encoder](../../com.aspose.drawing.imaging/encoder) 对象,用于扫描方法参数类别。 | +| [VERSION](#VERSION) | 表示一个使用全局唯一标识符初始化的 [Encoder](../../com.aspose.drawing.imaging/encoder) 对象,用于版本参数类别。 | +| [RENDER_METHOD](#RENDER-METHOD) | 表示一个使用全局唯一标识符初始化的 [Encoder](../../com.aspose.drawing.imaging/encoder) 对象,用于渲染方法参数类别。 | +| [QUALITY](#QUALITY) | 表示一个使用全局唯一标识符初始化的 [Encoder](../../com.aspose.drawing.imaging/encoder) 对象,用于质量参数类别。 | +| [TRANSFORMATION](#TRANSFORMATION) | 表示一个使用全局唯一标识符初始化的 [Encoder](../../com.aspose.drawing.imaging/encoder) 对象,用于变换参数类别。 | +| [LUMINANCE_TABLE](#LUMINANCE-TABLE) | 表示一个使用全局唯一标识符初始化的 [Encoder](../../com.aspose.drawing.imaging/encoder) 对象,用于亮度表参数类别。 | +| [CHROMINANCE_TABLE](#CHROMINANCE-TABLE) | 一个使用全局唯一标识符初始化的 [Encoder](../../com.aspose.drawing.imaging/encoder) 对象,用于色度表参数类别。 | +| [SAVE_FLAG](#SAVE-FLAG) | 表示一个使用全局唯一标识符初始化的 [Encoder](../../com.aspose.drawing.imaging/encoder) 对象,用于保存标志参数类别。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getGuid()](#getGuid--) | 获取用于标识图像编码器参数类别的全局唯一标识符 (GUID)。 | +### Encoder(UUID guid) {#Encoder-java.util.UUID-} +``` +public Encoder(UUID guid) +``` + + +从指定的全局唯一标识符 (GUID) 初始化 [Encoder](../../com.aspose.drawing.imaging/encoder) 类的新实例。该 GUID 指定图像编码器参数类别。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| guid | java.util.UUID | 用于标识图像编码器参数类别的全局唯一标识符。 | + +### COMPRESSION {#COMPRESSION} +``` +public static final Encoder COMPRESSION +``` + + +一个使用全局唯一标识符初始化的 [Encoder](../../com.aspose.drawing.imaging/encoder) 对象,用于压缩参数类别。 + +### COLOR_DEPTH {#COLOR-DEPTH} +``` +public static final Encoder COLOR_DEPTH +``` + + +一个使用全局唯一标识符初始化的 [Encoder](../../com.aspose.drawing.imaging/encoder) 对象,用于颜色深度参数类别。 + +### SCAN_METHOD {#SCAN-METHOD} +``` +public static final Encoder SCAN_METHOD +``` + + +表示一个使用全局唯一标识符初始化的 [Encoder](../../com.aspose.drawing.imaging/encoder) 对象,用于扫描方法参数类别。 + +### VERSION {#VERSION} +``` +public static final Encoder VERSION +``` + + +表示一个使用全局唯一标识符初始化的 [Encoder](../../com.aspose.drawing.imaging/encoder) 对象,用于版本参数类别。 + +### RENDER_METHOD {#RENDER-METHOD} +``` +public static final Encoder RENDER_METHOD +``` + + +表示一个使用全局唯一标识符初始化的 [Encoder](../../com.aspose.drawing.imaging/encoder) 对象,用于渲染方法参数类别。 + +### QUALITY {#QUALITY} +``` +public static final Encoder QUALITY +``` + + +表示一个使用全局唯一标识符初始化的 [Encoder](../../com.aspose.drawing.imaging/encoder) 对象,用于质量参数类别。 + +### TRANSFORMATION {#TRANSFORMATION} +``` +public static final Encoder TRANSFORMATION +``` + + +表示一个使用全局唯一标识符初始化的 [Encoder](../../com.aspose.drawing.imaging/encoder) 对象,用于变换参数类别。 + +### LUMINANCE_TABLE {#LUMINANCE-TABLE} +``` +public static final Encoder LUMINANCE_TABLE +``` + + +表示一个使用全局唯一标识符初始化的 [Encoder](../../com.aspose.drawing.imaging/encoder) 对象,用于亮度表参数类别。 + +### CHROMINANCE_TABLE {#CHROMINANCE-TABLE} +``` +public static final Encoder CHROMINANCE_TABLE +``` + + +一个使用全局唯一标识符初始化的 [Encoder](../../com.aspose.drawing.imaging/encoder) 对象,用于色度表参数类别。 + +### SAVE_FLAG {#SAVE-FLAG} +``` +public static final Encoder SAVE_FLAG +``` + + +表示一个使用全局唯一标识符初始化的 [Encoder](../../com.aspose.drawing.imaging/encoder) 对象,用于保存标志参数类别。 + +### getGuid() {#getGuid--} +``` +public UUID getGuid() +``` + + +获取用于标识图像编码器参数类别的全局唯一标识符 (GUID)。 + +**Returns:** +java.util.UUID diff --git a/chinese/java/com.aspose.drawing.imaging/encoderparameter/_index.md b/chinese/java/com.aspose.drawing.imaging/encoderparameter/_index.md new file mode 100644 index 000000000..6be894983 --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/encoderparameter/_index.md @@ -0,0 +1,325 @@ +--- +title: EncoderParameter +second_title: Aspose.Drawing for Java API 参考 +description: 用于向图像编码器传递单个值或值数组。 +type: docs +weight: 20 +url: /zh/java/com.aspose.drawing.imaging/encoderparameter/ +--- +**Inheritance:** +java.lang.Object + +**All Implemented Interfaces:** +com.aspose.ms.System.IDisposable +``` +public final class EncoderParameter implements System.IDisposable +``` + +用于向图像编码器传递一个值或值数组。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [EncoderParameter(Encoder encoder, byte value)](#EncoderParameter-com.aspose.drawing.imaging.Encoder-byte-) | 使用指定的 `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) 对象和一个无符号 8 位整数,初始化 [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) 类的新实例。 | +| [EncoderParameter(Encoder encoder, byte value, boolean undefined)](#EncoderParameter-com.aspose.drawing.imaging.Encoder-byte-boolean-) | 使用指定的 `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) 对象和一个 8 位值,初始化 [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) 类的新实例。 | +| [EncoderParameter(Encoder encoder, short value)](#EncoderParameter-com.aspose.drawing.imaging.Encoder-short-) | 使用指定的 `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) 对象和一个 16 位整数,初始化 [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) 类的新实例。 | +| [EncoderParameter(Encoder encoder, long value)](#EncoderParameter-com.aspose.drawing.imaging.Encoder-long-) | 使用指定的 `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) 对象和一个 64 位整数,初始化 [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) 类的新实例。 | +| [EncoderParameter(Encoder encoder, int numerator, int denominator)](#EncoderParameter-com.aspose.drawing.imaging.Encoder-int-int-) | 使用指定的 \{@link \#\#System\} 对象和一对 32 位整数,初始化 [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) 类的新实例。 | +| [EncoderParameter(Encoder encoder, long rangebegin, long rangeend)](#EncoderParameter-com.aspose.drawing.imaging.Encoder-long-long-) | 使用指定的 `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) 对象和一对 64 位整数,初始化 [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) 类的新实例。 | +| [EncoderParameter(Encoder encoder, int numerator1, int demoninator1, int numerator2, int demoninator2)](#EncoderParameter-com.aspose.drawing.imaging.Encoder-int-int-int-int-) | 使用指定的 `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) 对象和四个 32 位整数,初始化 [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) 类的新实例。 | +| [EncoderParameter(Encoder encoder, String value)](#EncoderParameter-com.aspose.drawing.imaging.Encoder-java.lang.String-) | Initializes a new instance of the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) class with the specified `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object and a character string. | +| [EncoderParameter(Encoder encoder, byte[] value)](#EncoderParameter-com.aspose.drawing.imaging.Encoder-byte---) | Initializes a new instance of the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) class with the specified `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object and an array of unsigned 8-bit integers. | +| [EncoderParameter(Encoder encoder, byte[] value, boolean undefined)](#EncoderParameter-com.aspose.drawing.imaging.Encoder-byte---boolean-) | Initializes a new instance of the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) class with the specified `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object and an array of bytes. | +| [EncoderParameter(Encoder encoder, short[] value)](#EncoderParameter-com.aspose.drawing.imaging.Encoder-short---) | Initializes a new instance of the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) class with the specified `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object and an array of 16-bit integers. | +| [EncoderParameter(Encoder encoder, long[] value)](#EncoderParameter-com.aspose.drawing.imaging.Encoder-long---) | Initializes a new instance of the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) class with the specified `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object and an array of 64-bit integers. | +| [EncoderParameter(Encoder encoder, int[] numerator, int[] denominator)](#EncoderParameter-com.aspose.drawing.imaging.Encoder-int---int---) | Initializes a new instance of the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) class with the specified `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object and two arrays of 32-bit integers. | +| [EncoderParameter(Encoder encoder, long[] rangebegin, long[] rangeend)](#EncoderParameter-com.aspose.drawing.imaging.Encoder-long---long---) | Initializes a new instance of the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) class with the specified `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object and two arrays of 64-bit integers. | +| [EncoderParameter(Encoder encoder, int[] numerator1, int[] denominator1, int[] numerator2, int[] denominator2)](#EncoderParameter-com.aspose.drawing.imaging.Encoder-int---int---int---int---) | Initializes a new instance of the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) class with the specified `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object and four arrays of 32-bit integers. | +| [EncoderParameter(Encoder encoder, int numberOfValues, int type, int value)](#EncoderParameter-com.aspose.drawing.imaging.Encoder-int-int-int-) | Initializes a new instance of the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) class with the specified `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object and three integers that specify the number of values, the data type of the values, and a pointer to the values stored in the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getEncoder()](#getEncoder--) | Gets or sets the `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object associated with this [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. | +| [setEncoder(Encoder value)](#setEncoder-com.aspose.drawing.imaging.Encoder-) | Gets or sets the `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object associated with this [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. | +| [getNumberOfValues()](#getNumberOfValues--) | Gets the number of elements in the array of values stored in this [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. | +| [dispose()](#dispose--) | Releases all resources used by this [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. | +### EncoderParameter(Encoder encoder, byte value) {#EncoderParameter-com.aspose.drawing.imaging.Encoder-byte-} +``` +public EncoderParameter(Encoder encoder, byte value) +``` + + +Initializes a new instance of the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) class with the specified `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object and one unsigned 8-bit integer. Sets the `EncoderParameter.ValueType` property to `EncoderParameterValueType.ValueTypeByte`, and sets the `EncoderParameter.NumberOfValues` property to 1. + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| encoder | [Encoder](../../com.aspose.drawing.imaging/encoder) | An `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object that encapsulates the globally unique identifier of the parameter category. | +| value | byte | An 8-bit unsigned integer that specifies the value stored in the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. | + +### EncoderParameter(Encoder encoder, byte value, boolean undefined) {#EncoderParameter-com.aspose.drawing.imaging.Encoder-byte-boolean-} +``` +public EncoderParameter(Encoder encoder, byte value, boolean undefined) +``` + + +Initializes a new instance of the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) class with the specified `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object and one 8-bit value. Sets the `EncoderParameter.ValueType` property to `EncoderParameterValueType.ValueTypeUndefined` or `EncoderParameterValueType.ValueTypeByte`, and sets the `EncoderParameter.NumberOfValues` property to 1. + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| encoder | [Encoder](../../com.aspose.drawing.imaging/encoder) | An `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object that encapsulates the globally unique identifier of the parameter category. | +| value | byte | A byte that specifies the value stored in the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. | +| undefined | 布尔型 | If true, the `EncoderParameter.ValueType` property is set to `EncoderParameterValueType.ValueTypeUndefined`; otherwise, the `EncoderParameter.ValueType` property is set to `EncoderParameterValueType.ValueTypeByte`. | + +### EncoderParameter(Encoder encoder, short value) {#EncoderParameter-com.aspose.drawing.imaging.Encoder-short-} +``` +public EncoderParameter(Encoder encoder, short value) +``` + + +Initializes a new instance of the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) class with the specified `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object and one, 16-bit integer. Sets the `EncoderParameter.ValueType` property to `EncoderParameterValueType.ValueTypeShort`, and sets the `EncoderParameter.NumberOfValues` property to 1. + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| encoder | [Encoder](../../com.aspose.drawing.imaging/encoder) | An `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object that encapsulates the globally unique identifier of the parameter category. | +| value | short | A 16-bit integer that specifies the value stored in the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. Must be nonnegative. | + +### EncoderParameter(Encoder encoder, long value) {#EncoderParameter-com.aspose.drawing.imaging.Encoder-long-} +``` +public EncoderParameter(Encoder encoder, long value) +``` + + +Initializes a new instance of the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) class with the specified `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object and one 64-bit integer. Sets the `EncoderParameter.ValueType` property to `EncoderParameterValueType.ValueTypeLong` (32 bits), and sets the `EncoderParameter.NumberOfValues` property to 1. + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| encoder | [Encoder](../../com.aspose.drawing.imaging/encoder) | An `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object that encapsulates the globally unique identifier of the parameter category. | +| value | long | A 64-bit integer that specifies the value stored in the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. Must be nonnegative. This parameter is converted to a 32-bit integer before it is stored in the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. | + +### EncoderParameter(Encoder encoder, int numerator, int denominator) {#EncoderParameter-com.aspose.drawing.imaging.Encoder-int-int-} +``` +public EncoderParameter(Encoder encoder, int numerator, int denominator) +``` + + +Initializes a new instance of the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) class with the specified \{@link \#\#System\} object and a pair of 32-bit integers. The pair of integers represents a fraction, the first integer being the numerator, and the second integer being the denominator. Sets the `EncoderParameter.ValueType` property to `EncoderParameterValueType.ValueTypeRational`, and sets the `EncoderParameter.NumberOfValues` property to 1. + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| encoder | [Encoder](../../com.aspose.drawing.imaging/encoder) | An `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object that encapsulates the globally unique identifier of the parameter category. | +| numerator | int | A 32-bit integer that represents the numerator of a fraction. Must be nonnegative. | +| denominator | int | A 32-bit integer that represents the denominator of a fraction. Must be nonnegative. | + +### EncoderParameter(Encoder encoder, long rangebegin, long rangeend) {#EncoderParameter-com.aspose.drawing.imaging.Encoder-long-long-} +``` +public EncoderParameter(Encoder encoder, long rangebegin, long rangeend) +``` + + +Initializes a new instance of the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) class with the specified `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object and a pair of 64-bit integers. The pair of integers represents a range of integers, the first integer being the smallest number in the range, and the second integer being the largest number in the range. Sets the `EncoderParameter.ValueType` property to `EncoderParameterValueType.ValueTypeLongRange`, and sets the `P:EncoderParameter.NumberOfValues` property to 1. + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| encoder | [Encoder](../../com.aspose.drawing.imaging/encoder) | An `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object that encapsulates the globally unique identifier of the parameter category. | +| rangebegin | long | A 64-bit integer that represents the smallest number in a range of integers. Must be nonnegative. This parameter is converted to a 32-bit integer before it is stored in the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. | +| rangeend | long | A 64-bit integer that represents the largest number in a range of integers. Must be nonnegative. This parameter is converted to a 32-bit integer before it is stored in the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. | + +### EncoderParameter(Encoder encoder, int numerator1, int demoninator1, int numerator2, int demoninator2) {#EncoderParameter-com.aspose.drawing.imaging.Encoder-int-int-int-int-} +``` +public EncoderParameter(Encoder encoder, int numerator1, int demoninator1, int numerator2, int demoninator2) +``` + + +Initializes a new instance of the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) class with the specified `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object and four, 32-bit integers. The four integers represent a range of fractions. The first two integers represent the smallest fraction in the range, and the remaining two integers represent the largest fraction in the range. Sets the `P:EncoderParameter.ValueType` property to `EncoderParameterValueType.ValueTypeRationalRange`, and sets the `P:EncoderParameter.NumberOfValues` property to 1. + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| encoder | [Encoder](../../com.aspose.drawing.imaging/encoder) | An `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object that encapsulates the globally unique identifier of the parameter category. | +| numerator1 | int | A 32-bit integer that represents the numerator of the smallest fraction in the range. Must be nonnegative. | +| demoninator1 | int | A 32-bit integer that represents the denominator of the smallest fraction in the range. Must be nonnegative. | +| numerator2 | int | A 32-bit integer that represents the numerator of the largest fraction in the range. Must be nonnegative. | +| demoninator2 | int | A 32-bit integer that represents the denominator of the largest fraction in the range. Must be nonnegative. | + +### EncoderParameter(Encoder encoder, String value) {#EncoderParameter-com.aspose.drawing.imaging.Encoder-java.lang.String-} +``` +public EncoderParameter(Encoder encoder, String value) +``` + + +Initializes a new instance of the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) class with the specified `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object and a character string. The string is converted to a null-terminated ASCII string before it is stored in the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. Sets the `P:EncoderParameter.ValueType` property to `EncoderParameterValueType.ValueTypeAscii`, and sets the `P:EncoderParameter.NumberOfValues` property to the length of the ASCII string including the NULL terminator. + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| encoder | [Encoder](../../com.aspose.drawing.imaging/encoder) | An `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object that encapsulates the globally unique identifier of the parameter category. | +| value | java.lang.String | A String that specifies the value stored in the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. | + +### EncoderParameter(Encoder encoder, byte[] value) {#EncoderParameter-com.aspose.drawing.imaging.Encoder-byte---} +``` +public EncoderParameter(Encoder encoder, byte[] value) +``` + + +Initializes a new instance of the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) class with the specified `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object and an array of unsigned 8-bit integers. Sets the `P:EncoderParameter.ValueType` property to `EncoderParameterValueType.ValueTypeByte`, and sets the `P:EncoderParameter.NumberOfValues` property to the number of elements in the array. + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| encoder | [Encoder](../../com.aspose.drawing.imaging/encoder) | An `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object that encapsulates the globally unique identifier of the parameter category. | +| value | byte[] | An array of 8-bit unsigned integers that specifies the values stored in the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. | + +### EncoderParameter(Encoder encoder, byte[] value, boolean undefined) {#EncoderParameter-com.aspose.drawing.imaging.Encoder-byte---boolean-} +``` +public EncoderParameter(Encoder encoder, byte[] value, boolean undefined) +``` + + +Initializes a new instance of the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) class with the specified `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object and an array of bytes. Sets the `P:EncoderParameter.ValueType` property to `EncoderParameterValueType.ValueTypeUndefined` or `EncoderParameterValueType.ValueTypeByte`, and sets the `P:EncoderParameter.NumberOfValues` property to the number of elements in the array. + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| encoder | [Encoder](../../com.aspose.drawing.imaging/encoder) | An `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object that encapsulates the globally unique identifier of the parameter category. | +| value | byte[] | An array of bytes that specifies the values stored in the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. | +| undefined | 布尔型 | If true, the `P:EncoderParameter.ValueType` property is set to `EncoderParameterValueType.ValueTypeUndefined`; otherwise, the `P:EncoderParameter.ValueType` property is set to `EncoderParameterValueType.ValueTypeByte`. | + +### EncoderParameter(Encoder encoder, short[] value) {#EncoderParameter-com.aspose.drawing.imaging.Encoder-short---} +``` +public EncoderParameter(Encoder encoder, short[] value) +``` + + +Initializes a new instance of the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) class with the specified `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object and an array of 16-bit integers. Sets the `P:EncoderParameter.ValueType` property to `EncoderParameterValueType.ValueTypeShort`, and sets the `P:EncoderParameter.NumberOfValues` property to the number of elements in the array. + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| encoder | [Encoder](../../com.aspose.drawing.imaging/encoder) | An `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object that encapsulates the globally unique identifier of the parameter category. | +| value | short[] | An array of 16-bit integers that specifies the values stored in the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. The integers in the array must be nonnegative. | + +### EncoderParameter(Encoder encoder, long[] value) {#EncoderParameter-com.aspose.drawing.imaging.Encoder-long---} +``` +public EncoderParameter(Encoder encoder, long[] value) +``` + + +Initializes a new instance of the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) class with the specified `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object and an array of 64-bit integers. Sets the `P:EncoderParameter.ValueType` property to `EncoderParameterValueType.ValueTypeLong` (32-bit), and sets the `P:EncoderParameter.NumberOfValues` property to the number of elements in the array. + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| encoder | [Encoder](../../com.aspose.drawing.imaging/encoder) | An `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object that encapsulates the globally unique identifier of the parameter category. | +| value | long[] | An array of 64-bit integers that specifies the values stored in the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. The integers in the array must be nonnegative. The 64-bit integers are converted to 32-bit integers before they are stored in the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. | + +### EncoderParameter(Encoder encoder, int[] numerator, int[] denominator) {#EncoderParameter-com.aspose.drawing.imaging.Encoder-int---int---} +``` +public EncoderParameter(Encoder encoder, int[] numerator, int[] denominator) +``` + + +Initializes a new instance of the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) class with the specified `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object and two arrays of 32-bit integers. The two arrays represent an array of fractions. Sets the `P:EncoderParameter.ValueType` property to `EncoderParameterValueType.ValueTypeRational`, and sets the `P:EncoderParameter.NumberOfValues` property to the number of elements in the `numerator` array, which must be the same as the number of elements in the `denominator` array. + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| encoder | [Encoder](../../com.aspose.drawing.imaging/encoder) | An `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object that encapsulates the globally unique identifier of the parameter category. | +| numerator | int[] | An array of 32-bit integers that specifies the numerators of the fractions. The integers in the array must be nonnegative. | +| denominator | int[] | An array of 32-bit integers that specifies the denominators of the fractions. The integers in the array must be nonnegative. A denominator of a given index is paired with the numerator of the same index. | + +### EncoderParameter(Encoder encoder, long[] rangebegin, long[] rangeend) {#EncoderParameter-com.aspose.drawing.imaging.Encoder-long---long---} +``` +public EncoderParameter(Encoder encoder, long[] rangebegin, long[] rangeend) +``` + + +Initializes a new instance of the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) class with the specified `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object and two arrays of 64-bit integers. The two arrays represent an array integer ranges. Sets the `P:EncoderParameter.ValueType` property to `EncoderParameterValueType.ValueTypeLongRange`, and sets the `P:EncoderParameter.NumberOfValues` property to the number of elements in the `rangebegin` array, which must be the same as the number of elements in the `rangeend` array. + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| encoder | [Encoder](../../com.aspose.drawing.imaging/encoder) | An `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object that encapsulates the globally unique identifier of the parameter category. | +| rangebegin | long[] | An array of 64-bit integers that specifies the minimum values for the integer ranges. The integers in the array must be nonnegative. The 64-bit integers are converted to 32-bit integers before they are stored in the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. | +| rangeend | long[] | An array of 64-bit integers that specifies the maximum values for the integer ranges. The integers in the array must be nonnegative. The 64-bit integers are converted to 32-bit integers before they are stored in the [EncoderParameters](../../com.aspose.drawing.imaging/encoderparameters) object. A maximum value of a given index is paired with the minimum value of the same index. | + +### EncoderParameter(Encoder encoder, int[] numerator1, int[] denominator1, int[] numerator2, int[] denominator2) {#EncoderParameter-com.aspose.drawing.imaging.Encoder-int---int---int---int---} +``` +public EncoderParameter(Encoder encoder, int[] numerator1, int[] denominator1, int[] numerator2, int[] denominator2) +``` + + +Initializes a new instance of the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) class with the specified `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object and four arrays of 32-bit integers. The four arrays represent an array rational ranges. A rational range is the set of all fractions from a minimum fractional value through a maximum fractional value. Sets the `P:EncoderParameter.ValueType` property to `EncoderParameterValueType.ValueTypeRationalRange`, and sets the `P:EncoderParameter.NumberOfValues` property to the number of elements in the `numerator1` array, which must be the same as the number of elements in the other three arrays. + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| encoder | [Encoder](../../com.aspose.drawing.imaging/encoder) | An `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object that encapsulates the globally unique identifier of the parameter category. | +| numerator1 | int[] | An array of 32-bit integers that specifies the numerators of the minimum values for the ranges. The integers in the array must be nonnegative. | +| denominator1 | int[] | An array of 32-bit integers that specifies the denominators of the minimum values for the ranges. The integers in the array must be nonnegative. | +| numerator2 | int[] | An array of 32-bit integers that specifies the numerators of the maximum values for the ranges. The integers in the array must be nonnegative. | +| denominator2 | int[] | An array of 32-bit integers that specifies the denominators of the maximum values for the ranges. The integers in the array must be nonnegative. | + +### EncoderParameter(Encoder encoder, int numberOfValues, int type, int value) {#EncoderParameter-com.aspose.drawing.imaging.Encoder-int-int-int-} +``` +public EncoderParameter(Encoder encoder, int numberOfValues, int type, int value) +``` + + +Initializes a new instance of the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) class with the specified `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object and three integers that specify the number of values, the data type of the values, and a pointer to the values stored in the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| encoder | [Encoder](../../com.aspose.drawing.imaging/encoder) | An `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object that encapsulates the globally unique identifier of the parameter category. | +| numberOfValues | int | An integer that specifies the number of values stored in the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. The `P:EncoderParameter.NumberOfValues` property is set to this value. | +| type | int | A member of the `EncoderParameterValueType` enumeration that specifies the data type of the values stored in the [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. The Type and `P:EncoderParameter.ValueType` properties are set to this value. | +| value | int | A pointer to an array of values of the type specified by the `type` parameter. | + +### getEncoder() {#getEncoder--} +``` +public Encoder getEncoder() +``` + + +Gets or sets the `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object associated with this [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. The `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object encapsulates the globally unique identifier (GUID) that specifies the category (for example `Encoder.Quality`, `Encoder.ColorDepth`, or `Encoder.Compression`) of the parameter stored in this [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. + +**Returns:** +[Encoder](../../com.aspose.drawing.imaging/encoder) +### setEncoder(Encoder value) {#setEncoder-com.aspose.drawing.imaging.Encoder-} +``` +public void setEncoder(Encoder value) +``` + + +Gets or sets the `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object associated with this [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. The `Encoder`([.getEncoder](../../null/\#getEncoder)/[.setEncoder(Encoder)](../../null/\#setEncoder-Encoder-)) object encapsulates the globally unique identifier (GUID) that specifies the category (for example `Encoder.Quality`, `Encoder.ColorDepth`, or `Encoder.Compression`) of the parameter stored in this [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [Encoder](../../com.aspose.drawing.imaging/encoder) | | + +### getNumberOfValues() {#getNumberOfValues--} +``` +public int getNumberOfValues() +``` + + +Gets the number of elements in the array of values stored in this [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. + +**Returns:** +int +### dispose() {#dispose--} +``` +public void dispose() +``` + + +Releases all resources used by this [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) object. + diff --git a/chinese/java/com.aspose.drawing.imaging/encoderparameters/_index.md b/chinese/java/com.aspose.drawing.imaging/encoderparameters/_index.md new file mode 100644 index 000000000..da531a1f2 --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/encoderparameters/_index.md @@ -0,0 +1,83 @@ +--- +title: EncoderParameters +second_title: Aspose.Drawing for Java API 参考 +description: 封装一个对象数组。 +type: docs +weight: 21 +url: /zh/java/com.aspose.drawing.imaging/encoderparameters/ +--- +**Inheritance:** +java.lang.Object + +**All Implemented Interfaces:** +com.aspose.ms.System.IDisposable +``` +public final class EncoderParameters implements System.IDisposable +``` + +封装一个 [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) 对象数组。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [EncoderParameters(int count)](#EncoderParameters-int-) | 初始化一个新的 [EncoderParameters](../../com.aspose.drawing.imaging/encoderparameters) 类实例,该实例可以包含指定数量的 [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) 对象。 | +| [EncoderParameters()](#EncoderParameters--) | 初始化一个新的 [EncoderParameters](../../com.aspose.drawing.imaging/encoderparameters) 类实例,该实例可以包含一个 [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) 对象。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getParam()](#getParam--) | 获取或设置一个 [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) 对象数组。 | +| [setParam(EncoderParameter[] value)](#setParam-com.aspose.drawing.imaging.EncoderParameter---) | 获取或设置一个 [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) 对象数组。 | +| [dispose()](#dispose--) | 释放此 [EncoderParameters](../../com.aspose.drawing.imaging/encoderparameters) 对象使用的所有资源。 | +### EncoderParameters(int count) {#EncoderParameters-int-} +``` +public EncoderParameters(int count) +``` + + +初始化一个新的 [EncoderParameters](../../com.aspose.drawing.imaging/encoderparameters) 类实例,该实例可以包含指定数量的 [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) 对象。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| count | int | 一个整数,指定 [EncoderParameters](../../com.aspose.drawing.imaging/encoderparameters) 对象可以包含的 [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) 对象数量。 | + +### EncoderParameters() {#EncoderParameters--} +``` +public EncoderParameters() +``` + + +初始化一个新的 [EncoderParameters](../../com.aspose.drawing.imaging/encoderparameters) 类实例,该实例可以包含一个 [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) 对象。 + +### getParam() {#getParam--} +``` +public EncoderParameter[] getParam() +``` + + +获取或设置一个 [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) 对象数组。 + +**Returns:** +com.aspose.drawing.imaging.EncoderParameter[] - [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) 对象数组。 +### setParam(EncoderParameter[] value) {#setParam-com.aspose.drawing.imaging.EncoderParameter---} +``` +public void setParam(EncoderParameter[] value) +``` + + +获取或设置一个 [EncoderParameter](../../com.aspose.drawing.imaging/encoderparameter) 对象数组。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [EncoderParameter\[\]](../../com.aspose.drawing.imaging/encoderparameter) | | + +### dispose() {#dispose--} +``` +public void dispose() +``` + + +释放此 [EncoderParameters](../../com.aspose.drawing.imaging/encoderparameters) 对象使用的所有资源。 + diff --git a/chinese/java/com.aspose.drawing.imaging/encodervalue/_index.md b/chinese/java/com.aspose.drawing.imaging/encodervalue/_index.md new file mode 100644 index 000000000..7ca96785a --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/encodervalue/_index.md @@ -0,0 +1,235 @@ +--- +title: EncoderValue +second_title: Aspose.Drawing for Java API 参考 +description: 用于在使用 MImage.SaveSystem.StringSystem.Drawing.Imaging.ImageCodecInfoSystem.Drawing.Imaging.EncoderParameters 或 MImage.SaveAddSystem.Drawing.Imaging.EncoderParameters 方法时,指定传递给 JPEG 或 TIFF 图像编码器的参数值。 +type: docs +weight: 22 +url: /zh/java/com.aspose.drawing.imaging/encodervalue/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class EncoderValue extends System.Enum +``` + +用于在使用 `M:Image.Save(System.String,System.Drawing.Imaging.ImageCodecInfo,System.Drawing.Imaging.EncoderParameters)` 或 `M:Image.SaveAdd(System.Drawing.Imaging.EncoderParameters)` 方法时指定传递给 JPEG 或 TIFF 图像编码器的参数值。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [ColorTypeCMYK](#ColorTypeCMYK) | 在 GDI+ 1.0 版中未使用。 | +| [ColorTypeYCCK](#ColorTypeYCCK) | 在 GDI+ 1.0 版中未使用。 | +| [CompressionLZW](#CompressionLZW) | 指定 LZW 压缩方案。 | +| [CompressionCCITT3](#CompressionCCITT3) | 指定 CCITT3 压缩方案。 | +| [CompressionCCITT4](#CompressionCCITT4) | 指定 CCITT4 压缩方案。 | +| [CompressionRle](#CompressionRle) | 指定 RLE 压缩方案。 | +| [CompressionNone](#CompressionNone) | 指定不进行压缩。 | +| [ScanMethodInterlaced](#ScanMethodInterlaced) | 在 GDI+ 1.0 版中未使用。 | +| [ScanMethodNonInterlaced](#ScanMethodNonInterlaced) | 在 GDI+ 1.0 版中未使用。 | +| [VersionGif87](#VersionGif87) | 在 GDI+ 1.0 版中未使用。 | +| [VersionGif89](#VersionGif89) | 在 GDI+ 1.0 版中未使用。 | +| [RenderProgressive](#RenderProgressive) | 在 GDI+ 1.0 版中未使用。 | +| [RenderNonProgressive](#RenderNonProgressive) | 在 GDI+ 1.0 版中未使用。 | +| [TransformRotate90](#TransformRotate90) | 指定图像围绕中心顺时针旋转 90 度。 | +| [TransformRotate180](#TransformRotate180) | 指定图像围绕中心旋转 180 度。 | +| [TransformRotate270](#TransformRotate270) | 指定图像应围绕其中心顺时针旋转 270 度。 | +| [TransformFlipHorizontal](#TransformFlipHorizontal) | 指定图像应水平翻转(关于垂直轴)。 | +| [TransformFlipVertical](#TransformFlipVertical) | 指定图像应垂直翻转(关于水平轴)。 | +| [MultiFrame](#MultiFrame) | 指定图像具有多个帧(页面)。 | +| [LastFrame](#LastFrame) | 指定多帧图像中的最后一帧。 | +| [Flush](#Flush) | 指定应关闭多帧文件或流。 | +| [FrameDimensionTime](#FrameDimensionTime) | 在 GDI+ 1.0 版中未使用。 | +| [FrameDimensionResolution](#FrameDimensionResolution) | 在 GDI+ 1.0 版中未使用。 | +| [FrameDimensionPage](#FrameDimensionPage) | 指定应向图像的页面尺寸添加帧。 | +### ColorTypeCMYK {#ColorTypeCMYK} +``` +public static final int ColorTypeCMYK +``` + + +在 GDI+ 1.0 版中未使用。 + +### ColorTypeYCCK {#ColorTypeYCCK} +``` +public static final int ColorTypeYCCK +``` + + +在 GDI+ 1.0 版中未使用。 + +### CompressionLZW {#CompressionLZW} +``` +public static final int CompressionLZW +``` + + +指定 LZW 压缩方案。可作为属于 Compression 类别的参数传递给 TIFF 编码器。 + +### CompressionCCITT3 {#CompressionCCITT3} +``` +public static final int CompressionCCITT3 +``` + + +指定 CCITT3 压缩方案。可作为属于 Compression 类别的参数传递给 TIFF 编码器。 + +### CompressionCCITT4 {#CompressionCCITT4} +``` +public static final int CompressionCCITT4 +``` + + +指定 CCITT4 压缩方案。可作为属于 Compression 类别的参数传递给 TIFF 编码器。 + +### CompressionRle {#CompressionRle} +``` +public static final int CompressionRle +``` + + +指定 RLE 压缩方案。可作为属于 Compression 类别的参数传递给 TIFF 编码器。 + +### CompressionNone {#CompressionNone} +``` +public static final int CompressionNone +``` + + +指定无压缩。可作为属于 Compression 类别的参数传递给 TIFF 编码器。 + +### ScanMethodInterlaced {#ScanMethodInterlaced} +``` +public static final int ScanMethodInterlaced +``` + + +在 GDI+ 1.0 版中未使用。 + +### ScanMethodNonInterlaced {#ScanMethodNonInterlaced} +``` +public static final int ScanMethodNonInterlaced +``` + + +在 GDI+ 1.0 版中未使用。 + +### VersionGif87 {#VersionGif87} +``` +public static final int VersionGif87 +``` + + +在 GDI+ 1.0 版中未使用。 + +### VersionGif89 {#VersionGif89} +``` +public static final int VersionGif89 +``` + + +在 GDI+ 1.0 版中未使用。 + +### RenderProgressive {#RenderProgressive} +``` +public static final int RenderProgressive +``` + + +在 GDI+ 1.0 版中未使用。 + +### RenderNonProgressive {#RenderNonProgressive} +``` +public static final int RenderNonProgressive +``` + + +在 GDI+ 1.0 版中未使用。 + +### TransformRotate90 {#TransformRotate90} +``` +public static final int TransformRotate90 +``` + + +指定图像应围绕其中心顺时针旋转 90 度。可作为属于 transformation 类别的参数传递给 JPEG 编码器。 + +### TransformRotate180 {#TransformRotate180} +``` +public static final int TransformRotate180 +``` + + +指定图像应围绕其中心旋转 180 度。可作为属于 transformation 类别的参数传递给 JPEG 编码器。 + +### TransformRotate270 {#TransformRotate270} +``` +public static final int TransformRotate270 +``` + + +指定图像应围绕其中心顺时针旋转 270 度。可作为属于 transformation 类别的参数传递给 JPEG 编码器。 + +### TransformFlipHorizontal {#TransformFlipHorizontal} +``` +public static final int TransformFlipHorizontal +``` + + +指定图像应水平翻转(关于垂直轴)。可作为属于 transformation 类别的参数传递给 JPEG 编码器。 + +### TransformFlipVertical {#TransformFlipVertical} +``` +public static final int TransformFlipVertical +``` + + +指定图像应垂直翻转(关于水平轴)。可作为属于 transformation 类别的参数传递给 JPEG 编码器。 + +### MultiFrame {#MultiFrame} +``` +public static final int MultiFrame +``` + + +指定图像具有多个帧(页面)。可作为属于 save flag 类别的参数传递给 TIFF 编码器。 + +### LastFrame {#LastFrame} +``` +public static final int LastFrame +``` + + +指定多帧图像中的最后一帧。可作为属于 save flag 类别的参数传递给 TIFF 编码器。 + +### Flush {#Flush} +``` +public static final int Flush +``` + + +指定应关闭多帧文件或流。可作为属于 save flag 类别的参数传递给 TIFF 编码器。 + +### FrameDimensionTime {#FrameDimensionTime} +``` +public static final int FrameDimensionTime +``` + + +在 GDI+ 1.0 版中未使用。 + +### FrameDimensionResolution {#FrameDimensionResolution} +``` +public static final int FrameDimensionResolution +``` + + +在 GDI+ 1.0 版中未使用。 + +### FrameDimensionPage {#FrameDimensionPage} +``` +public static final int FrameDimensionPage +``` + + +指定应向图像的页面尺寸添加帧。可作为属于 save flag 类别的参数传递给 TIFF 编码器。 + diff --git a/chinese/java/com.aspose.drawing.imaging/framedimension/_index.md b/chinese/java/com.aspose.drawing.imaging/framedimension/_index.md new file mode 100644 index 000000000..bf9729ec0 --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/framedimension/_index.md @@ -0,0 +1,119 @@ +--- +title: FrameDimension +second_title: Aspose.Drawing for Java API 参考 +description: 提供获取图像帧维度的属性。 +type: docs +weight: 23 +url: /zh/java/com.aspose.drawing.imaging/framedimension/ +--- +**Inheritance:** +java.lang.Object +``` +public final class FrameDimension +``` + +提供获取图像帧维度的属性。不可继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [FrameDimension(UUID guid)](#FrameDimension-java.util.UUID-) | 使用指定的 GUID 结构初始化 [FrameDimension](../../com.aspose.drawing.imaging/framedimension) 类的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getTime()](#getTime--) | 获取时间维度。 | +| [getResolution()](#getResolution--) | 获取分辨率维度。 | +| [getPage()](#getPage--) | 获取页面维度。 | +| [getGuid()](#getGuid--) | 获取全局唯一标识符 (GUID),该标识符表示此 [FrameDimension](../../com.aspose.drawing.imaging/framedimension) 对象。 | +| [equals(Object o)](#equals-java.lang.Object-) | 返回一个值,指示指定的对象是否是等同于此 [FrameDimension](../../com.aspose.drawing.imaging/framedimension) 对象的 [FrameDimension](../../com.aspose.drawing.imaging/framedimension)。 | +| [hashCode()](#hashCode--) | 返回此 [FrameDimension](../../com.aspose.drawing.imaging/framedimension) 对象的哈希码。 | +| [toString()](#toString--) | 将此 [FrameDimension](../../com.aspose.drawing.imaging/framedimension) 对象转换为可读的字符串。 | +### FrameDimension(UUID guid) {#FrameDimension-java.util.UUID-} +``` +public FrameDimension(UUID guid) +``` + + +使用指定的 GUID 结构初始化 [FrameDimension](../../com.aspose.drawing.imaging/framedimension) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| guid | java.util.UUID | 一个包含此 [FrameDimension](../../com.aspose.drawing.imaging/framedimension) 对象的 GUID 的 GUID 结构。 | + +### getTime() {#getTime--} +``` +public static FrameDimension getTime() +``` + + +获取时间维度。 + +**Returns:** +[FrameDimension](../../com.aspose.drawing.imaging/framedimension) +### getResolution() {#getResolution--} +``` +public static FrameDimension getResolution() +``` + + +获取分辨率维度。 + +**Returns:** +[FrameDimension](../../com.aspose.drawing.imaging/framedimension) +### getPage() {#getPage--} +``` +public static FrameDimension getPage() +``` + + +获取页面维度。 + +**Returns:** +[FrameDimension](../../com.aspose.drawing.imaging/framedimension) +### getGuid() {#getGuid--} +``` +public UUID getGuid() +``` + + +获取全局唯一标识符 (GUID),该标识符表示此 [FrameDimension](../../com.aspose.drawing.imaging/framedimension) 对象。 + +**Returns:** +java.util.UUID +### equals(Object o) {#equals-java.lang.Object-} +``` +public boolean equals(Object o) +``` + + +返回一个值,指示指定的对象是否是等同于此 [FrameDimension](../../com.aspose.drawing.imaging/framedimension) 对象的 [FrameDimension](../../com.aspose.drawing.imaging/framedimension)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| o | java.lang.Object | 要测试的对象。 | + +**Returns:** +boolean - 如果 `o` 是等同于此 [FrameDimension](../../com.aspose.drawing.imaging/framedimension) 对象的 [FrameDimension],则返回 true;否则返回 false。 +### hashCode() {#hashCode--} +``` +public int hashCode() +``` + + +返回此 [FrameDimension](../../com.aspose.drawing.imaging/framedimension) 对象的哈希码。 + +**Returns:** +int - 返回一个整数值,该值是此 [FrameDimension](../../com.aspose.drawing.imaging/framedimension) 对象的哈希码。 +### toString() {#toString--} +``` +public String toString() +``` + + +将此 [FrameDimension](../../com.aspose.drawing.imaging/framedimension) 对象转换为可读的字符串。 + +**Returns:** +java.lang.String - 表示此 [FrameDimension](../../com.aspose.drawing.imaging/framedimension) 对象的字符串。 diff --git a/chinese/java/com.aspose.drawing.imaging/imageattributes/_index.md b/chinese/java/com.aspose.drawing.imaging/imageattributes/_index.md new file mode 100644 index 000000000..cc80eff35 --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/imageattributes/_index.md @@ -0,0 +1,614 @@ +--- +title: ImageAttributes +second_title: Aspose.Drawing for Java API 参考 +description: 包含有关在渲染过程中如何操作位图和元文件颜色的信息。 +type: docs +weight: 24 +url: /zh/java/com.aspose.drawing.imaging/imageattributes/ +--- +**Inheritance:** +java.lang.Object + +**All Implemented Interfaces:** +com.aspose.ms.System.IDisposable +``` +public final class ImageAttributes implements System.IDisposable +``` + +包含有关在渲染过程中如何操作位图和元文件颜色的信息。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [ImageAttributes()](#ImageAttributes--) | 初始化 [ImageAttributes](../../com.aspose.drawing.imaging/imageattributes) 类的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [dispose()](#dispose--) | 释放此 [ImageAttributes](../../com.aspose.drawing.imaging/imageattributes) 对象使用的所有资源。 | +| [deepClone()](#deepClone--) | 创建此 [ImageAttributes](../../com.aspose.drawing.imaging/imageattributes) 对象的精确副本。 | +| [setColorMatrix(ColorMatrix newColorMatrix)](#setColorMatrix-com.aspose.drawing.imaging.ColorMatrix-) | 为默认类别设置颜色调整矩阵。 | +| [setColorMatrix(ColorMatrix newColorMatrix, int flags)](#setColorMatrix-com.aspose.drawing.imaging.ColorMatrix-int-) | 为默认类别设置颜色调整矩阵。 | +| [setColorMatrix(ColorMatrix newColorMatrix, int mode, int type)](#setColorMatrix-com.aspose.drawing.imaging.ColorMatrix-int-int-) | 为指定类别设置颜色调整矩阵。 | +| [clearColorMatrix()](#clearColorMatrix--) | 清除默认类别的颜色调整矩阵。 | +| [clearColorMatrix(int type)](#clearColorMatrix-int-) | 清除指定类别的颜色调整矩阵。 | +| [setColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix)](#setColorMatrices-com.aspose.drawing.imaging.ColorMatrix-com.aspose.drawing.imaging.ColorMatrix-) | 为默认类别设置颜色调整矩阵和灰度调整矩阵。 | +| [setColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix, int flags)](#setColorMatrices-com.aspose.drawing.imaging.ColorMatrix-com.aspose.drawing.imaging.ColorMatrix-int-) | 为默认类别设置颜色调整矩阵和灰度调整矩阵。 | +| [setColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix, int mode, int type)](#setColorMatrices-com.aspose.drawing.imaging.ColorMatrix-com.aspose.drawing.imaging.ColorMatrix-int-int-) | 为指定类别设置颜色调整矩阵和灰度调整矩阵。 | +| [setThreshold(float threshold)](#setThreshold-float-) | 为默认类别设置阈值(透明度范围)。 | +| [setThreshold(float threshold, int type)](#setThreshold-float-int-) | 为指定类别设置阈值(透明度范围)。 | +| [clearThreshold()](#clearThreshold--) | 清除默认类别的阈值。 | +| [clearThreshold(int type)](#clearThreshold-int-) | 清除指定类别的阈值。 | +| [setGamma(float gamma)](#setGamma-float-) | 为默认类别设置伽马值。 | +| [setGamma(float gamma, int type)](#setGamma-float-int-) | 为指定类别设置伽马值。 | +| [clearGamma()](#clearGamma--) | 禁用默认类别的伽马校正。 | +| [clearGamma(int type)](#clearGamma-int-) | 禁用指定类别的伽马校正。 | +| [setNoOp()](#setNoOp--) | 关闭默认类别的颜色调整。 | +| [setNoOp(int type)](#setNoOp-int-) | 关闭指定类别的颜色调整。 | +| [clearNoOp()](#clearNoOp--) | 清除默认类别的 NoOp 设置。 | +| [clearNoOp(int type)](#clearNoOp-int-) | 清除指定类别的 NoOp 设置。 | +| [setColorKey(Color colorLow, Color colorHigh)](#setColorKey-com.aspose.drawing.Color-com.aspose.drawing.Color-) | 为默认类别设置颜色键。 | +| [setColorKey(Color colorLow, Color colorHigh, int type)](#setColorKey-com.aspose.drawing.Color-com.aspose.drawing.Color-int-) | 为指定类别设置颜色键(透明度范围)。 | +| [clearColorKey()](#clearColorKey--) | 清除默认类别的颜色键(透明度范围)。 | +| [clearColorKey(int type)](#clearColorKey-int-) | 清除指定类别的颜色键(透明度范围)。 | +| [setOutputChannel(int flags)](#setOutputChannel-int-) | 为默认类别设置 CMYK(青-品红-黄-黑)输出通道。 | +| [setOutputChannel(int flags, int type)](#setOutputChannel-int-int-) | 为指定类别设置 CMYK(青-品红-黄-黑)输出通道。 | +| [clearOutputChannel()](#clearOutputChannel--) | 清除默认类别的 CMYK(青-品红-黄-黑)输出通道设置。 | +| [clearOutputChannel(int type)](#clearOutputChannel-int-) | 清除指定类别的(青-品红-黄-黑)输出通道设置。 | +| [setOutputChannelColorProfile(String colorProfileFilename)](#setOutputChannelColorProfile-java.lang.String-) | 为默认类别设置输出通道色彩配置文件。 | +| [setOutputChannelColorProfile(String colorProfileFilename, int type)](#setOutputChannelColorProfile-java.lang.String-int-) | 为指定类别设置输出通道颜色配置文件。 | +| [clearOutputChannelColorProfile()](#clearOutputChannelColorProfile--) | 清除默认类别的输出通道颜色配置设置。 | +| [clearOutputChannelColorProfile(int type)](#clearOutputChannelColorProfile-int-) | 清除指定类别的输出通道颜色配置设置。 | +| [setRemapTable(ColorMap[] map)](#setRemapTable-com.aspose.drawing.imaging.ColorMap---) | 为默认类别设置颜色重新映射表。 | +| [setRemapTable(ColorMap[] map, int type)](#setRemapTable-com.aspose.drawing.imaging.ColorMap---int-) | 为指定类别设置颜色重新映射表。 | +| [clearRemapTable()](#clearRemapTable--) | 清除默认类别的颜色重新映射表。 | +| [clearRemapTable(int type)](#clearRemapTable-int-) | 清除指定类别的颜色重新映射表。 | +| [setBrushRemapTable(ColorMap[] map)](#setBrushRemapTable-com.aspose.drawing.imaging.ColorMap---) | 为画笔类别设置颜色重新映射表。 | +| [clearBrushRemapTable()](#clearBrushRemapTable--) | 清除此 [ImageAttributes](../../com.aspose.drawing.imaging/imageattributes) 对象的画笔颜色重新映射表。 | +| [setWrapMode(int mode)](#setWrapMode-int-) | 设置用于决定如何在形状上或形状边界处平铺纹理的包装模式。 | +| [setWrapMode(int mode, Color color)](#setWrapMode-int-com.aspose.drawing.Color-) | 设置用于决定如何在形状上或形状边界处平铺纹理的包装模式和颜色。 | +| [setWrapMode(int mode, Color color, boolean clamp)](#setWrapMode-int-com.aspose.drawing.Color-boolean-) | 设置用于决定如何在形状上或形状边界处平铺纹理的包装模式和颜色。 | +| [getAdjustedPalette(ColorPalette palette, int type)](#getAdjustedPalette-com.aspose.drawing.imaging.ColorPalette-int-) | 根据指定类别的调整设置调整调色板中的颜色。 | +### ImageAttributes() {#ImageAttributes--} +``` +public ImageAttributes() +``` + + +初始化 [ImageAttributes](../../com.aspose.drawing.imaging/imageattributes) 类的新实例。 + +### dispose() {#dispose--} +``` +public void dispose() +``` + + +释放此 [ImageAttributes](../../com.aspose.drawing.imaging/imageattributes) 对象使用的所有资源。 + +### deepClone() {#deepClone--} +``` +public Object deepClone() +``` + + +创建此 [ImageAttributes](../../com.aspose.drawing.imaging/imageattributes) 对象的精确副本。 + +**Returns:** +java.lang.Object - 此类创建的 [ImageAttributes](../../com.aspose.drawing.imaging/imageattributes) 对象,作为对象进行强制转换。 +### setColorMatrix(ColorMatrix newColorMatrix) {#setColorMatrix-com.aspose.drawing.imaging.ColorMatrix-} +``` +public void setColorMatrix(ColorMatrix newColorMatrix) +``` + + +为默认类别设置颜色调整矩阵。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| newColorMatrix | [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) | 颜色调整矩阵。 | + +### setColorMatrix(ColorMatrix newColorMatrix, int flags) {#setColorMatrix-com.aspose.drawing.imaging.ColorMatrix-int-} +``` +public void setColorMatrix(ColorMatrix newColorMatrix, int flags) +``` + + +为默认类别设置颜色调整矩阵。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| newColorMatrix | [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) | 颜色调整矩阵。 | +| flags | int | 一个 [ColorMatrixFlag](../../com.aspose.drawing.imaging/colormatrixflag) 元素,指定将受到颜色调整矩阵影响的图像和颜色类型。 | + +### setColorMatrix(ColorMatrix newColorMatrix, int mode, int type) {#setColorMatrix-com.aspose.drawing.imaging.ColorMatrix-int-int-} +``` +public void setColorMatrix(ColorMatrix newColorMatrix, int mode, int type) +``` + + +为指定类别设置颜色调整矩阵。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| newColorMatrix | [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) | 颜色调整矩阵。 | +| mode | int | 一个 [ColorMatrixFlag](../../com.aspose.drawing.imaging/colormatrixflag) 元素,指定将受到颜色调整矩阵影响的图像和颜色类型。 | +| type | int | 一个 [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) 元素,指定设置颜色调整矩阵的类别。 | + +### clearColorMatrix() {#clearColorMatrix--} +``` +public void clearColorMatrix() +``` + + +清除默认类别的颜色调整矩阵。 + +### clearColorMatrix(int type) {#clearColorMatrix-int-} +``` +public void clearColorMatrix(int type) +``` + + +清除指定类别的颜色调整矩阵。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| type | int | 一个 [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) 元素,指定清除颜色调整矩阵的类别。 | + +### setColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix) {#setColorMatrices-com.aspose.drawing.imaging.ColorMatrix-com.aspose.drawing.imaging.ColorMatrix-} +``` +public void setColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix) +``` + + +为默认类别设置颜色调整矩阵和灰度调整矩阵。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| newColorMatrix | [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) | 颜色调整矩阵。 | +| grayMatrix | [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) | 灰度调整矩阵。 | + +### setColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix, int flags) {#setColorMatrices-com.aspose.drawing.imaging.ColorMatrix-com.aspose.drawing.imaging.ColorMatrix-int-} +``` +public void setColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix, int flags) +``` + + +为默认类别设置颜色调整矩阵和灰度调整矩阵。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| newColorMatrix | [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) | 颜色调整矩阵。 | +| grayMatrix | [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) | 灰度调整矩阵。 | +| flags | int | 一个 [ColorMatrixFlag](../../com.aspose.drawing.imaging/colormatrixflag) 元素,指定将受到颜色调整和灰度调整矩阵影响的图像和颜色类型。 | + +### setColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix, int mode, int type) {#setColorMatrices-com.aspose.drawing.imaging.ColorMatrix-com.aspose.drawing.imaging.ColorMatrix-int-int-} +``` +public void setColorMatrices(ColorMatrix newColorMatrix, ColorMatrix grayMatrix, int mode, int type) +``` + + +为指定类别设置颜色调整矩阵和灰度调整矩阵。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| newColorMatrix | [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) | 颜色调整矩阵。 | +| grayMatrix | [ColorMatrix](../../com.aspose.drawing.imaging/colormatrix) | 灰度调整矩阵。 | +| mode | int | 一个 [ColorMatrixFlag](../../com.aspose.drawing.imaging/colormatrixflag) 元素,指定将受到颜色调整和灰度调整矩阵影响的图像和颜色类型。 | +| type | int | 一个 [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) 元素,指定设置颜色调整和灰度调整矩阵的类别。 | + +### setThreshold(float threshold) {#setThreshold-float-} +``` +public void setThreshold(float threshold) +``` + + +为默认类别设置阈值(透明度范围)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 阈值 | 浮点数 | 指定阈值的实数。 | + +### setThreshold(float threshold, int type) {#setThreshold-float-int-} +``` +public void setThreshold(float threshold, int type) +``` + + +为指定类别设置阈值(透明度范围)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 阈值 | 浮点数 | 从 0.0 到 1.0 的阈值,用作分界点,以对将映射到最大值或最小值的颜色进行排序。 | +| type | int | 一个 [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) 元素,指定设置颜色阈值的类别。 | + +### clearThreshold() {#clearThreshold--} +``` +public void clearThreshold() +``` + + +清除默认类别的阈值。 + +### clearThreshold(int type) {#clearThreshold-int-} +``` +public void clearThreshold(int type) +``` + + +清除指定类别的阈值。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| type | int | 一个 [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) 元素,指定清除阈值的类别。 | + +### setGamma(float gamma) {#setGamma-float-} +``` +public void setGamma(float gamma) +``` + + +为默认类别设置伽马值。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 伽马 | 浮点数 | 伽马校正值。 | + +### setGamma(float gamma, int type) {#setGamma-float-int-} +``` +public void setGamma(float gamma, int type) +``` + + +为指定类别设置伽马值。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 伽马 | 浮点数 | 伽马校正值。 | +| type | int | 枚举 [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) 的一个元素,用于指定设置伽马值的类别。 | + +### clearGamma() {#clearGamma--} +``` +public void clearGamma() +``` + + +禁用默认类别的伽马校正。 + +### clearGamma(int type) {#clearGamma-int-} +``` +public void clearGamma(int type) +``` + + +禁用指定类别的伽马校正。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| type | int | 枚举 [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) 的一个元素,用于指定禁用伽马校正的类别。 | + +### setNoOp() {#setNoOp--} +``` +public void setNoOp() +``` + + +关闭默认类别的颜色调整。您可以调用 [.clearNoOp](../../null/\#clearNoOp) 方法来恢复在调用 [.setNoOp](../../null/\#setNoOp) 方法之前的颜色调整设置。 + +### setNoOp(int type) {#setNoOp-int-} +``` +public void setNoOp(int type) +``` + + +关闭指定类别的颜色调整。您可以调用 [.clearNoOp](../../null/\#clearNoOp) 方法来恢复在调用 [.setNoOp](../../null/\#setNoOp) 方法之前的颜色调整设置。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| type | int | 枚举 [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) 的一个元素,用于指定关闭颜色校正的类别。 | + +### clearNoOp() {#clearNoOp--} +``` +public void clearNoOp() +``` + + +清除默认类别的 NoOp 设置。 + +### clearNoOp(int type) {#clearNoOp-int-} +``` +public void clearNoOp(int type) +``` + + +清除指定类别的 NoOp 设置。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| type | int | 枚举 [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) 的一个元素,用于指定清除 NoOp 设置的类别。 | + +### setColorKey(Color colorLow, Color colorHigh) {#setColorKey-com.aspose.drawing.Color-com.aspose.drawing.Color-} +``` +public void setColorKey(Color colorLow, Color colorHigh) +``` + + +为默认类别设置颜色键。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| colorLow | [Color](../../com.aspose.drawing/color) | 低颜色键值。 | +| colorHigh | [Color](../../com.aspose.drawing/color) | 高颜色键值。 | + +### setColorKey(Color colorLow, Color colorHigh, int type) {#setColorKey-com.aspose.drawing.Color-com.aspose.drawing.Color-int-} +``` +public void setColorKey(Color colorLow, Color colorHigh, int type) +``` + + +为指定类别设置颜色键(透明度范围)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| colorLow | [Color](../../com.aspose.drawing/color) | 低颜色键值。 | +| colorHigh | [Color](../../com.aspose.drawing/color) | 高颜色键值。 | +| type | int | 枚举 [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) 的一个元素,用于指定设置颜色键的类别。 | + +### clearColorKey() {#clearColorKey--} +``` +public void clearColorKey() +``` + + +清除默认类别的颜色键(透明度范围)。 + +### clearColorKey(int type) {#clearColorKey-int-} +``` +public void clearColorKey(int type) +``` + + +清除指定类别的颜色键(透明度范围)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| type | int | 枚举 [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) 的一个元素,用于指定清除颜色键的类别。 | + +### setOutputChannel(int flags) {#setOutputChannel-int-} +``` +public void setOutputChannel(int flags) +``` + + +为默认类别设置 CMYK(青-品红-黄-黑)输出通道。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| flags | int | 枚举 [ColorChannelFlag](../../com.aspose.drawing.imaging/colorchannelflag) 的一个元素,用于指定输出通道。 | + +### setOutputChannel(int flags, int type) {#setOutputChannel-int-int-} +``` +public void setOutputChannel(int flags, int type) +``` + + +为指定类别设置 CMYK(青-品红-黄-黑)输出通道。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| flags | int | 枚举 [ColorChannelFlag](../../com.aspose.drawing.imaging/colorchannelflag) 的一个元素,用于指定输出通道。 | +| type | int | 枚举 [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) 的一个元素,用于指定设置输出通道的类别。 | + +### clearOutputChannel() {#clearOutputChannel--} +``` +public void clearOutputChannel() +``` + + +清除默认类别的 CMYK(青-品红-黄-黑)输出通道设置。 + +### clearOutputChannel(int type) {#clearOutputChannel-int-} +``` +public void clearOutputChannel(int type) +``` + + +清除指定类别的(青-品红-黄-黑)输出通道设置。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| type | int | 枚举 [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) 的一个元素,用于指定清除输出通道设置的类别。 | + +### setOutputChannelColorProfile(String colorProfileFilename) {#setOutputChannelColorProfile-java.lang.String-} +``` +public void setOutputChannelColorProfile(String colorProfileFilename) +``` + + +为默认类别设置输出通道色彩配置文件。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| colorProfileFilename | java.lang.String | 颜色配置文件的路径名。如果颜色配置文件位于 %SystemRoot%\\System32\\Spool\\Drivers\\Color 目录中,则此参数可以是文件名。否则,此参数必须是完整的路径名。 | + +### setOutputChannelColorProfile(String colorProfileFilename, int type) {#setOutputChannelColorProfile-java.lang.String-int-} +``` +public void setOutputChannelColorProfile(String colorProfileFilename, int type) +``` + + +为指定类别设置输出通道颜色配置文件。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| colorProfileFilename | java.lang.String | 颜色配置文件的路径名。如果颜色配置文件位于 %SystemRoot%\\System32\\Spool\\Drivers\\Color 目录中,则此参数可以是文件名。否则,此参数必须是完整的路径名。 | +| type | int | 枚举 [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) 的一个元素,用于指定设置输出通道颜色配置文件的类别。 | + +### clearOutputChannelColorProfile() {#clearOutputChannelColorProfile--} +``` +public void clearOutputChannelColorProfile() +``` + + +清除默认类别的输出通道颜色配置设置。 + +### clearOutputChannelColorProfile(int type) {#clearOutputChannelColorProfile-int-} +``` +public void clearOutputChannelColorProfile(int type) +``` + + +清除指定类别的输出通道颜色配置设置。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| type | int | 枚举 [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) 的一个元素,用于指定清除输出通道配置文件设置的类别。 | + +### setRemapTable(ColorMap[] map) {#setRemapTable-com.aspose.drawing.imaging.ColorMap---} +``` +public void setRemapTable(ColorMap[] map) +``` + + +为默认类别设置颜色重新映射表。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| map | [ColorMap\[\]](../../com.aspose.drawing.imaging/colormap) | 类型为 [ColorMap](../../com.aspose.drawing.imaging/colormap) 的颜色对数组。每个颜色对包含一个现有颜色(第一个值)和它将映射到的颜色(第二个值)。 | + +### setRemapTable(ColorMap[] map, int type) {#setRemapTable-com.aspose.drawing.imaging.ColorMap---int-} +``` +public void setRemapTable(ColorMap[] map, int type) +``` + + +为指定类别设置颜色重新映射表。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| map | [ColorMap\[\]](../../com.aspose.drawing.imaging/colormap) | 类型为 [ColorMap](../../com.aspose.drawing.imaging/colormap) 的颜色对数组。每个颜色对包含一个现有颜色(第一个值)和它将映射到的颜色(第二个值)。 | +| type | int | 枚举 [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) 的一个元素,用于指定设置颜色重新映射表的类别。 | + +### clearRemapTable() {#clearRemapTable--} +``` +public void clearRemapTable() +``` + + +清除默认类别的颜色重新映射表。 + +### clearRemapTable(int type) {#clearRemapTable-int-} +``` +public void clearRemapTable(int type) +``` + + +清除指定类别的颜色重新映射表。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| type | int | 枚举 [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) 的一个元素,用于指定清除重新映射表的类别。 | + +### setBrushRemapTable(ColorMap[] map) {#setBrushRemapTable-com.aspose.drawing.imaging.ColorMap---} +``` +public void setBrushRemapTable(ColorMap[] map) +``` + + +为画笔类别设置颜色重新映射表。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| map | [ColorMap\[\]](../../com.aspose.drawing.imaging/colormap) | [ColorMap](../../com.aspose.drawing.imaging/colormap) 对象数组。 | + +### clearBrushRemapTable() {#clearBrushRemapTable--} +``` +public void clearBrushRemapTable() +``` + + +清除此 [ImageAttributes](../../com.aspose.drawing.imaging/imageattributes) 对象的画笔颜色重新映射表。 + +### setWrapMode(int mode) {#setWrapMode-int-} +``` +public void setWrapMode(int mode) +``` + + +设置用于决定如何在形状上或形状边界处平铺纹理的包装模式。当纹理小于要填充的形状时,纹理会在形状上平铺以填充。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| mode | int | 枚举 [WrapMode](../../com.aspose.drawing.drawing2d/wrapmode) 的一个元素,用于指定图像的重复副本如何用于平铺区域。 | + +### setWrapMode(int mode, Color color) {#setWrapMode-int-com.aspose.drawing.Color-} +``` +public void setWrapMode(int mode, Color color) +``` + + +设置用于决定如何在形状上或形状边界处平铺纹理的包装模式和颜色。当纹理小于要填充的形状时,纹理会在形状上平铺以填充它。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| mode | int | 枚举 [WrapMode](../../com.aspose.drawing.drawing2d/wrapmode) 的一个元素,用于指定图像的重复副本如何用于平铺区域。 | +| color | [Color](../../com.aspose.drawing/color) | 一个 [Color](../../com.aspose.drawing/color) 对象,指定渲染图像之外像素的颜色。如果 mode 参数设置为 `WrapMode.Clamp` 且传递给 `Graphics.DrawImage` 的源矩形大于图像本身,则此颜色可见。 | + +### setWrapMode(int mode, Color color, boolean clamp) {#setWrapMode-int-com.aspose.drawing.Color-boolean-} +``` +public void setWrapMode(int mode, Color color, boolean clamp) +``` + + +设置用于决定如何在形状上或形状边界处平铺纹理的包装模式和颜色。当纹理小于要填充的形状时,纹理会在形状上平铺以填充它。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| mode | int | 枚举 [WrapMode](../../com.aspose.drawing.drawing2d/wrapmode) 的一个元素,用于指定图像的重复副本如何用于平铺区域。 | +| color | [Color](../../com.aspose.drawing/color) | 一个颜色对象,指定渲染图像之外像素的颜色。如果 mode 参数设置为 `WrapMode.Clamp` 且传递给 `Graphics.DrawImage` 的源矩形大于图像本身,则此颜色可见。 | +| 夹紧 | 布尔型 | 此参数无效。请将其设为 false。 | + +### getAdjustedPalette(ColorPalette palette, int type) {#getAdjustedPalette-com.aspose.drawing.imaging.ColorPalette-int-} +``` +public void getAdjustedPalette(ColorPalette palette, int type) +``` + + +根据指定类别的调整设置调整调色板中的颜色。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| palette | [ColorPalette](../../com.aspose.drawing.imaging/colorpalette) | 一个 [ColorPalette](../../com.aspose.drawing.imaging/colorpalette),在输入时包含待调整的调色板,输出时包含已调整的调色板。 | +| type | int | 一个 [ColorAdjustType](../../com.aspose.drawing.imaging/coloradjusttype) 元素,指定其调整设置将应用于调色板的类别。 | + diff --git a/chinese/java/com.aspose.drawing.imaging/imagecodecinfo/_index.md b/chinese/java/com.aspose.drawing.imaging/imagecodecinfo/_index.md new file mode 100644 index 000000000..cbc74135a --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/imagecodecinfo/_index.md @@ -0,0 +1,297 @@ +--- +title: ImageCodecInfo +second_title: Aspose.Drawing for Java API 参考 +description: 该类提供必要的存储成员和方法,以检索有关已安装的图像编码器和解码器(称为编解码器)的所有相关信息。 +type: docs +weight: 25 +url: /zh/java/com.aspose.drawing.imaging/imagecodecinfo/ +--- +**Inheritance:** +java.lang.Object +``` +public final class ImageCodecInfo +``` + +该 [ImageCodecInfo](../../com.aspose.drawing.imaging/imagecodecinfo) 类提供必要的存储成员和方法,以检索有关已安装图像编码器和解码器(称为编解码器)的所有相关信息。不可继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [ImageCodecInfo()](#ImageCodecInfo--) | 初始化一个新的 [ImageCodecInfo](../../com.aspose.drawing.imaging/imagecodecinfo) 类实例。 | +| [ImageCodecInfo(UUID clsid, String codecName, String filenameExtension, String formatDescription, UUID formatID, String mimeType, int version)](#ImageCodecInfo-java.util.UUID-java.lang.String-java.lang.String-java.lang.String-java.util.UUID-java.lang.String-int-) | | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getClsid()](#getClsid--) | 获取一个包含标识特定编解码器的 GUID 的 java.util.UUID 结构。 | +| [setClsid(UUID value)](#setClsid-java.util.UUID-) | 设置一个包含标识特定编解码器的 GUID 的 java.util.UUID 结构。 | +| [getFormatID()](#getFormatID--) | 获取一个包含标识编解码器格式的 GUID 的 java.util.UUID 结构。 | +| [setFormatID(UUID value)](#setFormatID-java.util.UUID-) | 设置一个包含标识编解码器格式的 GUID 的 java.util.UUID 结构。 | +| [getCodecName()](#getCodecName--) | 获取或设置一个包含编解码器名称的字符串。 | +| [setCodecName(String value)](#setCodecName-java.lang.String-) | 获取或设置一个包含编解码器名称的字符串。 | +| [getFormatDescription()](#getFormatDescription--) | 获取或设置一个描述编解码器文件格式的字符串。 | +| [setFormatDescription(String value)](#setFormatDescription-java.lang.String-) | 获取或设置一个描述编解码器文件格式的字符串。 | +| [getFilenameExtension()](#getFilenameExtension--) | 获取或设置一个包含编解码器使用的文件扩展名的字符串。 | +| [setFilenameExtension(String value)](#setFilenameExtension-java.lang.String-) | 获取或设置一个包含编解码器使用的文件扩展名的字符串。 | +| [getMimeType()](#getMimeType--) | 获取或设置一个包含编解码器的多用途互联网邮件扩展 (MIME) 类型的字符串。 | +| [setMimeType(String value)](#setMimeType-java.lang.String-) | 获取或设置一个包含编解码器的多用途互联网邮件扩展 (MIME) 类型的字符串。 | +| [getVersion()](#getVersion--) | 获取或设置编解码器的版本号。 | +| [setVersion(int value)](#setVersion-int-) | 获取或设置编解码器的版本号。 | +| [getSignaturePatterns()](#getSignaturePatterns--) | 获取或设置一个表示编解码器签名的二维字节数组。 | +| [setSignaturePatterns(byte[][] value)](#setSignaturePatterns-byte-----) | 获取或设置一个表示编解码器签名的二维字节数组。 | +| [getSignatureMasks()](#getSignatureMasks--) | 获取或设置一个可用作过滤器的二维字节数组。 | +| [setSignatureMasks(byte[][] value)](#setSignatureMasks-byte-----) | 获取或设置一个可用作过滤器的二维字节数组。 | +| [getImageDecoders()](#getImageDecoders--) | 返回一个包含关于 GDI+ 内置图像解码器信息的 [ImageCodecInfo](../../com.aspose.drawing.imaging/imagecodecinfo) 对象数组。 | +| [getImageEncoders()](#getImageEncoders--) | 返回一个包含关于 GDI+ 内置图像编码器信息的 [ImageCodecInfo](../../com.aspose.drawing.imaging/imagecodecinfo) 对象数组。 | +### ImageCodecInfo() {#ImageCodecInfo--} +``` +public ImageCodecInfo() +``` + + +初始化一个新的 [ImageCodecInfo](../../com.aspose.drawing.imaging/imagecodecinfo) 类实例。 + +### ImageCodecInfo(UUID clsid, String codecName, String filenameExtension, String formatDescription, UUID formatID, String mimeType, int version) {#ImageCodecInfo-java.util.UUID-java.lang.String-java.lang.String-java.lang.String-java.util.UUID-java.lang.String-int-} +``` +public ImageCodecInfo(UUID clsid, String codecName, String filenameExtension, String formatDescription, UUID formatID, String mimeType, int version) +``` + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| clsid | java.util.UUID | | +| codecName | java.lang.String | | +| filenameExtension | java.lang.String | | +| formatDescription | java.lang.String | | +| formatID | java.util.UUID | | +| mimeType | java.lang.String | | +| version | int | | + +### getClsid() {#getClsid--} +``` +public UUID getClsid() +``` + + +获取一个包含标识特定编解码器的 GUID 的 java.util.UUID 结构。 + +**Returns:** +java.util.UUID - 一个 java.util.UUID +### setClsid(UUID value) {#setClsid-java.util.UUID-} +``` +public void setClsid(UUID value) +``` + + +设置一个包含标识特定编解码器的 GUID 的 java.util.UUID 结构。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | java.util.UUID | 一个 java.util.UUID | + +### getFormatID() {#getFormatID--} +``` +public UUID getFormatID() +``` + + +获取一个包含标识编解码器格式的 GUID 的 java.util.UUID 结构。 + +**Returns:** +java.util.UUID - 一个 java.util.UUID +### setFormatID(UUID value) {#setFormatID-java.util.UUID-} +``` +public void setFormatID(UUID value) +``` + + +设置一个包含标识编解码器格式的 GUID 的 java.util.UUID 结构。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | java.util.UUID | 一个 java.util.UUID | + +### getCodecName() {#getCodecName--} +``` +public String getCodecName() +``` + + +获取或设置一个包含编解码器名称的字符串。 + +**Returns:** +java.lang.String +### setCodecName(String value) {#setCodecName-java.lang.String-} +``` +public void setCodecName(String value) +``` + + +获取或设置一个包含编解码器名称的字符串。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | java.lang.String | | + +### getFormatDescription() {#getFormatDescription--} +``` +public String getFormatDescription() +``` + + +获取或设置一个描述编解码器文件格式的字符串。 + +**Returns:** +java.lang.String +### setFormatDescription(String value) {#setFormatDescription-java.lang.String-} +``` +public void setFormatDescription(String value) +``` + + +获取或设置一个描述编解码器文件格式的字符串。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | java.lang.String | | + +### getFilenameExtension() {#getFilenameExtension--} +``` +public String getFilenameExtension() +``` + + +获取或设置包含在编解码器中使用的文件名扩展名的字符串。扩展名之间用分号分隔。 + +**Returns:** +java.lang.String +### setFilenameExtension(String value) {#setFilenameExtension-java.lang.String-} +``` +public void setFilenameExtension(String value) +``` + + +获取或设置包含在编解码器中使用的文件名扩展名的字符串。扩展名之间用分号分隔。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | java.lang.String | | + +### getMimeType() {#getMimeType--} +``` +public String getMimeType() +``` + + +获取或设置一个包含编解码器的多用途互联网邮件扩展 (MIME) 类型的字符串。 + +**Returns:** +java.lang.String +### setMimeType(String value) {#setMimeType-java.lang.String-} +``` +public void setMimeType(String value) +``` + + +获取或设置一个包含编解码器的多用途互联网邮件扩展 (MIME) 类型的字符串。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | java.lang.String | | + +### getVersion() {#getVersion--} +``` +public int getVersion() +``` + + +获取或设置编解码器的版本号。 + +**Returns:** +int +### setVersion(int value) {#setVersion-int-} +``` +public void setVersion(int value) +``` + + +获取或设置编解码器的版本号。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | | + +### getSignaturePatterns() {#getSignaturePatterns--} +``` +public byte[][] getSignaturePatterns() +``` + + +获取或设置一个表示编解码器签名的二维字节数组。 + +**Returns:** +byte[][] +### setSignaturePatterns(byte[][] value) {#setSignaturePatterns-byte-----} +``` +public void setSignaturePatterns(byte[][] value) +``` + + +获取或设置一个表示编解码器签名的二维字节数组。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | byte[][] | | + +### getSignatureMasks() {#getSignatureMasks--} +``` +public byte[][] getSignatureMasks() +``` + + +获取或设置一个可用作过滤器的二维字节数组。 + +**Returns:** +byte[][] +### setSignatureMasks(byte[][] value) {#setSignatureMasks-byte-----} +``` +public void setSignatureMasks(byte[][] value) +``` + + +获取或设置一个可用作过滤器的二维字节数组。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | byte[][] | | + +### getImageDecoders() {#getImageDecoders--} +``` +public static ImageCodecInfo[] getImageDecoders() +``` + + +返回一个包含关于 GDI+ 内置图像解码器信息的 [ImageCodecInfo](../../com.aspose.drawing.imaging/imagecodecinfo) 对象数组。 + +**Returns:** +com.aspose.drawing.imaging.ImageCodecInfo[] - 一个由 [ImageCodecInfo](../../com.aspose.drawing.imaging/imagecodecinfo) 对象组成的数组。数组中的每个 [ImageCodecInfo](../../com.aspose.drawing.imaging/imagecodecinfo) 对象包含有关内置图像解码器之一的信息。 +### getImageEncoders() {#getImageEncoders--} +``` +public static ImageCodecInfo[] getImageEncoders() +``` + + +返回一个包含关于 GDI+ 内置图像编码器信息的 [ImageCodecInfo](../../com.aspose.drawing.imaging/imagecodecinfo) 对象数组。 + +**Returns:** +com.aspose.drawing.imaging.ImageCodecInfo[] - 一个由 [ImageCodecInfo](../../com.aspose.drawing.imaging/imagecodecinfo) 对象组成的数组。数组中的每个 [ImageCodecInfo](../../com.aspose.drawing.imaging/imagecodecinfo) 对象包含有关内置图像编码器之一的信息。 diff --git a/chinese/java/com.aspose.drawing.imaging/imageflags/_index.md b/chinese/java/com.aspose.drawing.imaging/imageflags/_index.md new file mode 100644 index 000000000..b76189c4c --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/imageflags/_index.md @@ -0,0 +1,145 @@ +--- +title: ImageFlags +second_title: Aspose.Drawing for Java API 参考 +description: 指定对象中包含的像素数据的属性。 +type: docs +weight: 26 +url: /zh/java/com.aspose.drawing.imaging/imageflags/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class ImageFlags extends System.Enum +``` + +指定在 [Image](../../com.aspose.drawing/image) 对象中包含的像素数据的属性。Flags 属性返回此枚举的成员。此枚举具有 FlagsAttribute 特性,允许对其成员值进行按位组合。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [None](#None) | 没有格式信息 | +| [Scalable](#Scalable) | 像素数据是可伸缩的。 | +| [HasAlpha](#HasAlpha) | 像素数据包含 alpha 信息。 | +| [HasTranslucent](#HasTranslucent) | 指定像素数据的 alpha 值不为 0(透明)和 255(不透明)。 | +| [PartiallyScalable](#PartiallyScalable) | 像素数据是部分可伸缩的,但存在一些限制。 | +| [ColorSpaceRgb](#ColorSpaceRgb) | 像素数据使用 RGB 颜色空间。 | +| [ColorSpaceCmyk](#ColorSpaceCmyk) | 像素数据使用 CMYK 颜色空间。 | +| [ColorSpaceGray](#ColorSpaceGray) | 像素数据为灰度。 | +| [ColorSpaceYcbcr](#ColorSpaceYcbcr) | 指定图像使用 YCBCR 颜色空间存储。 | +| [ColorSpaceYcck](#ColorSpaceYcck) | 指定图像使用 YCCK 颜色空间存储。 | +| [HasRealDpi](#HasRealDpi) | 指定每英寸点数信息存储在图像中。 | +| [HasRealPixelSize](#HasRealPixelSize) | 指定像素大小存储在图像中。 | +| [ReadOnly](#ReadOnly) | 像素数据为只读。 | +| [Caching](#Caching) | 像素数据可以缓存以加快访问速度。 | +### None {#None} +``` +public static final int None +``` + + +没有格式信息 + +### Scalable {#Scalable} +``` +public static final int Scalable +``` + + +像素数据是可伸缩的。 + +### HasAlpha {#HasAlpha} +``` +public static final int HasAlpha +``` + + +像素数据包含 alpha 信息。 + +### HasTranslucent {#HasTranslucent} +``` +public static final int HasTranslucent +``` + + +指定像素数据的 alpha 值不为 0(透明)和 255(不透明)。 + +### PartiallyScalable {#PartiallyScalable} +``` +public static final int PartiallyScalable +``` + + +像素数据是部分可伸缩的,但存在一些限制。 + +### ColorSpaceRgb {#ColorSpaceRgb} +``` +public static final int ColorSpaceRgb +``` + + +像素数据使用 RGB 颜色空间。 + +### ColorSpaceCmyk {#ColorSpaceCmyk} +``` +public static final int ColorSpaceCmyk +``` + + +像素数据使用 CMYK 颜色空间。 + +### ColorSpaceGray {#ColorSpaceGray} +``` +public static final int ColorSpaceGray +``` + + +像素数据为灰度。 + +### ColorSpaceYcbcr {#ColorSpaceYcbcr} +``` +public static final int ColorSpaceYcbcr +``` + + +指定图像使用 YCBCR 颜色空间存储。 + +### ColorSpaceYcck {#ColorSpaceYcck} +``` +public static final int ColorSpaceYcck +``` + + +指定图像使用 YCCK 颜色空间存储。 + +### HasRealDpi {#HasRealDpi} +``` +public static final int HasRealDpi +``` + + +指定每英寸点数信息存储在图像中。 + +### HasRealPixelSize {#HasRealPixelSize} +``` +public static final int HasRealPixelSize +``` + + +指定像素大小存储在图像中。 + +### ReadOnly {#ReadOnly} +``` +public static final int ReadOnly +``` + + +像素数据为只读。 + +### Caching {#Caching} +``` +public static final int Caching +``` + + +像素数据可以缓存以加快访问速度。 + diff --git a/chinese/java/com.aspose.drawing.imaging/imageformat/_index.md b/chinese/java/com.aspose.drawing.imaging/imageformat/_index.md new file mode 100644 index 000000000..309284bfb --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/imageformat/_index.md @@ -0,0 +1,196 @@ +--- +title: ImageFormat +second_title: Aspose.Drawing for Java API 参考 +description: 指定图像的文件格式。 +type: docs +weight: 27 +url: /zh/java/com.aspose.drawing.imaging/imageformat/ +--- +**Inheritance:** +java.lang.Object +``` +public final class ImageFormat +``` + +指定图像的文件格式。不可继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [ImageFormat(UUID guid)](#ImageFormat-java.util.UUID-) | 使用指定的 java.util.UUID 结构初始化 [ImageFormat](../../com.aspose.drawing.imaging/imageformat) 类的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getMemoryBmp()](#getMemoryBmp--) | 获取内存位图图像格式。 | +| [getBmp()](#getBmp--) | 获取位图 (BMP) 图像格式。 | +| [getEmf()](#getEmf--) | 获取增强型图元文件 (EMF) 图像格式。 | +| [getWmf()](#getWmf--) | 获取 Windows 图元文件 (WMF) 图像格式。 | +| [getGif()](#getGif--) | 获取图形交换格式 (GIF) 图像格式。 | +| [getJpeg()](#getJpeg--) | 获取联合图像专家组 (JPEG) 图像格式。 | +| [getPng()](#getPng--) | 获取 W3C 可移植网络图形 (PNG) 图像格式。 | +| [getTiff()](#getTiff--) | 获取标记图像文件格式 (TIFF) 图像格式。 | +| [getExif()](#getExif--) | 获取可交换图像文件 (EXIF) 格式。 | +| [getIcon()](#getIcon--) | 获取 Windows 图标图像格式。 | +| [getGuid()](#getGuid--) | 获取表示此 [ImageFormat](../../com.aspose.drawing.imaging/imageformat) 对象的 java.util.UUID 结构。 | +| [equals(Object o)](#equals-java.lang.Object-) | 返回一个值,指示指定的对象是否为等价于此 [ImageFormat](../../com.aspose.drawing.imaging/imageformat) 对象的 [ImageFormat](../../com.aspose.drawing.imaging/imageformat) 对象。 | +| [hashCode()](#hashCode--) | 返回表示此对象的哈希码值。 | +| [toString()](#toString--) | 将此 [ImageFormat](../../com.aspose.drawing.imaging/imageformat) 对象转换为人类可读的字符串。 | +### ImageFormat(UUID guid) {#ImageFormat-java.util.UUID-} +``` +public ImageFormat(UUID guid) +``` + + +使用指定的 java.util.UUID 结构初始化 [ImageFormat](../../com.aspose.drawing.imaging/imageformat) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| guid | java.util.UUID | 指定特定图像格式的 java.util.UUID 结构。 | + +### getMemoryBmp() {#getMemoryBmp--} +``` +public static ImageFormat getMemoryBmp() +``` + + +获取内存位图图像格式。 + +**Returns:** +[ImageFormat](../../com.aspose.drawing.imaging/imageformat) +### getBmp() {#getBmp--} +``` +public static ImageFormat getBmp() +``` + + +获取位图 (BMP) 图像格式。 + +**Returns:** +[ImageFormat](../../com.aspose.drawing.imaging/imageformat) +### getEmf() {#getEmf--} +``` +public static ImageFormat getEmf() +``` + + +获取增强型图元文件 (EMF) 图像格式。 + +**Returns:** +[ImageFormat](../../com.aspose.drawing.imaging/imageformat) +### getWmf() {#getWmf--} +``` +public static ImageFormat getWmf() +``` + + +获取 Windows 图元文件 (WMF) 图像格式。 + +**Returns:** +[ImageFormat](../../com.aspose.drawing.imaging/imageformat) +### getGif() {#getGif--} +``` +public static ImageFormat getGif() +``` + + +获取图形交换格式 (GIF) 图像格式。 + +**Returns:** +[ImageFormat](../../com.aspose.drawing.imaging/imageformat) +### getJpeg() {#getJpeg--} +``` +public static ImageFormat getJpeg() +``` + + +获取联合图像专家组 (JPEG) 图像格式。 + +**Returns:** +[ImageFormat](../../com.aspose.drawing.imaging/imageformat) +### getPng() {#getPng--} +``` +public static ImageFormat getPng() +``` + + +获取 W3C 可移植网络图形 (PNG) 图像格式。 + +**Returns:** +[ImageFormat](../../com.aspose.drawing.imaging/imageformat) +### getTiff() {#getTiff--} +``` +public static ImageFormat getTiff() +``` + + +获取标记图像文件格式 (TIFF) 图像格式。 + +**Returns:** +[ImageFormat](../../com.aspose.drawing.imaging/imageformat) +### getExif() {#getExif--} +``` +public static ImageFormat getExif() +``` + + +获取可交换图像文件 (EXIF) 格式。 + +**Returns:** +[ImageFormat](../../com.aspose.drawing.imaging/imageformat) +### getIcon() {#getIcon--} +``` +public static ImageFormat getIcon() +``` + + +获取 Windows 图标图像格式。 + +**Returns:** +[ImageFormat](../../com.aspose.drawing.imaging/imageformat) +### getGuid() {#getGuid--} +``` +public UUID getGuid() +``` + + +获取表示此 [ImageFormat](../../com.aspose.drawing.imaging/imageformat) 对象的 java.util.UUID 结构。 + +**Returns:** +java.util.UUID +### equals(Object o) {#equals-java.lang.Object-} +``` +public boolean equals(Object o) +``` + + +返回一个值,指示指定的对象是否为等价于此 [ImageFormat](../../com.aspose.drawing.imaging/imageformat) 对象的 [ImageFormat](../../com.aspose.drawing.imaging/imageformat) 对象。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| o | java.lang.Object | 要测试的对象。 | + +**Returns:** +布尔 - 如果 `o` 是等价于此 [ImageFormat](../../com.aspose.drawing.imaging/imageformat) 对象的 [ImageFormat](../../com.aspose.drawing.imaging/imageformat) 对象,则为 true;否则为 false。 +### hashCode() {#hashCode--} +``` +public int hashCode() +``` + + +返回表示此对象的哈希码值。 + +**Returns:** +int - 表示此对象的哈希码。 +### toString() {#toString--} +``` +public String toString() +``` + + +将此 [ImageFormat](../../com.aspose.drawing.imaging/imageformat) 对象转换为人类可读的字符串。 + +**Returns:** +java.lang.String - 表示此 [ImageFormat](../../com.aspose.drawing.imaging/imageformat) 对象的字符串。 diff --git a/chinese/java/com.aspose.drawing.imaging/imagelockmode/_index.md b/chinese/java/com.aspose.drawing.imaging/imagelockmode/_index.md new file mode 100644 index 000000000..a2ec8fd3b --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/imagelockmode/_index.md @@ -0,0 +1,55 @@ +--- +title: ImageLockMode +second_title: Aspose.Drawing for Java API 参考 +description: 指定传递给 flags 参数的标志。 +type: docs +weight: 28 +url: /zh/java/com.aspose.drawing.imaging/imagelockmode/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class ImageLockMode extends System.Enum +``` + +指定传递给 flags 参数的标志,使用 [Bitmap.lockBits(Rectangle, int, int)](../../com.aspose.drawing/bitmap\#lockBits-Rectangle--int--int-) 方法。该 [Bitmap.lockBits(Rectangle, int, int)](../../com.aspose.drawing/bitmap\#lockBits-Rectangle--int--int-) 方法锁定图像的一部分,以便您可以读取或写入像素数据。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [ReadOnly](#ReadOnly) | 指定图像的一部分被锁定用于读取。 | +| [WriteOnly](#WriteOnly) | 指定图像的一部分被锁定用于写入。 | +| [ReadWrite](#ReadWrite) | 指定图像的一部分被锁定用于读取或写入。 | +| [UserInputBuffer](#UserInputBuffer) | 指定用于读取或写入像素数据的缓冲区由用户分配。 | +### ReadOnly {#ReadOnly} +``` +public static final int ReadOnly +``` + + +指定图像的一部分被锁定用于读取。 + +### WriteOnly {#WriteOnly} +``` +public static final int WriteOnly +``` + + +指定图像的一部分被锁定用于写入。 + +### ReadWrite {#ReadWrite} +``` +public static final int ReadWrite +``` + + +指定图像的一部分被锁定用于读取或写入。 + +### UserInputBuffer {#UserInputBuffer} +``` +public static final int UserInputBuffer +``` + + +指定用于读取或写入像素数据的缓冲区由用户分配。如果设置了此标志,`flags` 参数在 [Bitmap.lockBits(Rectangle, int, int)](../../com.aspose.drawing/bitmap\#lockBits-Rectangle--int--int-) 方法中用作输入参数(也可能用作输出参数)。如果清除此标志,则 `flags` 参数仅用作输出参数。 + diff --git a/chinese/java/com.aspose.drawing.imaging/metafile/_index.md b/chinese/java/com.aspose.drawing.imaging/metafile/_index.md new file mode 100644 index 000000000..8ec04b303 --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/metafile/_index.md @@ -0,0 +1,391 @@ +--- +title: 元文件 +second_title: Aspose.Drawing for Java API 参考 +description: 定义图形元文件。 +type: docs +weight: 30 +url: /zh/java/com.aspose.drawing.imaging/metafile/ +--- +**Inheritance:** +java.lang.Object, [com.aspose.drawing.Image](../../com.aspose.drawing/image) +``` +public final class Metafile extends Image +``` + +定义图形元文件。元文件包含描述一系列图形操作的记录,这些操作可以被记录(构造)并回放(显示)。此类不可继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [Metafile(byte[] henhmetafile, boolean deleteEmf)](#Metafile-byte---boolean-) | 使用指定的句柄初始化 [Metafile](../../com.aspose.drawing.imaging/metafile) 类的新实例。 | +| [Metafile(byte[] referenceHdc, int emfType)](#Metafile-byte---int-) | 使用指定的设备上下文句柄和一个指定 [Metafile](../../com.aspose.drawing.imaging/metafile) 格式的 [EmfType](../../com.aspose.drawing.imaging/emftype) 枚举,从句柄初始化 [Metafile](../../com.aspose.drawing.imaging/metafile) 类的新实例。 | +| [Metafile(String filename)](#Metafile-java.lang.String-) | 使用指定的文件名初始化 [Metafile](../../com.aspose.drawing.imaging/metafile) 类的新实例。 | +| [Metafile(String filename, byte[] referenceHdc)](#Metafile-java.lang.String-byte---) | 使用指定的文件名初始化 [Metafile](../../com.aspose.drawing.imaging/metafile) 类的新实例。 | +| [Metafile(InputStream stream)](#Metafile-java.io.InputStream-) | 使用指定的数据流初始化 [Metafile](../../com.aspose.drawing.imaging/metafile) 类的新实例。 | +| [Metafile(InputStream stream, byte[] referenceHdc)](#Metafile-java.io.InputStream-byte---) | 使用指定的数据流和指向设备上下文的 Windows 句柄初始化 [Metafile](../../com.aspose.drawing.imaging/metafile) 类的新实例。 | +| [Metafile(System.IO.Stream stream, int type)](#Metafile-com.aspose.ms.System.IO.Stream-int-) | 使用指定的数据流和指向设备上下文的 Windows 句柄初始化 [Metafile](../../com.aspose.drawing.imaging/metafile) 类的新实例。 | +| [Metafile(InputStream stream, byte[] referenceHdc, int type)](#Metafile-java.io.InputStream-byte---int-) | 使用指定的数据流、指向设备上下文的 Windows 句柄以及指定 [Metafile](../../com.aspose.drawing.imaging/metafile) 格式的 [EmfType](../../com.aspose.drawing.imaging/emftype) 枚举,初始化 [Metafile](../../com.aspose.drawing.imaging/metafile) 类的新实例。 | +| [Metafile(InputStream stream, byte[] referenceHdc, RectangleF frameRect, int frameUnit, int type)](#Metafile-java.io.InputStream-byte---com.aspose.drawing.RectangleF-int-int-) | 使用指定的数据流、指向设备上下文的 Windows 句柄以及指定 [Metafile](../../com.aspose.drawing.imaging/metafile) 格式的 [EmfType](../../com.aspose.drawing.imaging/emftype) 枚举,初始化 [Metafile](../../com.aspose.drawing.imaging/metafile) 类的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getWidth()](#getWidth--) | 获取此 [Metafile](../../com.aspose.drawing.imaging/metafile) 的宽度(以像素为单位)。 | +| [getHeight()](#getHeight--) | 获取此 [Metafile](../../com.aspose.drawing.imaging/metafile) 的高度(以像素为单位)。 | +| [getRawFormat()](#getRawFormat--) | 获取此 [Image](../../com.aspose.drawing/image) 的文件格式。 | +| [getPixelFormat()](#getPixelFormat--) | 获取此 [Image](../../com.aspose.drawing/image) 的像素格式。 | +| [getPalette()](#getPalette--) | 获取或设置此 [Image](../../com.aspose.drawing/image) 使用的颜色调色板。 | +| [setPalette(ColorPalette value)](#setPalette-com.aspose.drawing.imaging.ColorPalette-) | 获取或设置此 [Image](../../com.aspose.drawing/image) 使用的颜色调色板。 | +| [getFrameDimensionsList()](#getFrameDimensionsList--) | 获取表示此 [Image](../../com.aspose.drawing/image) 中帧维度的 GUID 数组。 | +| [getPropertyIdList()](#getPropertyIdList--) | 获取存储在此 [Image](../../com.aspose.drawing/image) 中的属性项的 ID。 | +| [getPropertyItems()](#getPropertyItems--) | 获取存储在此 [Image](../../com.aspose.drawing/image) 中的所有属性项(元数据片段)。 | +| [getMetafileHeader(InputStream stream)](#getMetafileHeader-java.io.InputStream-) | 返回与指定的 [Metafile](../../com.aspose.drawing.imaging/metafile) 关联的 [MetafileHeader](../../com.aspose.drawing.imaging/metafileheader)。 | +| [getMetafileHeader(String fileName)](#getMetafileHeader-java.lang.String-) | 返回与指定的 [Metafile](../../com.aspose.drawing.imaging/metafile) 关联的 [MetafileHeader](../../com.aspose.drawing.imaging/metafileheader)。 | +| [rotateFlip(int rotateFlipType)](#rotateFlip-int-) | 此方法可旋转、翻转或同时旋转并翻转 [Image](../../com.aspose.drawing/image)。 | +| [getHenhmetafile()](#getHenhmetafile--) | 返回指向增强型 [Metafile](../../com.aspose.drawing.imaging/metafile) 的 Windows 句柄。 | +| [playRecord(int recordType, int flags, int dataSize, byte[] dataArray)](#playRecord-int-int-int-byte---) | 播放单个元文件记录。 | +| [getMetafileHeader()](#getMetafileHeader--) | 返回与此 [Metafile](../../com.aspose.drawing.imaging/metafile) 关联的 [MetafileHeader](../../com.aspose.drawing.imaging/metafileheader)。 | +| [getPropertyItem(int propid)](#getPropertyItem-int-) | 获取此 [Image](../../com.aspose.drawing/image) 中的指定属性项。 | +| [removePropertyItem(int propid)](#removePropertyItem-int-) | 从此 [Image](../../com.aspose.drawing/image) 中移除指定的属性项。 | +| [setPropertyItem(PropertyItem propitem)](#setPropertyItem-com.aspose.drawing.imaging.PropertyItem-) | 在此 [Image](../../com.aspose.drawing/image) 中存储属性项(元数据片段)。 | +### Metafile(byte[] henhmetafile, boolean deleteEmf) {#Metafile-byte---boolean-} +``` +public Metafile(byte[] henhmetafile, boolean deleteEmf) +``` + + +使用指定的句柄初始化 [Metafile](../../com.aspose.drawing.imaging/metafile) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| henhmetafile | byte[] | 一个指向增强型元文件的句柄。 | +| deleteEmf | boolean | 当 [Metafile](../../com.aspose.drawing.imaging/metafile) 被删除时,设为 true 以删除增强型元文件句柄;否则为 false。 | + +### Metafile(byte[] referenceHdc, int emfType) {#Metafile-byte---int-} +``` +public Metafile(byte[] referenceHdc, int emfType) +``` + + +使用指定的设备上下文句柄和一个指定 [Metafile](../../com.aspose.drawing.imaging/metafile) 格式的 [EmfType](../../com.aspose.drawing.imaging/emftype) 枚举,从句柄初始化 [Metafile](../../com.aspose.drawing.imaging/metafile) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| referenceHdc | byte[] | 设备上下文的句柄。 | +| emfType | int | 一个指定 [Metafile](../../com.aspose.drawing.imaging/metafile) 格式的 [EmfType](../../com.aspose.drawing.imaging/emftype)。 | + +### Metafile(String filename) {#Metafile-java.lang.String-} +``` +public Metafile(String filename) +``` + + +使用指定的文件名初始化 [Metafile](../../com.aspose.drawing.imaging/metafile) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| filename | java.lang.String | 一个表示用于创建新 [Metafile](../../com.aspose.drawing.imaging/metafile) 的文件名的字符串。 | + +### Metafile(String filename, byte[] referenceHdc) {#Metafile-java.lang.String-byte---} +``` +public Metafile(String filename, byte[] referenceHdc) +``` + + +使用指定的文件名初始化 [Metafile](../../com.aspose.drawing.imaging/metafile) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| filename | java.lang.String | 一个表示用于创建新 [Metafile](../../com.aspose.drawing.imaging/metafile) 的文件名的字符串。 | +| referenceHdc | byte[] | 指向设备上下文的 Windows 句柄。 | + +### Metafile(InputStream stream) {#Metafile-java.io.InputStream-} +``` +public Metafile(InputStream stream) +``` + + +使用指定的数据流初始化 [Metafile](../../com.aspose.drawing.imaging/metafile) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| stream | java.io.InputStream | 用于创建新 [Metafile](../../com.aspose.drawing.imaging/metafile) 的 InputStream。 | + +### Metafile(InputStream stream, byte[] referenceHdc) {#Metafile-java.io.InputStream-byte---} +``` +public Metafile(InputStream stream, byte[] referenceHdc) +``` + + +从指定的数据流和指向设备上下文的 Windows 句柄初始化 [Metafile](../../com.aspose.drawing.imaging/metafile) 类的新实例。/>。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| stream | java.io.InputStream | 一个包含此 [Metafile](../../com.aspose.drawing.imaging/metafile) 数据的 InputStream。 | +| referenceHdc | byte[] | 指向 [Metafile](../../com.aspose.drawing.imaging/metafile) 对象的设备上下文的 Windows 句柄。 | + +### Metafile(System.IO.Stream stream, int type) {#Metafile-com.aspose.ms.System.IO.Stream-int-} +``` +public Metafile(System.IO.Stream stream, int type) +``` + + +从指定的数据流和指向设备上下文的 Windows 句柄初始化 [Metafile](../../com.aspose.drawing.imaging/metafile) 类的新实例。/>。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| stream | com.aspose.ms.System.IO.Stream | 一个包含此 [Metafile](../../com.aspose.drawing.imaging/metafile) 数据的 InputStream。 | +| type | int | 必须为 int 1。 | + +### Metafile(InputStream stream, byte[] referenceHdc, int type) {#Metafile-java.io.InputStream-byte---int-} +``` +public Metafile(InputStream stream, byte[] referenceHdc, int type) +``` + + +使用指定的数据流、指向设备上下文的 Windows 句柄以及指定 [Metafile](../../com.aspose.drawing.imaging/metafile) 格式的 [EmfType](../../com.aspose.drawing.imaging/emftype) 枚举,初始化 [Metafile](../../com.aspose.drawing.imaging/metafile) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| stream | java.io.InputStream | 一个包含此 [Metafile](../../com.aspose.drawing.imaging/metafile) 数据的 InputStream。 | +| referenceHdc | byte[] | 指向设备上下文的 Windows 句柄。 | +| type | int | 一个指定 [Metafile](../../com.aspose.drawing.imaging/metafile) 格式的 [EmfType](../../com.aspose.drawing.imaging/emftype)。 | + +### Metafile(InputStream stream, byte[] referenceHdc, RectangleF frameRect, int frameUnit, int type) {#Metafile-java.io.InputStream-byte---com.aspose.drawing.RectangleF-int-int-} +``` +public Metafile(InputStream stream, byte[] referenceHdc, RectangleF frameRect, int frameUnit, int type) +``` + + +使用指定的数据流、指向设备上下文的 Windows 句柄以及指定 [Metafile](../../com.aspose.drawing.imaging/metafile) 格式的 [EmfType](../../com.aspose.drawing.imaging/emftype) 枚举,初始化 [Metafile](../../com.aspose.drawing.imaging/metafile) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| stream | java.io.InputStream | 一个包含此 [Metafile](../../com.aspose.drawing.imaging/metafile) 数据的 InputStream。 | +| referenceHdc | byte[] | 指向设备上下文的 Windows 句柄。 | +| frameRect | [RectangleF](../../com.aspose.drawing/rectanglef) | 一个表示界定新 [Metafile](../../com.aspose.drawing.imaging/metafile) 的矩形的 [Rectangle](../../com.aspose.drawing/rectangle)。 | +| frameUnit | int | 一个指定 frameRect 测量单位的 [MetafileFrameUnit](../../com.aspose.drawing.imaging/metafileframeunit)。 | +| type | int | 一个指定 [Metafile](../../com.aspose.drawing.imaging/metafile) 格式的 [EmfType](../../com.aspose.drawing.imaging/emftype)。 | + +### getWidth() {#getWidth--} +``` +public int getWidth() +``` + + +获取此 [Metafile](../../com.aspose.drawing.imaging/metafile) 的宽度(以像素为单位)。 + +**Returns:** +int +### getHeight() {#getHeight--} +``` +public int getHeight() +``` + + +获取此 [Metafile](../../com.aspose.drawing.imaging/metafile) 的高度(以像素为单位)。 + +**Returns:** +int - 此 [Metafile](../../com.aspose.drawing.imaging/metafile) 的高度(以像素为单位)。 +### getRawFormat() {#getRawFormat--} +``` +public ImageFormat getRawFormat() +``` + + +获取此 [Image](../../com.aspose.drawing/image) 的文件格式。 + +**Returns:** +[ImageFormat](../../com.aspose.drawing.imaging/imageformat) - The [ImageFormat](../../com.aspose.drawing.imaging/imageformat) that represents the file format of this [Image](../../com.aspose.drawing/image). +### getPixelFormat() {#getPixelFormat--} +``` +public int getPixelFormat() +``` + + +获取此 [Image](../../com.aspose.drawing/image) 的像素格式。 + +**Returns:** +int - 表示此 [Image](../../com.aspose.drawing/image) 像素格式的 `PixelFormat`([Image.getPixelFormat](../../com.aspose.drawing/image\#getPixelFormat))。 +### getPalette() {#getPalette--} +``` +public ColorPalette getPalette() +``` + + +获取或设置此 [Image](../../com.aspose.drawing/image) 使用的颜色调色板。 + +**Returns:** +[ColorPalette](../../com.aspose.drawing.imaging/colorpalette) - A [ColorPalette](../../com.aspose.drawing.imaging/colorpalette) that represents the color palette used for this [Image](../../com.aspose.drawing/image). +### setPalette(ColorPalette value) {#setPalette-com.aspose.drawing.imaging.ColorPalette-} +``` +public void setPalette(ColorPalette value) +``` + + +获取或设置此 [Image](../../com.aspose.drawing/image) 使用的颜色调色板。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [ColorPalette](../../com.aspose.drawing.imaging/colorpalette) | | + +### getFrameDimensionsList() {#getFrameDimensionsList--} +``` +public UUID[] getFrameDimensionsList() +``` + + +获取表示此 [Image](../../com.aspose.drawing/image) 中帧维度的 GUID 数组。 + +**Returns:** +java.util.UUID[] - 一个从最高位到最低位指定此 [Image](../../com.aspose.drawing/image) 中帧尺寸的 GUID 数组。 +### getPropertyIdList() {#getPropertyIdList--} +``` +public int[] getPropertyIdList() +``` + + +获取存储在此 [Image](../../com.aspose.drawing/image) 中的属性项的 ID。 + +**Returns:** +int[] - 一个属性 ID 数组,每个属性项在此图像中存储一个对应的 ID。 +### getPropertyItems() {#getPropertyItems--} +``` +public PropertyItem[] getPropertyItems() +``` + + +获取存储在此 [Image](../../com.aspose.drawing/image) 中的所有属性项(元数据片段)。 + +**Returns:** +com.aspose.drawing.imaging.PropertyItem[] - 一个 [PropertyItem](../../com.aspose.drawing.imaging/propertyitem) 对象数组,每个属性项在图像中存储一个对象。 +### getMetafileHeader(InputStream stream) {#getMetafileHeader-java.io.InputStream-} +``` +public static MetafileHeader getMetafileHeader(InputStream stream) +``` + + +返回与指定的 [Metafile](../../com.aspose.drawing.imaging/metafile) 关联的 [MetafileHeader](../../com.aspose.drawing.imaging/metafileheader)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| stream | java.io.InputStream | 一个包含要检索其头部的 [Metafile](../../com.aspose.drawing.imaging/metafile) 的 InputStream。 | + +**Returns:** +[MetafileHeader](../../com.aspose.drawing.imaging/metafileheader) - The [MetafileHeader](../../com.aspose.drawing.imaging/metafileheader) associated with the specified [Metafile](../../com.aspose.drawing.imaging/metafile). +### getMetafileHeader(String fileName) {#getMetafileHeader-java.lang.String-} +``` +public static MetafileHeader getMetafileHeader(String fileName) +``` + + +返回与指定的 [Metafile](../../com.aspose.drawing.imaging/metafile) 关联的 [MetafileHeader](../../com.aspose.drawing.imaging/metafileheader)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| fileName | java.lang.String | 一个包含要检索其头部的 [Metafile](../../com.aspose.drawing.imaging/metafile) 名称的字符串。 | + +**Returns:** +[MetafileHeader](../../com.aspose.drawing.imaging/metafileheader) - The [MetafileHeader](../../com.aspose.drawing.imaging/metafileheader) associated with the specified [Metafile](../../com.aspose.drawing.imaging/metafile). +### rotateFlip(int rotateFlipType) {#rotateFlip-int-} +``` +public void rotateFlip(int rotateFlipType) +``` + + +此方法可旋转、翻转或同时旋转并翻转 [Image](../../com.aspose.drawing/image)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rotateFlipType | int | 一个指定对图像应用的旋转和翻转类型的 [RotateFlipType](../../com.aspose.drawing/rotatefliptype) 成员。 | + +### getHenhmetafile() {#getHenhmetafile--} +``` +public System.IntPtr getHenhmetafile() +``` + + +返回指向增强型 [Metafile](../../com.aspose.drawing.imaging/metafile) 的 Windows 句柄。 + +**Returns:** +com.aspose.ms.System.IntPtr - 指向此增强型 [Metafile](../../com.aspose.drawing.imaging/metafile) 的 Windows 句柄。 +### playRecord(int recordType, int flags, int dataSize, byte[] dataArray) {#playRecord-int-int-int-byte---} +``` +public void playRecord(int recordType, int flags, int dataSize, byte[] dataArray) +``` + + +播放单个元文件记录。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| recordType | int | 表示正在播放的元文件记录类型的 [EmfPlusRecordType](../../com.aspose.drawing.imaging/emfplusrecordtype) 元素。 | +| flags | int | 指定记录属性的一组标志。 | +| dataSize | int | 记录数据中的字节数。 | +| dataArray | byte[] | 包含记录数据的字节数组。 | + +### getMetafileHeader() {#getMetafileHeader--} +``` +public MetafileHeader getMetafileHeader() +``` + + +返回与此 [Metafile](../../com.aspose.drawing.imaging/metafile) 关联的 [MetafileHeader](../../com.aspose.drawing.imaging/metafileheader)。 + +**Returns:** +[MetafileHeader](../../com.aspose.drawing.imaging/metafileheader) - The [MetafileHeader](../../com.aspose.drawing.imaging/metafileheader) associated with this [Metafile](../../com.aspose.drawing.imaging/metafile). +### getPropertyItem(int propid) {#getPropertyItem-int-} +``` +public PropertyItem getPropertyItem(int propid) +``` + + +获取此 [Image](../../com.aspose.drawing/image) 中的指定属性项。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| propid | int | 要获取的属性项的 ID。 | + +**Returns:** +[PropertyItem](../../com.aspose.drawing.imaging/propertyitem) - The [PropertyItem](../../com.aspose.drawing.imaging/propertyitem) this method gets. +### removePropertyItem(int propid) {#removePropertyItem-int-} +``` +public void removePropertyItem(int propid) +``` + + +从此 [Image](../../com.aspose.drawing/image) 中移除指定的属性项。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| propid | int | 要移除的属性项的 ID。 | + +### setPropertyItem(PropertyItem propitem) {#setPropertyItem-com.aspose.drawing.imaging.PropertyItem-} +``` +public void setPropertyItem(PropertyItem propitem) +``` + + +在此 [Image](../../com.aspose.drawing/image) 中存储属性项(元数据片段)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| propitem | [PropertyItem](../../com.aspose.drawing.imaging/propertyitem) | 要存储的 [PropertyItem](../../com.aspose.drawing.imaging/propertyitem)。 | + diff --git a/chinese/java/com.aspose.drawing.imaging/metafileframeunit/_index.md b/chinese/java/com.aspose.drawing.imaging/metafileframeunit/_index.md new file mode 100644 index 000000000..0e79d0233 --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/metafileframeunit/_index.md @@ -0,0 +1,73 @@ +--- +title: MetafileFrameUnit +second_title: Aspose.Drawing for Java API 参考 +description: 指定用于调整元文件大小和位置的矩形的测量单位。 +type: docs +weight: 31 +url: /zh/java/com.aspose.drawing.imaging/metafileframeunit/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class MetafileFrameUnit extends System.Enum +``` + +指定用于确定元文件大小和位置的矩形的计量单位。此单位在创建 [Metafile](../../com.aspose.drawing.imaging/metafile) 对象时指定。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [Pixel](#Pixel) | 计量单位为 1 像素。 | +| [Point](#Point) | 计量单位为 1 打印点。 | +| [Inch](#Inch) | 计量单位为 1 英寸。 | +| [Document](#Document) | 计量单位为 1/300 英寸。 | +| [Millimeter](#Millimeter) | 计量单位为 1 毫米。 | +| [GdiCompatible](#GdiCompatible) | 计量单位为 0.01 毫米。 | +### Pixel {#Pixel} +``` +public static final int Pixel +``` + + +计量单位为 1 像素。 + +### Point {#Point} +``` +public static final int Point +``` + + +计量单位为 1 打印点。 + +### Inch {#Inch} +``` +public static final int Inch +``` + + +计量单位为 1 英寸。 + +### Document {#Document} +``` +public static final int Document +``` + + +计量单位为 1/300 英寸。 + +### Millimeter {#Millimeter} +``` +public static final int Millimeter +``` + + +计量单位为 1 毫米。 + +### GdiCompatible {#GdiCompatible} +``` +public static final int GdiCompatible +``` + + +计量单位为 0.01 毫米。为兼容 GDI 提供。 + diff --git a/chinese/java/com.aspose.drawing.imaging/metafileheader/_index.md b/chinese/java/com.aspose.drawing.imaging/metafileheader/_index.md new file mode 100644 index 000000000..7d3665721 --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/metafileheader/_index.md @@ -0,0 +1,217 @@ +--- +title: MetafileHeader +second_title: Aspose.Drawing for Java API 参考 +description: Contains attributes of an associated . +type: docs +weight: 32 +url: /zh/java/com.aspose.drawing.imaging/metafileheader/ +--- +**Inheritance:** +java.lang.Object +``` +public final class MetafileHeader +``` + +Contains attributes of an associated [Metafile](../../com.aspose.drawing.imaging/metafile). Not inheritable. +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getType()](#getType--) | Gets the type of the associated [Metafile](../../com.aspose.drawing.imaging/metafile) | +| [getEmfPlusHeaderSize()](#getEmfPlusHeaderSize--) | Gets the size, in bytes, of the enhanced metafile plus header file. | +| [getWmfHeader()](#getWmfHeader--) | Gets the Windows metafile (WMF) header file for the associated [Metafile](../../com.aspose.drawing.imaging/metafile). | +| [getBounds()](#getBounds--) | Gets a [Rectangle](../../com.aspose.drawing/rectangle) that bounds the associated [Metafile](../../com.aspose.drawing.imaging/metafile). | +| [getDpiX()](#getDpiX--) | 获取关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 的水平分辨率(每英寸点数)。 | +| [getDpiY()](#getDpiY--) | 获取关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 的垂直分辨率(每英寸点数)。 | +| [getVersion()](#getVersion--) | 获取关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 的版本号。 | +| [getMetafileSize()](#getMetafileSize--) | 获取关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 的大小(字节)。 | +| [getLogicalDpiX()](#getLogicalDpiX--) | 获取关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 的逻辑水平分辨率(每英寸点数)。 | +| [getLogicalDpiY()](#getLogicalDpiY--) | 获取关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 的逻辑垂直分辨率(每英寸点数)。 | +| [isDisplay()](#isDisplay--) | 返回一个值,指示关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 是否依赖于设备。 | +| [isEmf()](#isEmf--) | 返回一个值,指示关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 是否为 Windows 增强型元文件格式。 | +| [isEmfOrEmfPlus()](#isEmfOrEmfPlus--) | 返回一个值,指示关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 是否为 Windows 增强型元文件格式或 Windows 增强型元文件加格式。 | +| [isEmfPlus()](#isEmfPlus--) | 返回一个值,指示关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 是否为 Windows 增强型元文件加格式。 | +| [isEmfPlusDual()](#isEmfPlusDual--) | 返回一个值,指示关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 是否为双增强型元文件格式。 | +| [isEmfPlusOnly()](#isEmfPlusOnly--) | 返回一个值,指示关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 是否仅支持 Windows 增强型元文件加格式。 | +| [isWmf()](#isWmf--) | 返回一个值,指示关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 是否为 Windows 元文件格式。 | +| [isWmfPlaceable()](#isWmfPlaceable--) | 返回一个值,指示关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 是否为 Windows 可放置元文件格式。 | +### getType() {#getType--} +``` +public int getType() +``` + + +Gets the type of the associated [Metafile](../../com.aspose.drawing.imaging/metafile) + +**Returns:** +int +### getEmfPlusHeaderSize() {#getEmfPlusHeaderSize--} +``` +public int getEmfPlusHeaderSize() +``` + + +Gets the size, in bytes, of the enhanced metafile plus header file. + +**Returns:** +int +### getWmfHeader() {#getWmfHeader--} +``` +public MetaHeader getWmfHeader() +``` + + +Gets the Windows metafile (WMF) header file for the associated [Metafile](../../com.aspose.drawing.imaging/metafile). + +**Returns:** +[MetaHeader](../../com.aspose.drawing.imaging/metaheader) +### getBounds() {#getBounds--} +``` +public Rectangle getBounds() +``` + + +Gets a [Rectangle](../../com.aspose.drawing/rectangle) that bounds the associated [Metafile](../../com.aspose.drawing.imaging/metafile). + +**Returns:** +[Rectangle](../../com.aspose.drawing/rectangle) +### getDpiX() {#getDpiX--} +``` +public float getDpiX() +``` + + +获取关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 的水平分辨率(每英寸点数)。 + +**Returns:** +浮点数 +### getDpiY() {#getDpiY--} +``` +public float getDpiY() +``` + + +获取关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 的垂直分辨率(每英寸点数)。 + +**Returns:** +浮点数 +### getVersion() {#getVersion--} +``` +public int getVersion() +``` + + +获取关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 的版本号。 + +**Returns:** +int +### getMetafileSize() {#getMetafileSize--} +``` +public int getMetafileSize() +``` + + +获取关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 的大小(字节)。 + +**Returns:** +int +### getLogicalDpiX() {#getLogicalDpiX--} +``` +public int getLogicalDpiX() +``` + + +获取关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 的逻辑水平分辨率(每英寸点数)。 + +**Returns:** +int +### getLogicalDpiY() {#getLogicalDpiY--} +``` +public int getLogicalDpiY() +``` + + +获取关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 的逻辑垂直分辨率(每英寸点数)。 + +**Returns:** +int +### isDisplay() {#isDisplay--} +``` +public boolean isDisplay() +``` + + +返回一个值,指示关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 是否依赖于设备。 + +**Returns:** +boolean - 如果关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 依赖于设备,则为 True;否则为 false。 +### isEmf() {#isEmf--} +``` +public boolean isEmf() +``` + + +返回一个值,指示关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 是否为 Windows 增强型元文件格式。 + +**Returns:** +boolean - 如果关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 为 Windows 增强型元文件格式,则为 True;否则为 false。 +### isEmfOrEmfPlus() {#isEmfOrEmfPlus--} +``` +public boolean isEmfOrEmfPlus() +``` + + +返回一个值,指示关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 是否为 Windows 增强型元文件格式或 Windows 增强型元文件加格式。 + +**Returns:** +boolean - 如果关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 为 Windows 增强型元文件格式或 Windows 增强型元文件加格式,则为 True;否则为 false。 +### isEmfPlus() {#isEmfPlus--} +``` +public boolean isEmfPlus() +``` + + +返回一个值,指示关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 是否为 Windows 增强型元文件加格式。 + +**Returns:** +boolean - 如果关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 为 Windows 增强型元文件加格式,则为 True;否则为 false。 +### isEmfPlusDual() {#isEmfPlusDual--} +``` +public boolean isEmfPlusDual() +``` + + +返回一个值,指示关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 是否为双增强型元文件格式。此格式同时支持增强型和增强型加格式。 + +**Returns:** +boolean - 如果关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 为双增强型元文件格式,则为 True;否则为 false。 +### isEmfPlusOnly() {#isEmfPlusOnly--} +``` +public boolean isEmfPlusOnly() +``` + + +返回一个值,指示关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 是否仅支持 Windows 增强型元文件加格式。 + +**Returns:** +boolean - 如果关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 仅支持 Windows 增强型元文件加格式,则为 True;否则为 false。 +### isWmf() {#isWmf--} +``` +public boolean isWmf() +``` + + +返回一个值,指示关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 是否为 Windows 元文件格式。 + +**Returns:** +boolean - 如果关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 为 Windows 元文件格式,则为 True;否则为 false。 +### isWmfPlaceable() {#isWmfPlaceable--} +``` +public boolean isWmfPlaceable() +``` + + +返回一个值,指示关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 是否为 Windows 可放置元文件格式。 + +**Returns:** +boolean - 如果关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 为 Windows 可放置元文件格式,则为 True;否则为 false。 diff --git a/chinese/java/com.aspose.drawing.imaging/metafiletype/_index.md b/chinese/java/com.aspose.drawing.imaging/metafiletype/_index.md new file mode 100644 index 000000000..f4ab1237b --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/metafiletype/_index.md @@ -0,0 +1,73 @@ +--- +title: MetafileType +second_title: Aspose.Drawing for Java API 参考 +description: 指定元文件的类型。 +type: docs +weight: 33 +url: /zh/java/com.aspose.drawing.imaging/metafiletype/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class MetafileType extends System.Enum +``` + +指定元文件的类型。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [Invalid](#Invalid) | 指定 GDI+ 未识别的元文件格式。 | +| [Wmf](#Wmf) | 指定 WMF(Windows Metafile)文件。 | +| [WmfPlaceable](#WmfPlaceable) | 指定前面带有可放置元文件头的 WMF(Windows Metafile)文件。 | +| [Emf](#Emf) | 指定增强型元文件(EMF)文件。 | +| [EmfPlusOnly](#EmfPlusOnly) | 指定 EMF+ 文件。 | +| [EmfPlusDual](#EmfPlusDual) | 指定 EMF+ Dual 文件。 | +### Invalid {#Invalid} +``` +public static final int Invalid +``` + + +指定 GDI+ 未识别的元文件格式。 + +### Wmf {#Wmf} +``` +public static final int Wmf +``` + + +指定 WMF(Windows Metafile)文件。此类文件仅包含 GDI 记录。 + +### WmfPlaceable {#WmfPlaceable} +``` +public static final int WmfPlaceable +``` + + +指定前面带有可放置元文件头的 WMF(Windows Metafile)文件。 + +### Emf {#Emf} +``` +public static final int Emf +``` + + +指定增强型元文件(EMF)文件。此类文件仅包含 GDI 记录。 + +### EmfPlusOnly {#EmfPlusOnly} +``` +public static final int EmfPlusOnly +``` + + +指定 EMF+ 文件。此类文件仅包含 GDI+ 记录,必须使用 GDI+ 显示。使用 GDI 显示这些记录可能导致不可预期的结果。 + +### EmfPlusDual {#EmfPlusDual} +``` +public static final int EmfPlusDual +``` + + +指定 EMF+ Dual 文件。此类文件包含 GDI+ 记录以及替代的 GDI 记录,可使用 GDI 或 GDI+ 任意一种方式显示。使用 GDI 显示记录可能导致一定的质量下降。 + diff --git a/chinese/java/com.aspose.drawing.imaging/metaheader/_index.md b/chinese/java/com.aspose.drawing.imaging/metaheader/_index.md new file mode 100644 index 000000000..c5c8d669c --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/metaheader/_index.md @@ -0,0 +1,207 @@ +--- +title: MetaHeader +second_title: Aspose.Drawing for Java API 参考 +description: 包含有关 Windows 格式 WMF 元文件的信息。 +type: docs +weight: 29 +url: /zh/java/com.aspose.drawing.imaging/metaheader/ +--- +**Inheritance:** +java.lang.Object +``` +public final class MetaHeader +``` + +包含有关 Windows 格式 (WMF) 元文件的信息。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [MetaHeader()](#MetaHeader--) | 初始化一个新的 [MetaHeader](../../com.aspose.drawing.imaging/metaheader) 类实例 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getType()](#getType--) | 获取或设置关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 对象的类型。 | +| [setType(short value)](#setType-short-) | 获取或设置关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 对象的类型。 | +| [getHeaderSize()](#getHeaderSize--) | 获取或设置头文件的大小(以字节为单位)。 | +| [setHeaderSize(short value)](#setHeaderSize-short-) | 获取或设置头文件的大小(以字节为单位)。 | +| [getVersion()](#getVersion--) | 获取或设置头文件格式的版本号。 | +| [setVersion(short value)](#setVersion-short-) | 获取或设置头文件格式的版本号。 | +| [getSize()](#getSize--) | 获取或设置关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 对象的大小(以字节为单位)。 | +| [setSize(int value)](#setSize-int-) | 获取或设置关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 对象的大小(以字节为单位)。 | +| [getNoObjects()](#getNoObjects--) | 获取或设置在同一时间存在于 [Metafile](../../com.aspose.drawing.imaging/metafile) 对象中的最大对象数量。 | +| [setNoObjects(short value)](#setNoObjects-short-) | 获取或设置在同一时间存在于 [Metafile](../../com.aspose.drawing.imaging/metafile) 对象中的最大对象数量。 | +| [getMaxRecord()](#getMaxRecord--) | 获取或设置关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 对象中最大记录的大小(单位为字节)。 | +| [setMaxRecord(int value)](#setMaxRecord-int-) | 获取或设置关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 对象中最大记录的大小(单位为字节)。 | +| [getNoParameters()](#getNoParameters--) | 获取或设置 [Metafile](../../com.aspose.drawing.imaging/metafile) 对象中参数的最大数量。 | +| [setNoParameters(short value)](#setNoParameters-short-) | 获取或设置 [Metafile](../../com.aspose.drawing.imaging/metafile) 对象中参数的最大数量。 | +### MetaHeader() {#MetaHeader--} +``` +public MetaHeader() +``` + + +初始化一个新的 [MetaHeader](../../com.aspose.drawing.imaging/metaheader) 类实例 + +### getType() {#getType--} +``` +public short getType() +``` + + +获取或设置关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 对象的类型。 + +**Returns:** +short +### setType(short value) {#setType-short-} +``` +public void setType(short value) +``` + + +获取或设置关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 对象的类型。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | short | | + +### getHeaderSize() {#getHeaderSize--} +``` +public short getHeaderSize() +``` + + +获取或设置头文件的大小(以字节为单位)。 + +**Returns:** +short +### setHeaderSize(short value) {#setHeaderSize-short-} +``` +public void setHeaderSize(short value) +``` + + +获取或设置头文件的大小(以字节为单位)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | short | | + +### getVersion() {#getVersion--} +``` +public short getVersion() +``` + + +获取或设置头文件格式的版本号。 + +**Returns:** +short +### setVersion(short value) {#setVersion-short-} +``` +public void setVersion(short value) +``` + + +获取或设置头文件格式的版本号。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | short | | + +### getSize() {#getSize--} +``` +public int getSize() +``` + + +获取或设置关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 对象的大小(以字节为单位)。 + +**Returns:** +int +### setSize(int value) {#setSize-int-} +``` +public void setSize(int value) +``` + + +获取或设置关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 对象的大小(以字节为单位)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | | + +### getNoObjects() {#getNoObjects--} +``` +public short getNoObjects() +``` + + +获取或设置在同一时间存在于 [Metafile](../../com.aspose.drawing.imaging/metafile) 对象中的最大对象数量。 + +**Returns:** +short +### setNoObjects(short value) {#setNoObjects-short-} +``` +public void setNoObjects(short value) +``` + + +获取或设置在同一时间存在于 [Metafile](../../com.aspose.drawing.imaging/metafile) 对象中的最大对象数量。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | short | | + +### getMaxRecord() {#getMaxRecord--} +``` +public int getMaxRecord() +``` + + +获取或设置关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 对象中最大记录的大小(单位为字节)。 + +**Returns:** +int +### setMaxRecord(int value) {#setMaxRecord-int-} +``` +public void setMaxRecord(int value) +``` + + +获取或设置关联的 [Metafile](../../com.aspose.drawing.imaging/metafile) 对象中最大记录的大小(单位为字节)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | | + +### getNoParameters() {#getNoParameters--} +``` +public short getNoParameters() +``` + + +获取或设置 [Metafile](../../com.aspose.drawing.imaging/metafile) 对象中参数的最大数量。未使用。始终返回 0。 + +**Returns:** +short +### setNoParameters(short value) {#setNoParameters-short-} +``` +public void setNoParameters(short value) +``` + + +获取或设置 [Metafile](../../com.aspose.drawing.imaging/metafile) 对象中参数的最大数量。未使用。始终返回 0。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | short | | + diff --git a/chinese/java/com.aspose.drawing.imaging/pixelformat/_index.md b/chinese/java/com.aspose.drawing.imaging/pixelformat/_index.md new file mode 100644 index 000000000..c96f055bf --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/pixelformat/_index.md @@ -0,0 +1,226 @@ +--- +title: PixelFormat +second_title: Aspose.Drawing for Java API 参考 +description: 指定图像中每个像素的颜色数据格式。 +type: docs +weight: 34 +url: /zh/java/com.aspose.drawing.imaging/pixelformat/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class PixelFormat extends System.Enum +``` + +指定图像中每个像素的颜色数据格式。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [Indexed](#Indexed) | 像素数据包含颜色索引值,这意味着这些值是系统颜色表中颜色的索引,而不是单独的颜色值。 | +| [Gdi](#Gdi) | 像素数据包含 GDI 颜色。 | +| [Alpha](#Alpha) | 像素数据包含未预乘的 alpha 值。 | +| [PAlpha](#PAlpha) | 像素格式包含预乘的 alpha 值。 | +| [Extended](#Extended) | 保留值。 | +| [Canonical](#Canonical) | 默认的每像素 32 位像素格式。 | +| [Undefined](#Undefined) | 像素格式未定义。 | +| [DontCare](#DontCare) | 未指定像素格式。 | +| [Format1bppIndexed](#Format1bppIndexed) | 指定像素格式为每像素 1 位,并使用索引颜色。 | +| [Format4bppIndexed](#Format4bppIndexed) | 指定格式为每像素 4 位,使用索引颜色。 | +| [Format8bppIndexed](#Format8bppIndexed) | 指定格式为每像素 8 位,使用索引颜色。 | +| [Format16bppGrayScale](#Format16bppGrayScale) | 像素格式为每像素 16 位。 | +| [Format16bppRgb555](#Format16bppRgb555) | 指定格式为每像素 16 位;红、绿、蓝分量各使用 5 位。 | +| [Format16bppRgb565](#Format16bppRgb565) | 指定格式为每像素 16 位;红色分量使用 5 位,绿色分量使用 6 位,蓝色分量使用 5 位。 | +| [Format16bppArgb1555](#Format16bppArgb1555) | 像素格式为每像素 16 位。 | +| [Format24bppRgb](#Format24bppRgb) | 指定该格式为每像素 24 位;每个红色、绿色和蓝色分量各使用 8 位。 | +| [Format32bppRgb](#Format32bppRgb) | 指定该格式为每像素 32 位;每个红色、绿色和蓝色分量各使用 8 位。 | +| [Format32bppArgb](#Format32bppArgb) | 指定该格式为每像素 32 位;每个 alpha、红色、绿色和蓝色分量各使用 8 位。 | +| [Format32bppPArgb](#Format32bppPArgb) | 指定该格式为每像素 32 位;每个 alpha、红色、绿色和蓝色分量各使用 8 位。 | +| [Format48bppRgb](#Format48bppRgb) | 指定该格式为每像素 48 位;每个红色、绿色和蓝色分量各使用 16 位。 | +| [Format64bppArgb](#Format64bppArgb) | 指定该格式为每像素 64 位;每个 alpha、红色、绿色和蓝色分量各使用 16 位。 | +| [Format64bppPArgb](#Format64bppPArgb) | 指定该格式为每像素 64 位;每个 alpha、红色、绿色和蓝色分量各使用 16 位。 | +| [Max](#Max) | 此枚举的最大值。 | +### Indexed {#Indexed} +``` +public static final int Indexed +``` + + +像素数据包含颜色索引值,这意味着这些值是系统颜色表中颜色的索引,而不是单独的颜色值。 + +### Gdi {#Gdi} +``` +public static final int Gdi +``` + + +像素数据包含 GDI 颜色。 + +### Alpha {#Alpha} +``` +public static final int Alpha +``` + + +像素数据包含未预乘的 alpha 值。 + +### PAlpha {#PAlpha} +``` +public static final int PAlpha +``` + + +像素格式包含预乘的 alpha 值。 + +### Extended {#Extended} +``` +public static final int Extended +``` + + +保留值。 + +### Canonical {#Canonical} +``` +public static final int Canonical +``` + + +默认的每像素 32 位像素格式。该格式指定 24 位颜色深度和 8 位 alpha 通道。 + +### Undefined {#Undefined} +``` +public static final int Undefined +``` + + +像素格式未定义。 + +### DontCare {#DontCare} +``` +public static final int DontCare +``` + + +未指定像素格式。 + +### Format1bppIndexed {#Format1bppIndexed} +``` +public static final int Format1bppIndexed +``` + + +指定像素格式为每像素 1 位,并使用索引颜色。因此颜色表包含两种颜色。 + +### Format4bppIndexed {#Format4bppIndexed} +``` +public static final int Format4bppIndexed +``` + + +指定格式为每像素 4 位,使用索引颜色。 + +### Format8bppIndexed {#Format8bppIndexed} +``` +public static final int Format8bppIndexed +``` + + +指定该格式为每像素 8 位,使用索引颜色。因此颜色表包含 256 种颜色。 + +### Format16bppGrayScale {#Format16bppGrayScale} +``` +public static final int Format16bppGrayScale +``` + + +像素格式为每像素 16 位。颜色信息指定 65536 种灰度。 + +### Format16bppRgb555 {#Format16bppRgb555} +``` +public static final int Format16bppRgb555 +``` + + +指定该格式为每像素 16 位;每个红色、绿色和蓝色分量各使用 5 位。剩余的 1 位未使用。 + +### Format16bppRgb565 {#Format16bppRgb565} +``` +public static final int Format16bppRgb565 +``` + + +指定格式为每像素 16 位;红色分量使用 5 位,绿色分量使用 6 位,蓝色分量使用 5 位。 + +### Format16bppArgb1555 {#Format16bppArgb1555} +``` +public static final int Format16bppArgb1555 +``` + + +像素格式为每像素 16 位。颜色信息指定 32,768 种颜色,其中红色 5 位,绿色 5 位,蓝色 5 位,alpha 为 1 位。 + +### Format24bppRgb {#Format24bppRgb} +``` +public static final int Format24bppRgb +``` + + +指定该格式为每像素 24 位;每个红色、绿色和蓝色分量各使用 8 位。 + +### Format32bppRgb {#Format32bppRgb} +``` +public static final int Format32bppRgb +``` + + +指定该格式为每像素 32 位;每个红色、绿色和蓝色分量各使用 8 位。剩余的 8 位未使用。 + +### Format32bppArgb {#Format32bppArgb} +``` +public static final int Format32bppArgb +``` + + +指定该格式为每像素 32 位;每个 alpha、红色、绿色和蓝色分量各使用 8 位。 + +### Format32bppPArgb {#Format32bppPArgb} +``` +public static final int Format32bppPArgb +``` + + +指定该格式为每像素 32 位;每个 alpha、红色、绿色和蓝色分量各使用 8 位。红色、绿色和蓝色分量根据 alpha 分量进行预乘。 + +### Format48bppRgb {#Format48bppRgb} +``` +public static final int Format48bppRgb +``` + + +指定该格式为每像素 48 位;每个红色、绿色和蓝色分量各使用 16 位。 + +### Format64bppArgb {#Format64bppArgb} +``` +public static final int Format64bppArgb +``` + + +指定该格式为每像素 64 位;每个 alpha、红色、绿色和蓝色分量各使用 16 位。 + +### Format64bppPArgb {#Format64bppPArgb} +``` +public static final int Format64bppPArgb +``` + + +指定该格式为每像素 64 位;每个 alpha、红色、绿色和蓝色分量各使用 16 位。红色、绿色和蓝色分量根据 alpha 分量进行预乘。 + +### Max {#Max} +``` +public static final int Max +``` + + +此枚举的最大值。 + diff --git a/chinese/java/com.aspose.drawing.imaging/playrecordcallback/_index.md b/chinese/java/com.aspose.drawing.imaging/playrecordcallback/_index.md new file mode 100644 index 000000000..b212b2a86 --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/playrecordcallback/_index.md @@ -0,0 +1,82 @@ +--- +title: PlayRecordCallback +second_title: Aspose.Drawing for Java API 参考 +description: 此委托未使用。 +type: docs +weight: 35 +url: /zh/java/com.aspose.drawing.imaging/playrecordcallback/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.Delegate, com.aspose.ms.System.MulticastDelegate +``` +public abstract class PlayRecordCallback extends System.MulticastDelegate +``` + +此委托未使用。有关枚举元文件记录的示例,请参阅 [Graphics.enumerateMetafile(Metafile, Point, Graphics.EnumerateMetafileProc)](../../com.aspose.drawing/graphics\#enumerateMetafile-Metafile--Point--Graphics.EnumerateMetafileProc-)。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [PlayRecordCallback()](#PlayRecordCallback--) | | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [invoke(int recordType, int flags, int dataSize, byte[] recordData)](#invoke-int-int-int-byte---) | | +| [beginInvoke(int recordType, int flags, int dataSize, byte[] recordData, System.AsyncCallback callback, Object state)](#beginInvoke-int-int-int-byte---com.aspose.ms.System.AsyncCallback-java.lang.Object-) | | +| [endInvoke(System.IAsyncResult result)](#endInvoke-com.aspose.ms.System.IAsyncResult-) | | +### PlayRecordCallback() {#PlayRecordCallback--} +``` +public PlayRecordCallback() +``` + + +### invoke(int recordType, int flags, int dataSize, byte[] recordData) {#invoke-int-int-int-byte---} +``` +public abstract void invoke(int recordType, int flags, int dataSize, byte[] recordData) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| recordType | int | | +| flags | int | | +| dataSize | int | | +| recordData | byte[] | | + +### beginInvoke(int recordType, int flags, int dataSize, byte[] recordData, System.AsyncCallback callback, Object state) {#beginInvoke-int-int-int-byte---com.aspose.ms.System.AsyncCallback-java.lang.Object-} +``` +public final System.IAsyncResult beginInvoke(int recordType, int flags, int dataSize, byte[] recordData, System.AsyncCallback callback, Object state) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| recordType | int | | +| flags | int | | +| dataSize | int | | +| recordData | byte[] | | +| callback | com.aspose.ms.System.AsyncCallback | | +| state | java.lang.Object | | + +**Returns:** +com.aspose.ms.System.IAsyncResult +### endInvoke(System.IAsyncResult result) {#endInvoke-com.aspose.ms.System.IAsyncResult-} +``` +public final void endInvoke(System.IAsyncResult result) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| result | com.aspose.ms.System.IAsyncResult | | + diff --git a/chinese/java/com.aspose.drawing.imaging/propertyitem/_index.md b/chinese/java/com.aspose.drawing.imaging/propertyitem/_index.md new file mode 100644 index 000000000..b64fb1e96 --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/propertyitem/_index.md @@ -0,0 +1,119 @@ +--- +title: PropertyItem +second_title: Aspose.Drawing for Java API 参考 +description: 封装要包含在图像文件中的元数据属性。 +type: docs +weight: 36 +url: /zh/java/com.aspose.drawing.imaging/propertyitem/ +--- +**Inheritance:** +java.lang.Object +``` +public final class PropertyItem +``` + +封装要包含在图像文件中的元数据属性。不可继承。 +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getId()](#getId--) | 获取属性的 ID。 | +| [setId(int value)](#setId-int-) | 设置属性的 ID。 | +| [getLen()](#getLen--) | 获取 `Value`([.getValue](../../null/\#getValue)/[.setValue(byte[])](../../null/\#setValue-byte---)) 属性的长度(以字节为单位)。 | +| [setLen(int value)](#setLen-int-) | 设置 `Value`([.getValue](../../null/\#getValue)/[.setValue(byte[])](../../null/\#setValue-byte---)) 属性的长度(以字节为单位)。 | +| [getType()](#getType--) | 获取一个整数,定义 `Value`([.getValue](../../null/\#getValue)/[.setValue(byte[])](../../null/\#setValue-byte---)) 属性中包含的数据类型。 | +| [setType(short value)](#setType-short-) | 设置一个整数,定义 `Value`([.getValue](../../null/\#getValue)/[.setValue(byte[])](../../null/\#setValue-byte---)) 属性中包含的数据类型。 | +| [getValue()](#getValue--) | 获取属性项的值。 | +| [setValue(byte[] value)](#setValue-byte---) | 设置属性项的值。 | +### getId() {#getId--} +``` +public int getId() +``` + + +获取属性的 ID。 + +**Returns:** +int - 表示属性 ID 的整数。 +### setId(int value) {#setId-int-} +``` +public void setId(int value) +``` + + +设置属性的 ID。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | 属性的 ID。 | + +### getLen() {#getLen--} +``` +public int getLen() +``` + + +获取 `Value`([.getValue](../../null/\#getValue)/[.setValue(byte[])](../../null/\#setValue-byte---)) 属性的长度(以字节为单位)。 + +**Returns:** +int - 表示 `Value`([.getValue](../../null/\#getValue)/[.setValue(byte[])](../../null/\#setValue-byte---)) 字节数组长度(以字节为单位)的整数。 +### setLen(int value) {#setLen-int-} +``` +public void setLen(int value) +``` + + +设置 `Value`([.getValue](../../null/\#getValue)/[.setValue(byte[])](../../null/\#setValue-byte---)) 属性的长度(以字节为单位)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | `Value`([.getValue](../../null/\#getValue)/[.setValue(byte[])](../../null/\#setValue-byte---)) 属性的长度(以字节为单位)。 | + +### getType() {#getType--} +``` +public short getType() +``` + + +获取一个整数,定义 `Value`([.getValue](../../null/\#getValue)/[.setValue(byte[])](../../null/\#setValue-byte---)) 属性中包含的数据类型。 + +**Returns:** +short - 定义 `Value`([.getValue](../../null/\#getValue)/[.setValue(byte[])](../../null/\#setValue-byte---)) 中包含的数据类型的整数。 +### setType(short value) {#setType-short-} +``` +public void setType(short value) +``` + + +设置一个整数,定义 `Value`([.getValue](../../null/\#getValue)/[.setValue(byte[])](../../null/\#setValue-byte---)) 属性中包含的数据类型。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | short | 定义 `Value`([.getValue](../../null/\#getValue)/[.setValue(byte[])](../../null/\#setValue-byte---)) 属性中包含的数据类型的整数。 | + +### getValue() {#getValue--} +``` +public byte[] getValue() +``` + + +获取属性项的值。 + +**Returns:** +byte[] - 表示属性项值的字节数组。 +### setValue(byte[] value) {#setValue-byte---} +``` +public void setValue(byte[] value) +``` + + +设置属性项的值。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | byte[] | 属性项的值。 | + diff --git a/chinese/java/com.aspose.drawing.imaging/wmfplaceablefileheader/_index.md b/chinese/java/com.aspose.drawing.imaging/wmfplaceablefileheader/_index.md new file mode 100644 index 000000000..5dfac8981 --- /dev/null +++ b/chinese/java/com.aspose.drawing.imaging/wmfplaceablefileheader/_index.md @@ -0,0 +1,255 @@ +--- +title: WmfPlaceableFileHeader +second_title: Aspose.Drawing for Java API 参考 +description: 定义可放置的元文件。 +type: docs +weight: 37 +url: /zh/java/com.aspose.drawing.imaging/wmfplaceablefileheader/ +--- +**Inheritance:** +java.lang.Object +``` +public final class WmfPlaceableFileHeader +``` + +定义可放置的元文件。不可继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [WmfPlaceableFileHeader()](#WmfPlaceableFileHeader--) | | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getKey()](#getKey--) | 获取指示是否存在可放置元文件头的值。 | +| [setKey(int value)](#setKey-int-) | 设置指示是否存在可放置元文件头的值。 | +| [getHmf()](#getHmf--) | 获取内存中元文件的句柄。 | +| [setHmf(short value)](#setHmf-short-) | 设置内存中元文件的句柄。 | +| [getBboxLeft()](#getBboxLeft--) | 获取输出设备上元文件图像边界矩形左上角的 X 坐标。 | +| [setBboxLeft(short value)](#setBboxLeft-short-) | 设置输出设备上元文件图像边界矩形左上角的 X 坐标。 | +| [getBboxTop()](#getBboxTop--) | 获取输出设备上元文件图像边界矩形左上角的 Y 坐标。 | +| [setBboxTop(short value)](#setBboxTop-short-) | 设置输出设备上元文件图像边界矩形左上角的 Y 坐标。 | +| [getBboxRight()](#getBboxRight--) | 获取输出设备上元文件图像边界矩形右下角的 X 坐标。 | +| [setBboxRight(short value)](#setBboxRight-short-) | 设置输出设备上元文件图像边界矩形右下角的 X 坐标。 | +| [getBboxBottom()](#getBboxBottom--) | 获取输出设备上元文件图像边界矩形右下角的 Y 坐标。 | +| [setBboxBottom(short value)](#setBboxBottom-short-) | 设置输出设备上元文件图像边界矩形右下角的 Y 坐标。 | +| [getInch()](#getInch--) | 获取每英寸的 twip 数量。 | +| [setInch(short value)](#setInch-short-) | 设置每英寸的 twip 数量。 | +| [getReserved()](#getReserved--) | 保留。 | +| [setReserved(int value)](#setReserved-int-) | 保留。 | +| [getChecksum()](#getChecksum--) | 获取标题中前十个 WORD 的校验和值。 | +| [setChecksum(short value)](#setChecksum-short-) | 设置标题中前十个 WORD 的校验和值。 | +### WmfPlaceableFileHeader() {#WmfPlaceableFileHeader--} +``` +public WmfPlaceableFileHeader() +``` + + +### getKey() {#getKey--} +``` +public int getKey() +``` + + +获取指示是否存在可放置元文件头的值。 + +**Returns:** +int - 表示可放置元文件头存在的值。 +### setKey(int value) {#setKey-int-} +``` +public void setKey(int value) +``` + + +设置指示是否存在可放置元文件头的值。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | 表示可放置元文件头存在的值。 | + +### getHmf() {#getHmf--} +``` +public short getHmf() +``` + + +获取内存中元文件的句柄。 + +**Returns:** +short - 内存中元文件的句柄。 +### setHmf(short value) {#setHmf-short-} +``` +public void setHmf(short value) +``` + + +设置内存中元文件的句柄。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | short | 内存中元文件的句柄。 | + +### getBboxLeft() {#getBboxLeft--} +``` +public short getBboxLeft() +``` + + +获取输出设备上元文件图像边界矩形左上角的 X 坐标。 + +**Returns:** +short - 输出设备上元文件图像边界矩形左上角的 X 坐标。 +### setBboxLeft(short value) {#setBboxLeft-short-} +``` +public void setBboxLeft(short value) +``` + + +设置输出设备上元文件图像边界矩形左上角的 X 坐标。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | short | 输出设备上元文件图像边界矩形左上角的 X 坐标。 | + +### getBboxTop() {#getBboxTop--} +``` +public short getBboxTop() +``` + + +获取输出设备上元文件图像边界矩形左上角的 Y 坐标。 + +**Returns:** +short - 输出设备上元文件图像边界矩形左上角的 Y 坐标。 +### setBboxTop(short value) {#setBboxTop-short-} +``` +public void setBboxTop(short value) +``` + + +设置输出设备上元文件图像边界矩形左上角的 Y 坐标。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | short | 输出设备上元文件图像边界矩形左上角的 Y 坐标。 | + +### getBboxRight() {#getBboxRight--} +``` +public short getBboxRight() +``` + + +获取输出设备上元文件图像边界矩形右下角的 X 坐标。 + +**Returns:** +short - 输出设备上元文件图像边界矩形右下角的 X 坐标。 +### setBboxRight(short value) {#setBboxRight-short-} +``` +public void setBboxRight(short value) +``` + + +设置输出设备上元文件图像边界矩形右下角的 X 坐标。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | short | 输出设备上元文件图像边界矩形右下角的 X 坐标。 | + +### getBboxBottom() {#getBboxBottom--} +``` +public short getBboxBottom() +``` + + +获取输出设备上元文件图像边界矩形右下角的 Y 坐标。 + +**Returns:** +short - 输出设备上元文件图像的边界矩形右下角的 y 坐标。 +### setBboxBottom(short value) {#setBboxBottom-short-} +``` +public void setBboxBottom(short value) +``` + + +设置输出设备上元文件图像边界矩形右下角的 Y 坐标。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | short | 输出设备上元文件图像的边界矩形右下角的 y 坐标。 | + +### getInch() {#getInch--} +``` +public short getInch() +``` + + +获取每英寸的 twip 数量。 + +**Returns:** +short - 每英寸的 twip 数量。 +### setInch(short value) {#setInch-short-} +``` +public void setInch(short value) +``` + + +设置每英寸的 twip 数量。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | short | 每英寸的 twip 数量。 | + +### getReserved() {#getReserved--} +``` +public int getReserved() +``` + + +保留。请勿使用。 + +**Returns:** +int - 保留。请勿使用。 +### setReserved(int value) {#setReserved-int-} +``` +public void setReserved(int value) +``` + + +保留。请勿使用。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | | + +### getChecksum() {#getChecksum--} +``` +public short getChecksum() +``` + + +获取标题中前十个 WORD 的校验和值。 + +**Returns:** +short - 标头中前十个 WORD 的校验和值。 +### setChecksum(short value) {#setChecksum-short-} +``` +public void setChecksum(short value) +``` + + +设置标题中前十个 WORD 的校验和值。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | short | 标头中前十个 WORD 的校验和值。 | + diff --git a/chinese/java/com.aspose.drawing.printing/_index.md b/chinese/java/com.aspose.drawing.printing/_index.md new file mode 100644 index 000000000..c5ffbbece --- /dev/null +++ b/chinese/java/com.aspose.drawing.printing/_index.md @@ -0,0 +1,21 @@ +--- +title: com.aspose.drawing.printing +second_title: Aspose.Drawing for Java API 参考 +description: +type: docs +weight: 14 +url: /zh/java/com.aspose.drawing.printing/ +--- + +## 类 + +| 类 | 描述 | +| --- | --- | +| [PageSettings](../com.aspose.drawing.printing/pagesettings) | 指定适用于单个打印页的设置。 | +| [PrintDocument](../com.aspose.drawing.printing/printdocument) | 定义一个可重用对象,在 Windows Forms 应用程序中打印时将输出发送到打印机。 | +| [PrintEventArgs](../com.aspose.drawing.printing/printeventargs) | 提供 `E:PrintDocument.BeginPrint` 和 `E:PrintDocument.EndPrint` 事件的数据。 | +| [PrintPageEventArgs](../com.aspose.drawing.printing/printpageeventargs) | 提供 `E:PrintDocument.PrintPage` 事件的数据。 | +| [PrintRange](../com.aspose.drawing.printing/printrange) | 指定要打印的文档部分。 | +| [PrinterResolution](../com.aspose.drawing.printing/printerresolution) | 表示打印机支持的分辨率。 | +| [PrinterSettings](../com.aspose.drawing.printing/printersettings) | 指定有关文档打印方式的信息,包括打印它的打印机,以及从 Windows Forms 应用程序打印时的情况。 | +| [StandardPrintController](../com.aspose.drawing.printing/standardprintcontroller) | 指定将信息发送到打印机的打印控制器。 | diff --git a/chinese/java/com.aspose.drawing.printing/pagesettings/_index.md b/chinese/java/com.aspose.drawing.printing/pagesettings/_index.md new file mode 100644 index 000000000..727b02ff0 --- /dev/null +++ b/chinese/java/com.aspose.drawing.printing/pagesettings/_index.md @@ -0,0 +1,74 @@ +--- +title: 页面设置 +second_title: Aspose.Drawing for Java API 参考 +description: 指定适用于单个打印页面的设置。 +type: docs +weight: 10 +url: /zh/java/com.aspose.drawing.printing/pagesettings/ +--- +**Inheritance:** +java.lang.Object +``` +public class PageSettings +``` + +指定适用于单个打印页的设置。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [PageSettings()](#PageSettings--) | | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getBounds()](#getBounds--) | 获取页面大小,考虑由 [PageSettings](../../com.aspose.drawing.printing/pagesettings) 属性指定的页面方向。 | +| [getHardMarginX()](#getHardMarginX--) | 获取页面左侧硬边距的 x 坐标(单位为百分之一英寸)。 | +| [getHardMarginY()](#getHardMarginY--) | 获取页面顶部硬边距的 y 坐标(单位为百分之一英寸)。 | +| [getPrinterResolution()](#getPrinterResolution--) | 获取页面的打印机分辨率。 | +### PageSettings() {#PageSettings--} +``` +public PageSettings() +``` + + +### getBounds() {#getBounds--} +``` +public final Rectangle getBounds() +``` + + +获取页面大小,考虑由 [PageSettings](../../com.aspose.drawing.printing/pagesettings) 属性指定的页面方向。 + +**Returns:** +[Rectangle](../../com.aspose.drawing/rectangle) - A [Rectangle](../../com.aspose.drawing/rectangle) that represents the length and width, in hundredths of an inch, of the page. +### getHardMarginX() {#getHardMarginX--} +``` +public final float getHardMarginX() +``` + + +获取页面左侧硬边距的 x 坐标(单位为百分之一英寸)。 + +**Returns:** +float - 左侧硬边距的 x 坐标(单位为百分之一英寸)。 +### getHardMarginY() {#getHardMarginY--} +``` +public final float getHardMarginY() +``` + + +获取页面顶部硬边距的 y 坐标(单位为百分之一英寸)。 + +**Returns:** +float - 页面顶部硬边距的 y 坐标(单位为百分之一英寸)。 +### getPrinterResolution() {#getPrinterResolution--} +``` +public final PrinterResolution getPrinterResolution() +``` + + +获取页面的打印机分辨率。 + +**Returns:** +[PrinterResolution](../../com.aspose.drawing.printing/printerresolution) - A `PrinterResolution`([.getPrinterResolution](../../null/\#getPrinterResolution)) that specifies the printer resolution for the page. The default is the printer's default resolution. diff --git a/chinese/java/com.aspose.drawing.printing/printdocument/_index.md b/chinese/java/com.aspose.drawing.printing/printdocument/_index.md new file mode 100644 index 000000000..4923a8b14 --- /dev/null +++ b/chinese/java/com.aspose.drawing.printing/printdocument/_index.md @@ -0,0 +1,30 @@ +--- +title: PrintDocument +second_title: Aspose.Drawing for Java API 参考 +description: 定义一个可重用的对象,在 Windows Forms 应用程序中打印时将输出发送到打印机。 +type: docs +weight: 11 +url: /zh/java/com.aspose.drawing.printing/printdocument/ +--- +**Inheritance:** +java.lang.Object, java.awt.Component +``` +public class PrintDocument extends Component +``` + +定义一个可重用对象,在 Windows Forms 应用程序中打印时将输出发送到打印机。 + +-------------------- + +尚未实现。每次调用都会抛出 NotImplementedException。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [PrintDocument()](#PrintDocument--) | | +### PrintDocument() {#PrintDocument--} +``` +public PrintDocument() +``` + + diff --git a/chinese/java/com.aspose.drawing.printing/printerresolution/_index.md b/chinese/java/com.aspose.drawing.printing/printerresolution/_index.md new file mode 100644 index 000000000..5a20c8458 --- /dev/null +++ b/chinese/java/com.aspose.drawing.printing/printerresolution/_index.md @@ -0,0 +1,80 @@ +--- +title: PrinterResolution +second_title: Aspose.Drawing for Java API 参考 +description: 表示打印机支持的分辨率。 +type: docs +weight: 15 +url: /zh/java/com.aspose.drawing.printing/printerresolution/ +--- +**Inheritance:** +java.lang.Object +``` +public class PrinterResolution +``` + +表示打印机支持的分辨率。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [PrinterResolution()](#PrinterResolution--) | | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getX()](#getX--) | 获取水平打印机分辨率,单位为每英寸点数(dpi)。 | +| [setX(int value)](#setX-int-) | 设置水平打印机分辨率,单位为每英寸点数(dpi)。 | +| [getY()](#getY--) | 获取垂直打印机分辨率,单位为每英寸点数(dpi)。 | +| [setY(int value)](#setY-int-) | 设置垂直打印机分辨率,单位为每英寸点数(dpi)。 | +### PrinterResolution() {#PrinterResolution--} +``` +public PrinterResolution() +``` + + +### getX() {#getX--} +``` +public final int getX() +``` + + +获取水平打印机分辨率,单位为每英寸点数(dpi)。 + +**Returns:** +int - 水平打印机分辨率,单位为每英寸点数,如果 `Kind` 被设置为 `PrinterResolutionKind.Custom`;否则为 dmPrintQuality 值。 +### setX(int value) {#setX-int-} +``` +public final void setX(int value) +``` + + +设置水平打印机分辨率,单位为每英寸点数(dpi)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | 水平打印机分辨率,单位为每英寸点数。 | + +### getY() {#getY--} +``` +public final int getY() +``` + + +获取垂直打印机分辨率,单位为每英寸点数(dpi)。 + +**Returns:** +int - 垂直打印机分辨率,单位为每英寸点数。 +### setY(int value) {#setY-int-} +``` +public final void setY(int value) +``` + + +设置垂直打印机分辨率,单位为每英寸点数(dpi)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | 垂直打印机分辨率,单位为每英寸点数。 | + diff --git a/chinese/java/com.aspose.drawing.printing/printersettings/_index.md b/chinese/java/com.aspose.drawing.printing/printersettings/_index.md new file mode 100644 index 000000000..1e104c5dc --- /dev/null +++ b/chinese/java/com.aspose.drawing.printing/printersettings/_index.md @@ -0,0 +1,88 @@ +--- +title: PrinterSettings +second_title: Aspose.Drawing for Java API 参考 +description: 指定有关文档打印方式的信息,包括在 Windows Forms 应用程序中打印时使用的打印机。 +type: docs +weight: 16 +url: /zh/java/com.aspose.drawing.printing/printersettings/ +--- +**Inheritance:** +java.lang.Object +``` +public class PrinterSettings +``` + +指定有关文档打印方式的信息,包括打印它的打印机,以及从 Windows Forms 应用程序打印时的情况。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [PrinterSettings()](#PrinterSettings--) | | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getFromPage()](#getFromPage--) | 获取要打印的第一页的页码。 | +| [getPrintRange()](#getPrintRange--) | 获取用户指定要打印的页码。 | +| [getToPage()](#getToPage--) | 获取要打印的最后一页的页码。 | +| [getPrinterName()](#getPrinterName--) | 获取要使用的打印机名称。 | +| [setPrinterName(String value)](#setPrinterName-java.lang.String-) | 设置要使用的打印机名称。 | +### PrinterSettings() {#PrinterSettings--} +``` +public PrinterSettings() +``` + + +### getFromPage() {#getFromPage--} +``` +public static int getFromPage() +``` + + +获取要打印的第一页的页码。 + +**Returns:** +int - 要打印的第一页的页码。 +### getPrintRange() {#getPrintRange--} +``` +public static int getPrintRange() +``` + + +获取用户指定要打印的页码。 + +**Returns:** +int - `PrintRange`([.getPrintRange](../../null/\#getPrintRange)) 的一个取值。 +### getToPage() {#getToPage--} +``` +public static int getToPage() +``` + + +获取要打印的最后一页的页码。 + +**Returns:** +int - 要打印的最后一页的页码。 +### getPrinterName() {#getPrinterName--} +``` +public final String getPrinterName() +``` + + +获取要使用的打印机名称。 + +**Returns:** +java.lang.String - 要使用的打印机名称。 +### setPrinterName(String value) {#setPrinterName-java.lang.String-} +``` +public final void setPrinterName(String value) +``` + + +设置要使用的打印机名称。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | java.lang.String | 要使用的打印机名称。 | + diff --git a/chinese/java/com.aspose.drawing.printing/printeventargs/_index.md b/chinese/java/com.aspose.drawing.printing/printeventargs/_index.md new file mode 100644 index 000000000..266ed6661 --- /dev/null +++ b/chinese/java/com.aspose.drawing.printing/printeventargs/_index.md @@ -0,0 +1,30 @@ +--- +title: PrintEventArgs +second_title: Aspose.Drawing for Java API 参考 +description: 提供用于 EPrintDocument.BeginPrint 和 EPrintDocument.EndPrint 事件的数据。 +type: docs +weight: 12 +url: /zh/java/com.aspose.drawing.printing/printeventargs/ +--- +**Inheritance:** +java.lang.Object +``` +public class PrintEventArgs +``` + +提供 `E:PrintDocument.BeginPrint` 和 `E:PrintDocument.EndPrint` 事件的数据。 + +-------------------- + +尚未实现。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [PrintEventArgs()](#PrintEventArgs--) | | +### PrintEventArgs() {#PrintEventArgs--} +``` +public PrintEventArgs() +``` + + diff --git a/chinese/java/com.aspose.drawing.printing/printpageeventargs/_index.md b/chinese/java/com.aspose.drawing.printing/printpageeventargs/_index.md new file mode 100644 index 000000000..adc4455ae --- /dev/null +++ b/chinese/java/com.aspose.drawing.printing/printpageeventargs/_index.md @@ -0,0 +1,77 @@ +--- +title: PrintPageEventArgs +second_title: Aspose.Drawing for Java API 参考 +description: 提供 EPrintDocument.PrintPage 事件的数据。 +type: docs +weight: 13 +url: /zh/java/com.aspose.drawing.printing/printpageeventargs/ +--- +**Inheritance:** +java.lang.Object +``` +public class PrintPageEventArgs +``` + +提供 `E:PrintDocument.PrintPage` 事件的数据。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [PrintPageEventArgs()](#PrintPageEventArgs--) | | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getGraphics()](#getGraphics--) | 获取用于绘制页面的 `Graphics`([.getGraphics](../../null/\#getGraphics))。 | +| [hasMorePages()](#hasMorePages--) | 获取指示是否应打印附加页面的值。 | +| [setMorePages(boolean value)](#setMorePages-boolean-) | 设置指示是否应打印附加页面的值。 | +| [getPageSettings()](#getPageSettings--) | 获取当前页面的页面设置。 | +### PrintPageEventArgs() {#PrintPageEventArgs--} +``` +public PrintPageEventArgs() +``` + + +### getGraphics() {#getGraphics--} +``` +public final Graphics getGraphics() +``` + + +获取用于绘制页面的 `Graphics`([.getGraphics](../../null/\#getGraphics))。 + +**Returns:** +[Graphics](../../com.aspose.drawing/graphics) - The `Graphics`([.getGraphics](../../null/\#getGraphics)) used to paint the page. +### hasMorePages() {#hasMorePages--} +``` +public final boolean hasMorePages() +``` + + +获取指示是否应打印附加页面的值。 + +**Returns:** +布尔型 - 如果应打印附加页面则为 `true`;否则为 false。默认值为 `false`。 +### setMorePages(boolean value) {#setMorePages-boolean-} +``` +public final void setMorePages(boolean value) +``` + + +设置指示是否应打印附加页面的值。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | 布尔型 | 指示是否应打印附加页面的值。 | + +### getPageSettings() {#getPageSettings--} +``` +public final PageSettings getPageSettings() +``` + + +获取当前页面的页面设置。 + +**Returns:** +[PageSettings](../../com.aspose.drawing.printing/pagesettings) - The page settings for the current page. diff --git a/chinese/java/com.aspose.drawing.printing/printrange/_index.md b/chinese/java/com.aspose.drawing.printing/printrange/_index.md new file mode 100644 index 000000000..c19f382ec --- /dev/null +++ b/chinese/java/com.aspose.drawing.printing/printrange/_index.md @@ -0,0 +1,55 @@ +--- +title: PrintRange +second_title: Aspose.Drawing for Java API 参考 +description: 指定要打印的文档部分。 +type: docs +weight: 14 +url: /zh/java/com.aspose.drawing.printing/printrange/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class PrintRange extends System.Enum +``` + +指定要打印的文档部分。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [AllPages](#AllPages) | 所有页面均已打印。 | +| [Selection](#Selection) | 已打印所选页面。 | +| [SomePages](#SomePages) | 在 Drawing.Printing.PrinterSettings.FromPage 和 Drawing.Printing.PrinterSettings.ToPage 之间的页面将被打印。 | +| [CurrentPage](#CurrentPage) | 当前显示的页面已打印 | +### AllPages {#AllPages} +``` +public static final int AllPages +``` + + +所有页面均已打印。 + +### Selection {#Selection} +``` +public static final int Selection +``` + + +已打印所选页面。 + +### SomePages {#SomePages} +``` +public static final int SomePages +``` + + +在 Drawing.Printing.PrinterSettings.FromPage 和 Drawing.Printing.PrinterSettings.ToPage 之间的页面将被打印。 + +### CurrentPage {#CurrentPage} +``` +public static final int CurrentPage +``` + + +当前显示的页面已打印 + diff --git a/chinese/java/com.aspose.drawing.printing/standardprintcontroller/_index.md b/chinese/java/com.aspose.drawing.printing/standardprintcontroller/_index.md new file mode 100644 index 000000000..1bea902f2 --- /dev/null +++ b/chinese/java/com.aspose.drawing.printing/standardprintcontroller/_index.md @@ -0,0 +1,26 @@ +--- +title: StandardPrintController +second_title: Aspose.Drawing for Java API 参考 +description: 指定将信息发送到打印机的打印控制器。 +type: docs +weight: 17 +url: /zh/java/com.aspose.drawing.printing/standardprintcontroller/ +--- +**Inheritance:** +java.lang.Object +``` +public class StandardPrintController +``` + +指定将信息发送到打印机的打印控制器。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [StandardPrintController()](#StandardPrintController--) | | +### StandardPrintController() {#StandardPrintController--} +``` +public StandardPrintController() +``` + + diff --git a/chinese/java/com.aspose.drawing.text/_index.md b/chinese/java/com.aspose.drawing.text/_index.md new file mode 100644 index 000000000..c8aae729b --- /dev/null +++ b/chinese/java/com.aspose.drawing.text/_index.md @@ -0,0 +1,18 @@ +--- +title: com.aspose.drawing.text +second_title: Aspose.Drawing for Java API 参考 +description: +type: docs +weight: 15 +url: /zh/java/com.aspose.drawing.text/ +--- + +## 类 + +| 类 | 描述 | +| --- | --- | +| [GenericFontFamilies](../com.aspose.drawing.text/genericfontfamilies) | 指定一个通用的 [FontFamily](../com.aspose.drawing/fontfamily) 对象。 | +| [HotkeyPrefix](../com.aspose.drawing.text/hotkeyprefix) | 指定与文本相关的热键前缀的显示类型。 | +| [InstalledFontCollection](../com.aspose.drawing.text/installedfontcollection) | 表示系统中已安装的字体。 | +| [PrivateFontCollection](../com.aspose.drawing.text/privatefontcollection) | 提供一个由客户端应用程序提供的字体文件构建的字体系列集合。 | +| [TextRenderingHint](../com.aspose.drawing.text/textrenderinghint) | 指定文本渲染的质量。 | diff --git a/chinese/java/com.aspose.drawing.text/genericfontfamilies/_index.md b/chinese/java/com.aspose.drawing.text/genericfontfamilies/_index.md new file mode 100644 index 000000000..d3cc80207 --- /dev/null +++ b/chinese/java/com.aspose.drawing.text/genericfontfamilies/_index.md @@ -0,0 +1,46 @@ +--- +title: GenericFontFamilies +second_title: Aspose.Drawing for Java API 参考 +description: 指定一个通用对象。 +type: docs +weight: 10 +url: /zh/java/com.aspose.drawing.text/genericfontfamilies/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class GenericFontFamilies extends System.Enum +``` + +指定一个通用的 [FontFamily](../../com.aspose.drawing/fontfamily) 对象。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [Serif](#Serif) | 通用衬线 [FontFamily](../../com.aspose.drawing/fontfamily) 对象。 | +| [SansSerif](#SansSerif) | 通用无衬线 [FontFamily](../../com.aspose.drawing/fontfamily) 对象。 | +| [Monospace](#Monospace) | 通用等宽 [FontFamily](../../com.aspose.drawing/fontfamily) 对象。 | +### Serif {#Serif} +``` +public static final int Serif +``` + + +通用衬线 [FontFamily](../../com.aspose.drawing/fontfamily) 对象。 + +### SansSerif {#SansSerif} +``` +public static final int SansSerif +``` + + +通用无衬线 [FontFamily](../../com.aspose.drawing/fontfamily) 对象。 + +### Monospace {#Monospace} +``` +public static final int Monospace +``` + + +通用等宽 [FontFamily](../../com.aspose.drawing/fontfamily) 对象。 + diff --git a/chinese/java/com.aspose.drawing.text/hotkeyprefix/_index.md b/chinese/java/com.aspose.drawing.text/hotkeyprefix/_index.md new file mode 100644 index 000000000..6612a7c13 --- /dev/null +++ b/chinese/java/com.aspose.drawing.text/hotkeyprefix/_index.md @@ -0,0 +1,46 @@ +--- +title: HotkeyPrefix +second_title: Aspose.Drawing for Java API 参考 +description: 指定与文本相关的热键前缀的显示类型。 +type: docs +weight: 11 +url: /zh/java/com.aspose.drawing.text/hotkeyprefix/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class HotkeyPrefix extends System.Enum +``` + +指定与文本相关的热键前缀的显示类型。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [None](#None) | 没有热键前缀。 | +| [Show](#Show) | 显示热键前缀。 | +| [Hide](#Hide) | 不要显示热键前缀。 | +### None {#None} +``` +public static final int None +``` + + +没有热键前缀。 + +### Show {#Show} +``` +public static final int Show +``` + + +显示热键前缀。 + +### Hide {#Hide} +``` +public static final int Hide +``` + + +不要显示热键前缀。 + diff --git a/chinese/java/com.aspose.drawing.text/installedfontcollection/_index.md b/chinese/java/com.aspose.drawing.text/installedfontcollection/_index.md new file mode 100644 index 000000000..9570aee16 --- /dev/null +++ b/chinese/java/com.aspose.drawing.text/installedfontcollection/_index.md @@ -0,0 +1,60 @@ +--- +title: InstalledFontCollection +second_title: Aspose.Drawing for Java API 参考 +description: 表示系统中已安装的字体。 +type: docs +weight: 12 +url: /zh/java/com.aspose.drawing.text/installedfontcollection/ +--- +**Inheritance:** +java.lang.Object,[com.aspose.drawing.FontCollection](../../com.aspose.drawing/fontcollection) +``` +public final class InstalledFontCollection extends FontCollection +``` + +表示系统上已安装的字体。此类不可被继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [InstalledFontCollection()](#InstalledFontCollection--) | 从全局系统字体集合中移除字体族。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [addFamilies(FontFamily[] families)](#addFamilies-com.aspose.drawing.FontFamily---) | 向全局系统字体集合中添加字体族。 | +| [removeFamilies(FontFamily[] families)](#removeFamilies-com.aspose.drawing.FontFamily---) | 从全局系统字体集合中移除字体族。 | +### InstalledFontCollection() {#InstalledFontCollection--} +``` +public InstalledFontCollection() +``` + + +从全局系统字体集合中移除字体族。 + +### addFamilies(FontFamily[] families) {#addFamilies-com.aspose.drawing.FontFamily---} +``` +public void addFamilies(FontFamily[] families) +``` + + +向全局系统字体集合中添加字体族。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| families | [FontFamily\[\]](../../com.aspose.drawing/fontfamily) | 新的字体族。 | + +### removeFamilies(FontFamily[] families) {#removeFamilies-com.aspose.drawing.FontFamily---} +``` +public void removeFamilies(FontFamily[] families) +``` + + +从全局系统字体集合中移除字体族。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| families | [FontFamily\[\]](../../com.aspose.drawing/fontfamily) | 要移除的字体族。 | + diff --git a/chinese/java/com.aspose.drawing.text/privatefontcollection/_index.md b/chinese/java/com.aspose.drawing.text/privatefontcollection/_index.md new file mode 100644 index 000000000..07b14707a --- /dev/null +++ b/chinese/java/com.aspose.drawing.text/privatefontcollection/_index.md @@ -0,0 +1,61 @@ +--- +title: PrivateFontCollection +second_title: Aspose.Drawing for Java API 参考 +description: 提供一个由客户端应用程序提供的字体文件构建的字体系列集合。 +type: docs +weight: 13 +url: /zh/java/com.aspose.drawing.text/privatefontcollection/ +--- +**Inheritance:** +java.lang.Object,[com.aspose.drawing.FontCollection](../../com.aspose.drawing/fontcollection) +``` +public final class PrivateFontCollection extends FontCollection +``` + +提供一个由客户端应用程序提供的字体文件构建的字体系列集合。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [PrivateFontCollection()](#PrivateFontCollection--) | 初始化一个新的 [PrivateFontCollection](../../com.aspose.drawing.text/privatefontcollection) 类的实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [addFontFile(String filename)](#addFontFile-java.lang.String-) | 将指定文件中的字体添加到此 [PrivateFontCollection](../../com.aspose.drawing.text/privatefontcollection)。 | +| [addMemoryFont(byte[] memory, int length)](#addMemoryFont-byte---int-) | 将系统内存中的字体添加到此 [PrivateFontCollection](../../com.aspose.drawing.text/privatefontcollection)。 | +### PrivateFontCollection() {#PrivateFontCollection--} +``` +public PrivateFontCollection() +``` + + +初始化一个新的 [PrivateFontCollection](../../com.aspose.drawing.text/privatefontcollection) 类的实例。 + +### addFontFile(String filename) {#addFontFile-java.lang.String-} +``` +public void addFontFile(String filename) +``` + + +将指定文件中的字体添加到此 [PrivateFontCollection](../../com.aspose.drawing.text/privatefontcollection)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 文件名 | java.lang.String | 一个包含要添加的字体文件名的字符串。 | + +### addMemoryFont(byte[] memory, int length) {#addMemoryFont-byte---int-} +``` +public void addMemoryFont(byte[] memory, int length) +``` + + +将系统内存中的字体添加到此 [PrivateFontCollection](../../com.aspose.drawing.text/privatefontcollection)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 内存 | byte[] | 要添加的字体的内存地址。 | +| length | int | 要添加的字体的内存长度。 | + diff --git a/chinese/java/com.aspose.drawing.text/textrenderinghint/_index.md b/chinese/java/com.aspose.drawing.text/textrenderinghint/_index.md new file mode 100644 index 000000000..c124d8ed7 --- /dev/null +++ b/chinese/java/com.aspose.drawing.text/textrenderinghint/_index.md @@ -0,0 +1,73 @@ +--- +title: TextRenderingHint +second_title: Aspose.Drawing for Java API 参考 +description: 指定文本渲染的质量。 +type: docs +weight: 14 +url: /zh/java/com.aspose.drawing.text/textrenderinghint/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class TextRenderingHint extends System.Enum +``` + +指定文本渲染的质量。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [SystemDefault](#SystemDefault) | 每个字符使用其字形位图绘制,使用系统默认的渲染提示。 | +| [SingleBitPerPixelGridFit](#SingleBitPerPixelGridFit) | 每个字符使用其字形位图绘制。 | +| [SingleBitPerPixel](#SingleBitPerPixel) | 每个字符使用其字形位图绘制。 | +| [AntiAliasGridFit](#AntiAliasGridFit) | 每个字符使用带提示的抗锯齿字形位图绘制。 | +| [AntiAlias](#AntiAlias) | 每个字符使用无提示的抗锯齿字形位图绘制。 | +| [ClearTypeGridFit](#ClearTypeGridFit) | 每个字符使用带提示的 ClearType 字形位图绘制。 | +### SystemDefault {#SystemDefault} +``` +public static final int SystemDefault +``` + + +每个字符使用其字形位图绘制,使用系统默认的渲染提示。文本将按照用户为系统选择的任何字体平滑设置进行绘制。 + +### SingleBitPerPixelGridFit {#SingleBitPerPixelGridFit} +``` +public static final int SingleBitPerPixelGridFit +``` + + +每个字符使用其字形位图绘制。提示用于改善字符在笔画和曲线上的外观。 + +### SingleBitPerPixel {#SingleBitPerPixel} +``` +public static final int SingleBitPerPixel +``` + + +每个字符使用其字形位图绘制。不使用 Hinting。 + +### AntiAliasGridFit {#AntiAliasGridFit} +``` +public static final int AntiAliasGridFit +``` + + +每个字符使用其带有 Hinting 的抗锯齿字形位图绘制。由于抗锯齿,质量大幅提升,但性能开销更高。 + +### AntiAlias {#AntiAlias} +``` +public static final int AntiAlias +``` + + +每个字符使用其未使用 Hinting 的抗锯齿字形位图绘制。由于抗锯齿,质量更好。由于关闭 Hinting,可能会注意到笔画宽度差异。 + +### ClearTypeGridFit {#ClearTypeGridFit} +``` +public static final int ClearTypeGridFit +``` + + +每个字符使用其带有 Hinting 的 ClearType 字形位图绘制。最高质量设置。用于利用 ClearType 字体特性。 + diff --git a/chinese/java/com.aspose.drawing/_index.md b/chinese/java/com.aspose.drawing/_index.md new file mode 100644 index 000000000..fa3a4cd9b --- /dev/null +++ b/chinese/java/com.aspose.drawing/_index.md @@ -0,0 +1,64 @@ +--- +title: com.aspose.drawing +second_title: Aspose.Drawing for Java API 参考 +description: Aspose.Drawing 是一个图形 API,提供在 .NET 应用程序中与 GDI 相同的 2D 绘图功能。 +type: docs +weight: 10 +url: /zh/java/com.aspose.drawing/ +--- + +Aspose.Drawing 是一个图形 API,提供与 GDI+ 相同的 2D 绘图能力,可用于您的 .NET 应用程序。 + + +## 类 + +| 类 | 描述 | +| --- | --- | +| [Bitmap](../com.aspose.drawing/bitmap) | 封装位图,该位图由图形图像的像素数据及其属性组成。 | +| [Brush](../com.aspose.drawing/brush) | 定义用于填充矩形、椭圆、饼图、多边形和路径等图形形状内部的对象。 | +| [Brushes](../com.aspose.drawing/brushes) | 所有标准颜色的画刷。 | +| [CharacterRange](../com.aspose.drawing/characterrange) | 指定字符串中字符位置的范围。 | +| [Color](../com.aspose.drawing/color) | 表示 ARGB(alpha、red、green、blue)颜色。 | +| [ColorConverter](../com.aspose.drawing/colorconverter) | 将颜色从一种数据类型转换为另一种数据类型。 | +| [ColorTranslator](../com.aspose.drawing/colortranslator) | 在颜色与 GDI+ [Color](../com.aspose.drawing/color) 结构之间进行转换。 | +| [ContentAlignment](../com.aspose.drawing/contentalignment) | 指定内容在绘图表面的对齐方式。 | +| [CopyPixelOperation](../com.aspose.drawing/copypixeloperation) | 确定在复制像素操作中,源颜色如何与目标颜色合并以产生最终颜色。 | +| [DrawingSettings](../com.aspose.drawing/drawingsettings) | 允许在使用尚未完全实现的某些功能时调整绘图库的行为。 | +| [Features](../com.aspose.drawing/features) | Aspose.Drawing 库的功能。 | +| [Font](../com.aspose.drawing/font) | 定义文本的特定格式,包括字体、大小和样式属性。 | +| [FontCollection](../com.aspose.drawing/fontcollection) | 提供已安装和私有字体集合的基类。 | +| [FontDefinitionExt](../com.aspose.drawing/fontdefinitionext) | 类包含字体定义, | +| [FontFamily](../com.aspose.drawing/fontfamily) | 定义一组具有相似基本设计和某些样式变体的字体族。 | +| [FontFamilyDefinition](../com.aspose.drawing/fontfamilydefinition) | 字体族的定义。 | +| [FontStyle](../com.aspose.drawing/fontstyle) | 指定应用于文本的样式信息。 | +| [Graphics](../com.aspose.drawing/graphics) | 封装绘图表面。 | +| [Graphics.DrawImageAbort](../com.aspose.drawing/graphics.drawimageabort) | | +| [Graphics.EnumerateMetafileProc](../com.aspose.drawing/graphics.enumeratemetafileproc) | | +| [Graphics.EnumerateMetafileProcByte](../com.aspose.drawing/graphics.enumeratemetafileprocbyte) | | +| [GraphicsUnit](../com.aspose.drawing/graphicsunit) | 指定给定数据的计量单位。 | +| [Icon](../com.aspose.drawing/icon) | 表示 Windows 图标,它是一种用于表示对象的小位图图像。 | +| [Image](../com.aspose.drawing/image) | 一个抽象基类,为 Bitmap 和 Metafile 派生类提供功能。 | +| [Image.GetThumbnailImageAbort](../com.aspose.drawing/image.getthumbnailimageabort) | 提供一个回调方法,用于确定何时应提前取消执行 [.\#getThumbnailImage(int, int, GetThumbnailImageAbort, IntPtr)](../null/\#getThumbnailImage-int--int--GetThumbnailImageAbort--IntPtr-) 方法。 | +| [KnownColor](../com.aspose.drawing/knowncolor) | 指定已知的系统颜色。 | +| [License](../com.aspose.drawing/license) | 提供对组件授权的方法。 | +| [MeteredExt](../com.aspose.drawing/meteredext) | 提供设置计量密钥的方法。 | +| [Pen](../com.aspose.drawing/pen) | 定义用于绘制直线和曲线的对象。 | +| [Pens](../com.aspose.drawing/pens) | 用于所有标准颜色的画笔。 | +| [Point](../com.aspose.drawing/point) | 表示一对整数 x 和 y 坐标,定义二维平面中的一个点。 | +| [PointF](../com.aspose.drawing/pointf) | 表示一对浮点数 x 和 y 坐标,定义二维平面中的一个点。 | +| [Rectangle](../com.aspose.drawing/rectangle) | 存储一组四个整数,表示矩形的位置和大小。 | +| [RectangleF](../com.aspose.drawing/rectanglef) | 存储一组四个浮点数,表示矩形的位置和大小。 | +| [Region](../com.aspose.drawing/region) | 描述由矩形和路径组成的图形形状的内部。 | +| [RotateFlipType](../com.aspose.drawing/rotatefliptype) | 指定图像旋转的方向以及用于翻转图像的轴。 | +| [Size](../com.aspose.drawing/size) | 存储一对整数,通常表示矩形的宽度和高度。 | +| [SizeF](../com.aspose.drawing/sizef) | 存储一对浮点数,通常表示矩形的宽度和高度。 | +| [SolidBrush](../com.aspose.drawing/solidbrush) | 定义单色画刷。 | +| [StringAlignment](../com.aspose.drawing/stringalignment) | 指定文本字符串相对于其布局矩形的对齐方式。 | +| [StringDigitSubstitute](../com.aspose.drawing/stringdigitsubstitute) | 枚举 [StringDigitSubstitute](../com.aspose.drawing/stringdigitsubstitute) 指定如何根据用户的区域设置或语言替换字符串中的数字。 | +| [StringFormat](../com.aspose.drawing/stringformat) | 封装文本布局信息(例如对齐、方向和制表位)显示操作(例如省略号插入和本地数字替换)以及 OpenType 功能。 | +| [StringFormatFlags](../com.aspose.drawing/stringformatflags) | 指定文本字符串的显示和布局信息。 | +| [StringTrimming](../com.aspose.drawing/stringtrimming) | 指定如何修剪无法完全适应布局形状的字符串中的字符。 | +| [SystemColors](../com.aspose.drawing/systemcolors) | 每个 [SystemColors](../com.aspose.drawing/systemcolors) 类的属性都是一个 [Color](../com.aspose.drawing/color) 结构,表示 Windows 显示元素的颜色。 | +| [SystemFonts](../com.aspose.drawing/systemfonts) | 指定在 Windows 显示元素中用于显示文本的字体。 | +| [SystemIcons](../com.aspose.drawing/systemicons) | 每个 SystemIcons 类的属性都是一个用于 Windows 系统范围图标的 [Icon](../com.aspose.drawing/icon) 对象。 | +| [TextureBrush](../com.aspose.drawing/texturebrush) | 每个 TextureBrush 类的属性都是一个使用图像填充形状内部的 Brush 对象。 | diff --git a/chinese/java/com.aspose.drawing/bitmap/_index.md b/chinese/java/com.aspose.drawing/bitmap/_index.md new file mode 100644 index 000000000..51c23491d --- /dev/null +++ b/chinese/java/com.aspose.drawing/bitmap/_index.md @@ -0,0 +1,504 @@ +--- +title: 位图 +second_title: Aspose.Drawing for Java API 参考 +description: 封装一个位图,该位图由图形图像的像素数据及其属性组成。 +type: docs +weight: 10 +url: /zh/java/com.aspose.drawing/bitmap/ +--- +**Inheritance:** +java.lang.Object, [com.aspose.drawing.Image](../../com.aspose.drawing/image) +``` +public class Bitmap extends Image +``` + +封装一个位图,该位图由图形图像的像素数据及其属性组成。一个 [Bitmap](../../com.aspose.drawing/bitmap) 是用于处理由像素数据定义的图像的对象。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [Bitmap(int width, int height)](#Bitmap-int-int-) | 使用指定的大小初始化 [Bitmap](../../com.aspose.drawing/bitmap) 类的新实例。 | +| [Bitmap(String filename)](#Bitmap-java.lang.String-) | 从指定的文件初始化 [Bitmap](../../com.aspose.drawing/bitmap) 类的新实例。 | +| [Bitmap(String filename, boolean useIcm)](#Bitmap-java.lang.String-boolean-) | 从指定的文件初始化 [Bitmap](../../com.aspose.drawing/bitmap) 类的新实例。 | +| [Bitmap(InputStream stream)](#Bitmap-java.io.InputStream-) | 从指定的数据流初始化 [Bitmap](../../com.aspose.drawing/bitmap) 类的新实例。 | +| [Bitmap(InputStream stream, boolean useIcm)](#Bitmap-java.io.InputStream-boolean-) | 从指定的数据流初始化 [Bitmap](../../com.aspose.drawing/bitmap) 类的新实例。 | +| [Bitmap(int width, int height, int format)](#Bitmap-int-int-int-) | 使用指定的大小和格式初始化 [Bitmap](../../com.aspose.drawing/bitmap) 类的新实例。 | +| [Bitmap(int width, int height, int stride, int format, int[] data)](#Bitmap-int-int-int-int-int---) | 使用指定的大小和像素数据初始化 [Bitmap](../../com.aspose.drawing/bitmap) 类的新实例。 | +| [Bitmap(Image original)](#Bitmap-com.aspose.drawing.Image-) | 从指定的现有图像初始化 [Bitmap](../../com.aspose.drawing/bitmap) 类的新实例。 | +| [Bitmap(Image original, Size newSize)](#Bitmap-com.aspose.drawing.Image-com.aspose.drawing.Size-) | 从指定的现有图像初始化 [Bitmap](../../com.aspose.drawing/bitmap) 类的新实例,并按指定大小进行缩放。 | +| [Bitmap(Image original, int width, int height)](#Bitmap-com.aspose.drawing.Image-int-int-) | 从指定的现有图像初始化 [Bitmap](../../com.aspose.drawing/bitmap) 类的新实例,并按指定大小进行缩放。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getWidth()](#getWidth--) | 获取此位图的宽度(以像素为单位)。 | +| [getHeight()](#getHeight--) | 获取此位图的高度(以像素为单位)。 | +| [getRawFormat()](#getRawFormat--) | 获取此 [Image](../../com.aspose.drawing/image) 的文件格式。 | +| [getPixelFormat()](#getPixelFormat--) | 获取此 [Image](../../com.aspose.drawing/image) 的像素格式。 | +| [getPalette()](#getPalette--) | 获取或设置此 [Image](../../com.aspose.drawing/image) 使用的颜色调色板。 | +| [setPalette(ColorPalette value)](#setPalette-com.aspose.drawing.imaging.ColorPalette-) | 获取或设置此 [Image](../../com.aspose.drawing/image) 使用的颜色调色板。 | +| [getFrameDimensionsList()](#getFrameDimensionsList--) | 获取表示此 [Image](../../com.aspose.drawing/image) 中帧维度的 GUID 数组。 | +| [getPropertyIdList()](#getPropertyIdList--) | 获取存储在此 [Image](../../com.aspose.drawing/image) 中的属性项的 ID。 | +| [getPropertyItems()](#getPropertyItems--) | 获取存储在此 [Image](../../com.aspose.drawing/image) 中的所有属性项(元数据片段)。 | +| [deepClone(Rectangle rect, int format)](#deepClone-com.aspose.drawing.Rectangle-int-) | 创建此 [Bitmap](../../com.aspose.drawing/bitmap) 的一个副本,该副本由 [Rectangle](../../com.aspose.drawing/rectangle) 结构定义,并使用指定的 `PixelFormat`([Image.getPixelFormat](../../com.aspose.drawing/image\#getPixelFormat)) 枚举。 | +| [deepClone(RectangleF rect, int format)](#deepClone-com.aspose.drawing.RectangleF-int-) | 创建此 [Bitmap](../../com.aspose.drawing/bitmap) 的一个副本,该副本使用指定的 [PixelFormat](../../com.aspose.drawing.imaging/pixelformat) 枚举定义。 | +| [setResolution(float xDpi, float yDpi)](#setResolution-float-float-) | 设置此 [Bitmap](../../com.aspose.drawing/bitmap) 的分辨率。 | +| [lockBits(Rectangle rect, int flags, int format)](#lockBits-com.aspose.drawing.Rectangle-int-int-) | 将 [Bitmap](../../com.aspose.drawing/bitmap) 锁定到系统内存中。 | +| [unlockBits(BitmapData bitmapData)](#unlockBits-com.aspose.drawing.imaging.BitmapData-) | 从系统内存中解锁此 [Bitmap](../../com.aspose.drawing/bitmap)。 | +| [getPixel(int x, int y)](#getPixel-int-int-) | 获取此 [Bitmap](../../com.aspose.drawing/bitmap) 中指定像素的颜色。 | +| [setPixel(int x, int y, Color color)](#setPixel-int-int-com.aspose.drawing.Color-) | 设置此 [Bitmap](../../com.aspose.drawing/bitmap) 中指定像素的颜色。 | +| [readArgb32Pixels(int[] pixels)](#readArgb32Pixels-int---) | 以 ARGB32 格式读取位图像素到给定数组中。 | +| [writeArgb32Pixels(int[] pixels)](#writeArgb32Pixels-int---) | 将像素写入位图。 | +| [makeTransparent()](#makeTransparent--) | 使此 [Bitmap](../../com.aspose.drawing/bitmap) 中的指定颜色透明。 | +| [makeTransparent(Color transparentColor)](#makeTransparent-com.aspose.drawing.Color-) | 使此 [Bitmap](../../com.aspose.drawing/bitmap) 中的指定颜色透明。 | +| [rotateFlip(int rotateFlipType)](#rotateFlip-int-) | 此方法可旋转、翻转或同时旋转并翻转 [Image](../../com.aspose.drawing/image)。 | +| [getPropertyItem(int propid)](#getPropertyItem-int-) | 获取此 [Image](../../com.aspose.drawing/image) 中的指定属性项。 | +| [removePropertyItem(int propid)](#removePropertyItem-int-) | 从此 [Image](../../com.aspose.drawing/image) 中移除指定的属性项。 | +| [setPropertyItem(PropertyItem propitem)](#setPropertyItem-com.aspose.drawing.imaging.PropertyItem-) | 在此 [Image](../../com.aspose.drawing/image) 中存储属性项(元数据片段)。 | +### Bitmap(int width, int height) {#Bitmap-int-int-} +``` +public Bitmap(int width, int height) +``` + + +使用指定的大小初始化 [Bitmap](../../com.aspose.drawing/bitmap) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 宽度 | int | 新 Bitmap 的宽度(以像素为单位)。 | +| | 高度 | int | 新 Bitmap 的高度(以像素为单位)。 | + +-------------------- + +目前唯一支持的内部位图格式等同于 `PixelFormat.Format32bppPArgb`。 | + +### Bitmap(String filename) {#Bitmap-java.lang.String-} +``` +public Bitmap(String filename) +``` + + +从指定的文件初始化 [Bitmap](../../com.aspose.drawing/bitmap) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 文件名 | java.lang.String | 位图文件的名称。 | + +### Bitmap(String filename, boolean useIcm) {#Bitmap-java.lang.String-boolean-} +``` +public Bitmap(String filename, boolean useIcm) +``` + + +从指定的文件初始化 [Bitmap](../../com.aspose.drawing/bitmap) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 文件名 | java.lang.String | 位图文件的名称。 | +| useIcm | boolean | true 表示对该 [Bitmap](../../com.aspose.drawing/bitmap) 使用颜色校正;否则为 false。 | + +### Bitmap(InputStream stream) {#Bitmap-java.io.InputStream-} +``` +public Bitmap(InputStream stream) +``` + + +从指定的数据流初始化 [Bitmap](../../com.aspose.drawing/bitmap) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 流 | java.io.InputStream | 用于加载图像的数据流。 | + +### Bitmap(InputStream stream, boolean useIcm) {#Bitmap-java.io.InputStream-boolean-} +``` +public Bitmap(InputStream stream, boolean useIcm) +``` + + +从指定的数据流初始化 [Bitmap](../../com.aspose.drawing/bitmap) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 流 | java.io.InputStream | 用于加载图像的数据流。 | +| useIcm | boolean | `true` 表示对该 [Bitmap](../../com.aspose.drawing/bitmap) 使用颜色校正;否则为 `false`。 | + +### Bitmap(int width, int height, int format) {#Bitmap-int-int-int-} +``` +public Bitmap(int width, int height, int format) +``` + + +使用指定的大小和格式初始化 [Bitmap](../../com.aspose.drawing/bitmap) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| width | int | 新 [Bitmap](../../com.aspose.drawing/bitmap) 的宽度(以像素为单位)。 | +| height | int | 新 [Bitmap](../../com.aspose.drawing/bitmap) 的高度(以像素为单位)。 | +| format | int | 新 [Bitmap](../../com.aspose.drawing/bitmap) 的 `PixelFormat`([Image.getPixelFormat](../../com.aspose.drawing/image\#getPixelFormat))枚举。 | + +### Bitmap(int width, int height, int stride, int format, int[] data) {#Bitmap-int-int-int-int-int---} +``` +public Bitmap(int width, int height, int stride, int format, int[] data) +``` + + +使用指定的大小和像素数据初始化 [Bitmap](../../com.aspose.drawing/bitmap) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| width | int | 新 [Bitmap](../../com.aspose.drawing/bitmap) 的宽度(以像素为单位)。 | +| height | int | 新 [Bitmap](../../com.aspose.drawing/bitmap) 的高度(以像素为单位)。 | +| 步幅 | int | 每条扫描线起始之间的字节偏移量,必须是四的倍数。 | +| format | int | 新 [Bitmap](../../com.aspose.drawing/bitmap) 的 `PixelFormat`([Image.getPixelFormat](../../com.aspose.drawing/image\#getPixelFormat))枚举。 | +| 数据 | int[] | 像素数据。 | + +### Bitmap(Image original) {#Bitmap-com.aspose.drawing.Image-} +``` +public Bitmap(Image original) +``` + + +从指定的现有图像初始化 [Bitmap](../../com.aspose.drawing/bitmap) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| original | [Image](../../com.aspose.drawing/image) | 用于创建新 [Bitmap](../../com.aspose.drawing/bitmap) 的 [Image](../../com.aspose.drawing/image)。 | + +### Bitmap(Image original, Size newSize) {#Bitmap-com.aspose.drawing.Image-com.aspose.drawing.Size-} +``` +public Bitmap(Image original, Size newSize) +``` + + +从指定的现有图像初始化 [Bitmap](../../com.aspose.drawing/bitmap) 类的新实例,并按指定大小进行缩放。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| original | [Image](../../com.aspose.drawing/image) | 用于创建新 [Bitmap](../../com.aspose.drawing/bitmap) 的 [Image](../../com.aspose.drawing/image) | +| newSize | [Size](../../com.aspose.drawing/size) | 表示新 [Bitmap](../../com.aspose.drawing/bitmap) 大小的 `Size`([Image.getSize](../../com.aspose.drawing/image\#getSize)) 结构。 | + +### Bitmap(Image original, int width, int height) {#Bitmap-com.aspose.drawing.Image-int-int-} +``` +public Bitmap(Image original, int width, int height) +``` + + +从指定的现有图像初始化 [Bitmap](../../com.aspose.drawing/bitmap) 类的新实例,并按指定大小进行缩放。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| original | [Image](../../com.aspose.drawing/image) | 用于创建新 [Bitmap](../../com.aspose.drawing/bitmap) 的 [Image](../../com.aspose.drawing/image)。 | +| width | int | 新 [Bitmap](../../com.aspose.drawing/bitmap) 的宽度(以像素为单位)。 | +| height | int | 新 [Bitmap](../../com.aspose.drawing/bitmap) 的高度(以像素为单位)。 | + +### getWidth() {#getWidth--} +``` +public int getWidth() +``` + + +获取此位图的宽度(以像素为单位)。 + +**Returns:** +int +### getHeight() {#getHeight--} +``` +public int getHeight() +``` + + +获取此位图的高度(以像素为单位)。 + +**Returns:** +int +### getRawFormat() {#getRawFormat--} +``` +public ImageFormat getRawFormat() +``` + + +获取此 [Image](../../com.aspose.drawing/image) 的文件格式。 + +**Returns:** +[ImageFormat](../../com.aspose.drawing.imaging/imageformat) - The [ImageFormat](../../com.aspose.drawing.imaging/imageformat) that represents the file format of this [Image](../../com.aspose.drawing/image). +### getPixelFormat() {#getPixelFormat--} +``` +public int getPixelFormat() +``` + + +获取此 [Image](../../com.aspose.drawing/image) 的像素格式。 + +**Returns:** +int - 表示此 [Image](../../com.aspose.drawing/image) 像素格式的 `PixelFormat`([Image.getPixelFormat](../../com.aspose.drawing/image\#getPixelFormat))。 +### getPalette() {#getPalette--} +``` +public ColorPalette getPalette() +``` + + +获取或设置此 [Image](../../com.aspose.drawing/image) 使用的颜色调色板。 + +**Returns:** +[ColorPalette](../../com.aspose.drawing.imaging/colorpalette) - A [ColorPalette](../../com.aspose.drawing.imaging/colorpalette) that represents the color palette used for this [Image](../../com.aspose.drawing/image). +### setPalette(ColorPalette value) {#setPalette-com.aspose.drawing.imaging.ColorPalette-} +``` +public void setPalette(ColorPalette value) +``` + + +获取或设置此 [Image](../../com.aspose.drawing/image) 使用的颜色调色板。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [ColorPalette](../../com.aspose.drawing.imaging/colorpalette) | | + +### getFrameDimensionsList() {#getFrameDimensionsList--} +``` +public UUID[] getFrameDimensionsList() +``` + + +获取表示此 [Image](../../com.aspose.drawing/image) 中帧维度的 GUID 数组。 + +**Returns:** +java.util.UUID[] - 一个从最高位到最低位指定此 [Image](../../com.aspose.drawing/image) 中帧尺寸的 GUID 数组。 +### getPropertyIdList() {#getPropertyIdList--} +``` +public int[] getPropertyIdList() +``` + + +获取存储在此 [Image](../../com.aspose.drawing/image) 中的属性项的 ID。 + +**Returns:** +int[] - 一个属性 ID 数组,每个属性项在此图像中存储一个对应的 ID。 +### getPropertyItems() {#getPropertyItems--} +``` +public PropertyItem[] getPropertyItems() +``` + + +获取存储在此 [Image](../../com.aspose.drawing/image) 中的所有属性项(元数据片段)。 + +**Returns:** +com.aspose.drawing.imaging.PropertyItem[] - 一个 [PropertyItem](../../com.aspose.drawing.imaging/propertyitem) 对象数组,每个属性项在图像中存储一个对象。 +### deepClone(Rectangle rect, int format) {#deepClone-com.aspose.drawing.Rectangle-int-} +``` +public final Bitmap deepClone(Rectangle rect, int format) +``` + + +创建此 [Bitmap](../../com.aspose.drawing/bitmap) 的一个副本,该副本由 [Rectangle](../../com.aspose.drawing/rectangle) 结构定义,并使用指定的 `PixelFormat`([Image.getPixelFormat](../../com.aspose.drawing/image\#getPixelFormat)) 枚举。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [Rectangle](../../com.aspose.drawing/rectangle) | 定义要从此 [Bitmap](../../com.aspose.drawing/bitmap) 复制的区域。坐标相对于此 [Bitmap](../../com.aspose.drawing/bitmap)。 | +| format | int | 指定目标 [Bitmap](../../com.aspose.drawing/bitmap) 的 `PixelFormat`([Image.getPixelFormat](../../com.aspose.drawing/image\#getPixelFormat)) 枚举。 | + +**Returns:** +[Bitmap](../../com.aspose.drawing/bitmap) - The new [Bitmap](../../com.aspose.drawing/bitmap) that this method creates. +### deepClone(RectangleF rect, int format) {#deepClone-com.aspose.drawing.RectangleF-int-} +``` +public final Bitmap deepClone(RectangleF rect, int format) +``` + + +创建此 [Bitmap](../../com.aspose.drawing/bitmap) 的一个副本,该副本使用指定的 [PixelFormat](../../com.aspose.drawing.imaging/pixelformat) 枚举定义。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [RectangleF](../../com.aspose.drawing/rectanglef) | 定义此 [Bitmap](../../com.aspose.drawing/bitmap) 要复制的区域。 | +| format | int | 指定目标 [Bitmap](../../com.aspose.drawing/bitmap) 的 [PixelFormat](../../com.aspose.drawing.imaging/pixelformat) 枚举。 | + +**Returns:** +[Bitmap](../../com.aspose.drawing/bitmap) - The [Bitmap](../../com.aspose.drawing/bitmap) that this method creates. +### setResolution(float xDpi, float yDpi) {#setResolution-float-float-} +``` +public final void setResolution(float xDpi, float yDpi) +``` + + +设置此 [Bitmap](../../com.aspose.drawing/bitmap) 的分辨率。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| xDpi | float | [Bitmap](../../com.aspose.drawing/bitmap) 的水平分辨率(每英寸点数)。 | +| yDpi | float | [Bitmap](../../com.aspose.drawing/bitmap) 的垂直分辨率(每英寸点数)。 | + +### lockBits(Rectangle rect, int flags, int format) {#lockBits-com.aspose.drawing.Rectangle-int-int-} +``` +public final BitmapData lockBits(Rectangle rect, int flags, int format) +``` + + +将 [Bitmap](../../com.aspose.drawing/bitmap) 锁定到系统内存中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [Rectangle](../../com.aspose.drawing/rectangle) | 指定要锁定的 [Bitmap](../../com.aspose.drawing/bitmap) 区域的 [Rectangle](../../com.aspose.drawing/rectangle) 结构。 | +| flags | int | 指定 [Bitmap](../../com.aspose.drawing/bitmap) 访问级别(读取/写入)的 [ImageLockMode](../../com.aspose.drawing.imaging/imagelockmode) 枚举。 | +| format | int | 指定此 [Bitmap](../../com.aspose.drawing/bitmap) 数据格式的 `PixelFormat`([Image.getPixelFormat](../../com.aspose.drawing/image\#getPixelFormat)) 枚举。 | + +**Returns:** +[BitmapData](../../com.aspose.drawing.imaging/bitmapdata) - A [BitmapData](../../com.aspose.drawing.imaging/bitmapdata) containing information about this lock operation. +### unlockBits(BitmapData bitmapData) {#unlockBits-com.aspose.drawing.imaging.BitmapData-} +``` +public final void unlockBits(BitmapData bitmapData) +``` + + +从系统内存中解锁此 [Bitmap](../../com.aspose.drawing/bitmap)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| bitmapData | [BitmapData](../../com.aspose.drawing.imaging/bitmapdata) | 指定锁定操作信息的 [BitmapData](../../com.aspose.drawing.imaging/bitmapdata)。 | + +### getPixel(int x, int y) {#getPixel-int-int-} +``` +public final Color getPixel(int x, int y) +``` + + +获取此 [Bitmap](../../com.aspose.drawing/bitmap) 中指定像素的颜色。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| x | int | 要检索的像素的 x 坐标。 | +| y | int | 要检索的像素的 y 坐标。 | + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) structure that represents the color of the specified pixel. +### setPixel(int x, int y, Color color) {#setPixel-int-int-com.aspose.drawing.Color-} +``` +public final void setPixel(int x, int y, Color color) +``` + + +设置此 [Bitmap](../../com.aspose.drawing/bitmap) 中指定像素的颜色。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| x | int | 要设置的像素的 x 坐标。 | +| y | int | 要设置的像素的 y 坐标。 | +| color | [Color](../../com.aspose.drawing/color) | 表示要分配给指定像素的颜色的 [Color](../../com.aspose.drawing/color) 结构。 | + +### readArgb32Pixels(int[] pixels) {#readArgb32Pixels-int---} +``` +public final void readArgb32Pixels(int[] pixels) +``` + + +以 ARGB32 格式读取位图像素到给定数组中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 像素 | int[] | 用于放置位图像素的数组。必须具有足够的容量。 | + +### writeArgb32Pixels(int[] pixels) {#writeArgb32Pixels-int---} +``` +public final void writeArgb32Pixels(int[] pixels) +``` + + +将像素写入位图。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 像素 | int[] | 包含 ARGB32 格式源像素的数组。必须具有足够的长度。 | + +### makeTransparent() {#makeTransparent--} +``` +public final void makeTransparent() +``` + + +使此 [Bitmap](../../com.aspose.drawing/bitmap) 中的指定颜色透明。 + +### makeTransparent(Color transparentColor) {#makeTransparent-com.aspose.drawing.Color-} +``` +public final void makeTransparent(Color transparentColor) +``` + + +使此 [Bitmap](../../com.aspose.drawing/bitmap) 中的指定颜色透明。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| transparentColor | [Color](../../com.aspose.drawing/color) | 表示要设为透明的颜色的 [Color](../../com.aspose.drawing/color) 结构。 | + +### rotateFlip(int rotateFlipType) {#rotateFlip-int-} +``` +public void rotateFlip(int rotateFlipType) +``` + + +此方法可旋转、翻转或同时旋转并翻转 [Image](../../com.aspose.drawing/image)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rotateFlipType | int | 一个指定对图像应用的旋转和翻转类型的 [RotateFlipType](../../com.aspose.drawing/rotatefliptype) 成员。 | + +### getPropertyItem(int propid) {#getPropertyItem-int-} +``` +public PropertyItem getPropertyItem(int propid) +``` + + +获取此 [Image](../../com.aspose.drawing/image) 中的指定属性项。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| propid | int | 要获取的属性项的 ID。 | + +**Returns:** +[PropertyItem](../../com.aspose.drawing.imaging/propertyitem) - The [PropertyItem](../../com.aspose.drawing.imaging/propertyitem) this method gets. +### removePropertyItem(int propid) {#removePropertyItem-int-} +``` +public void removePropertyItem(int propid) +``` + + +从此 [Image](../../com.aspose.drawing/image) 中移除指定的属性项。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| propid | int | 要移除的属性项的 ID。 | + +### setPropertyItem(PropertyItem propitem) {#setPropertyItem-com.aspose.drawing.imaging.PropertyItem-} +``` +public void setPropertyItem(PropertyItem propitem) +``` + + +在此 [Image](../../com.aspose.drawing/image) 中存储属性项(元数据片段)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| propitem | [PropertyItem](../../com.aspose.drawing.imaging/propertyitem) | 要存储的 [PropertyItem](../../com.aspose.drawing.imaging/propertyitem)。 | + diff --git a/chinese/java/com.aspose.drawing/brush/_index.md b/chinese/java/com.aspose.drawing/brush/_index.md new file mode 100644 index 000000000..c5a65e6dc --- /dev/null +++ b/chinese/java/com.aspose.drawing/brush/_index.md @@ -0,0 +1,53 @@ +--- +title: 画刷 +second_title: Aspose.Drawing for Java API 参考 +description: 定义用于填充矩形、椭圆、饼形、多边形和路径等图形形状内部的对象。 +type: docs +weight: 11 +url: /zh/java/com.aspose.drawing/brush/ +--- +**Inheritance:** +java.lang.Object + +**All Implemented Interfaces:** +com.aspose.ms.System.IDisposable +``` +public abstract class Brush implements System.IDisposable +``` + +定义用于填充矩形、椭圆、饼图、多边形和路径等图形形状内部的对象。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [Brush()](#Brush--) | | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [deepClone()](#deepClone--) | 在派生类中重写时,创建此 [Brush](../../com.aspose.drawing/brush) 的精确副本。 | +| [dispose()](#dispose--) | 释放此 Brush 对象使用的所有资源。 | +### Brush() {#Brush--} +``` +public Brush() +``` + + +### deepClone() {#deepClone--} +``` +public abstract Object deepClone() +``` + + +在派生类中重写时,创建此 [Brush](../../com.aspose.drawing/brush) 的精确副本。 + +**Returns:** +java.lang.Object - 此方法创建的新 [Brush](../../com.aspose.drawing/brush)。 +### dispose() {#dispose--} +``` +public final void dispose() +``` + + +释放此 Brush 对象使用的所有资源。 + diff --git a/chinese/java/com.aspose.drawing/brushes/_index.md b/chinese/java/com.aspose.drawing/brushes/_index.md new file mode 100644 index 000000000..5fecb3b85 --- /dev/null +++ b/chinese/java/com.aspose.drawing/brushes/_index.md @@ -0,0 +1,1570 @@ +--- +title: 画刷集合 +second_title: Aspose.Drawing for Java API 参考 +description: 所有标准颜色的画刷。 +type: docs +weight: 12 +url: /zh/java/com.aspose.drawing/brushes/ +--- +**Inheritance:** +java.lang.Object +``` +public final class Brushes +``` + +所有标准颜色的画刷。此类不可被继承。 +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getTransparent()](#getTransparent--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getAliceBlue()](#getAliceBlue--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getAntiqueWhite()](#getAntiqueWhite--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getAqua()](#getAqua--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getAquamarine()](#getAquamarine--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getAzure()](#getAzure--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getBeige()](#getBeige--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getBisque()](#getBisque--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getBlack()](#getBlack--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getBlanchedAlmond()](#getBlanchedAlmond--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getBlue()](#getBlue--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getBlueViolet()](#getBlueViolet--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getBrown()](#getBrown--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getBurlyWood()](#getBurlyWood--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getCadetBlue()](#getCadetBlue--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getChartreuse()](#getChartreuse--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getChocolate()](#getChocolate--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getCoral()](#getCoral--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getCornflowerBlue()](#getCornflowerBlue--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getCornsilk()](#getCornsilk--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getCrimson()](#getCrimson--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getCyan()](#getCyan--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getDarkBlue()](#getDarkBlue--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getDarkCyan()](#getDarkCyan--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getDarkGoldenrod()](#getDarkGoldenrod--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getDarkGray()](#getDarkGray--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getDarkGreen()](#getDarkGreen--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getDarkKhaki()](#getDarkKhaki--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getDarkMagenta()](#getDarkMagenta--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getDarkOliveGreen()](#getDarkOliveGreen--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getDarkOrange()](#getDarkOrange--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getDarkOrchid()](#getDarkOrchid--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getDarkRed()](#getDarkRed--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getDarkSalmon()](#getDarkSalmon--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getDarkSeaGreen()](#getDarkSeaGreen--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getDarkSlateBlue()](#getDarkSlateBlue--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getDarkSlateGray()](#getDarkSlateGray--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getDarkTurquoise()](#getDarkTurquoise--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getDarkViolet()](#getDarkViolet--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getDeepPink()](#getDeepPink--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getDeepSkyBlue()](#getDeepSkyBlue--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getDimGray()](#getDimGray--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getDodgerBlue()](#getDodgerBlue--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getFirebrick()](#getFirebrick--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getFloralWhite()](#getFloralWhite--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getForestGreen()](#getForestGreen--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getFuchsia()](#getFuchsia--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getGainsboro()](#getGainsboro--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getGhostWhite()](#getGhostWhite--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getGold()](#getGold--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getGoldenrod()](#getGoldenrod--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getGray()](#getGray--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getGreen()](#getGreen--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getGreenYellow()](#getGreenYellow--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getHoneydew()](#getHoneydew--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getHotPink()](#getHotPink--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getIndianRed()](#getIndianRed--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getIndigo()](#getIndigo--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getIvory()](#getIvory--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getKhaki()](#getKhaki--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getLavender()](#getLavender--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getLavenderBlush()](#getLavenderBlush--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getLawnGreen()](#getLawnGreen--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getLemonChiffon()](#getLemonChiffon--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getLightBlue()](#getLightBlue--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getLightCoral()](#getLightCoral--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getLightCyan()](#getLightCyan--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getLightGoldenrodYellow()](#getLightGoldenrodYellow--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getLightGreen()](#getLightGreen--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getLightGray()](#getLightGray--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getLightPink()](#getLightPink--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getLightSalmon()](#getLightSalmon--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getLightSeaGreen()](#getLightSeaGreen--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getLightSkyBlue()](#getLightSkyBlue--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getLightSlateGray()](#getLightSlateGray--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getLightSteelBlue()](#getLightSteelBlue--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getLightYellow()](#getLightYellow--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getLime()](#getLime--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getLimeGreen()](#getLimeGreen--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getLinen()](#getLinen--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getMagenta()](#getMagenta--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getMaroon()](#getMaroon--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getMediumAquamarine()](#getMediumAquamarine--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getMediumBlue()](#getMediumBlue--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getMediumOrchid()](#getMediumOrchid--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getMediumPurple()](#getMediumPurple--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getMediumSeaGreen()](#getMediumSeaGreen--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getMediumSlateBlue()](#getMediumSlateBlue--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getMediumSpringGreen()](#getMediumSpringGreen--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getMediumTurquoise()](#getMediumTurquoise--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getMediumVioletRed()](#getMediumVioletRed--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getMidnightBlue()](#getMidnightBlue--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getMintCream()](#getMintCream--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getMistyRose()](#getMistyRose--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getMoccasin()](#getMoccasin--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getNavajoWhite()](#getNavajoWhite--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getNavy()](#getNavy--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getOldLace()](#getOldLace--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getOlive()](#getOlive--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getOliveDrab()](#getOliveDrab--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getOrange()](#getOrange--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getOrangeRed()](#getOrangeRed--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getOrchid()](#getOrchid--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getPaleGoldenrod()](#getPaleGoldenrod--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getPaleGreen()](#getPaleGreen--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getPaleTurquoise()](#getPaleTurquoise--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getPaleVioletRed()](#getPaleVioletRed--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getPapayaWhip()](#getPapayaWhip--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getPeachPuff()](#getPeachPuff--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getPeru()](#getPeru--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getPink()](#getPink--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getPlum()](#getPlum--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getPowderBlue()](#getPowderBlue--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getPurple()](#getPurple--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getRed()](#getRed--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getRosyBrown()](#getRosyBrown--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getRoyalBlue()](#getRoyalBlue--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getSaddleBrown()](#getSaddleBrown--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getSalmon()](#getSalmon--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getSandyBrown()](#getSandyBrown--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getSeaGreen()](#getSeaGreen--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getSeaShell()](#getSeaShell--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getSienna()](#getSienna--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getSilver()](#getSilver--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getSkyBlue()](#getSkyBlue--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getSlateBlue()](#getSlateBlue--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getSlateGray()](#getSlateGray--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getSnow()](#getSnow--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getSpringGreen()](#getSpringGreen--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getSteelBlue()](#getSteelBlue--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getTan()](#getTan--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getTeal()](#getTeal--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getThistle()](#getThistle--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getTomato()](#getTomato--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getTurquoise()](#getTurquoise--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getViolet()](#getViolet--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getWheat()](#getWheat--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getWhite()](#getWhite--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getWhiteSmoke()](#getWhiteSmoke--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getYellow()](#getYellow--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +| [getYellowGreen()](#getYellowGreen--) | 获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 | +### getTransparent() {#getTransparent--} +``` +public static Brush getTransparent() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getAliceBlue() {#getAliceBlue--} +``` +public static Brush getAliceBlue() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getAntiqueWhite() {#getAntiqueWhite--} +``` +public static Brush getAntiqueWhite() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getAqua() {#getAqua--} +``` +public static Brush getAqua() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getAquamarine() {#getAquamarine--} +``` +public static Brush getAquamarine() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getAzure() {#getAzure--} +``` +public static Brush getAzure() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getBeige() {#getBeige--} +``` +public static Brush getBeige() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getBisque() {#getBisque--} +``` +public static Brush getBisque() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getBlack() {#getBlack--} +``` +public static Brush getBlack() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getBlanchedAlmond() {#getBlanchedAlmond--} +``` +public static Brush getBlanchedAlmond() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getBlue() {#getBlue--} +``` +public static Brush getBlue() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getBlueViolet() {#getBlueViolet--} +``` +public static Brush getBlueViolet() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getBrown() {#getBrown--} +``` +public static Brush getBrown() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getBurlyWood() {#getBurlyWood--} +``` +public static Brush getBurlyWood() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getCadetBlue() {#getCadetBlue--} +``` +public static Brush getCadetBlue() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getChartreuse() {#getChartreuse--} +``` +public static Brush getChartreuse() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getChocolate() {#getChocolate--} +``` +public static Brush getChocolate() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getCoral() {#getCoral--} +``` +public static Brush getCoral() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getCornflowerBlue() {#getCornflowerBlue--} +``` +public static Brush getCornflowerBlue() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getCornsilk() {#getCornsilk--} +``` +public static Brush getCornsilk() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getCrimson() {#getCrimson--} +``` +public static Brush getCrimson() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getCyan() {#getCyan--} +``` +public static Brush getCyan() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getDarkBlue() {#getDarkBlue--} +``` +public static Brush getDarkBlue() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getDarkCyan() {#getDarkCyan--} +``` +public static Brush getDarkCyan() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getDarkGoldenrod() {#getDarkGoldenrod--} +``` +public static Brush getDarkGoldenrod() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getDarkGray() {#getDarkGray--} +``` +public static Brush getDarkGray() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getDarkGreen() {#getDarkGreen--} +``` +public static Brush getDarkGreen() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getDarkKhaki() {#getDarkKhaki--} +``` +public static Brush getDarkKhaki() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getDarkMagenta() {#getDarkMagenta--} +``` +public static Brush getDarkMagenta() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getDarkOliveGreen() {#getDarkOliveGreen--} +``` +public static Brush getDarkOliveGreen() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getDarkOrange() {#getDarkOrange--} +``` +public static Brush getDarkOrange() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getDarkOrchid() {#getDarkOrchid--} +``` +public static Brush getDarkOrchid() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getDarkRed() {#getDarkRed--} +``` +public static Brush getDarkRed() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getDarkSalmon() {#getDarkSalmon--} +``` +public static Brush getDarkSalmon() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getDarkSeaGreen() {#getDarkSeaGreen--} +``` +public static Brush getDarkSeaGreen() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getDarkSlateBlue() {#getDarkSlateBlue--} +``` +public static Brush getDarkSlateBlue() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getDarkSlateGray() {#getDarkSlateGray--} +``` +public static Brush getDarkSlateGray() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getDarkTurquoise() {#getDarkTurquoise--} +``` +public static Brush getDarkTurquoise() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getDarkViolet() {#getDarkViolet--} +``` +public static Brush getDarkViolet() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getDeepPink() {#getDeepPink--} +``` +public static Brush getDeepPink() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getDeepSkyBlue() {#getDeepSkyBlue--} +``` +public static Brush getDeepSkyBlue() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getDimGray() {#getDimGray--} +``` +public static Brush getDimGray() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getDodgerBlue() {#getDodgerBlue--} +``` +public static Brush getDodgerBlue() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getFirebrick() {#getFirebrick--} +``` +public static Brush getFirebrick() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getFloralWhite() {#getFloralWhite--} +``` +public static Brush getFloralWhite() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getForestGreen() {#getForestGreen--} +``` +public static Brush getForestGreen() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getFuchsia() {#getFuchsia--} +``` +public static Brush getFuchsia() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getGainsboro() {#getGainsboro--} +``` +public static Brush getGainsboro() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getGhostWhite() {#getGhostWhite--} +``` +public static Brush getGhostWhite() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getGold() {#getGold--} +``` +public static Brush getGold() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getGoldenrod() {#getGoldenrod--} +``` +public static Brush getGoldenrod() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getGray() {#getGray--} +``` +public static Brush getGray() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getGreen() {#getGreen--} +``` +public static Brush getGreen() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getGreenYellow() {#getGreenYellow--} +``` +public static Brush getGreenYellow() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getHoneydew() {#getHoneydew--} +``` +public static Brush getHoneydew() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getHotPink() {#getHotPink--} +``` +public static Brush getHotPink() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getIndianRed() {#getIndianRed--} +``` +public static Brush getIndianRed() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getIndigo() {#getIndigo--} +``` +public static Brush getIndigo() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getIvory() {#getIvory--} +``` +public static Brush getIvory() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getKhaki() {#getKhaki--} +``` +public static Brush getKhaki() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getLavender() {#getLavender--} +``` +public static Brush getLavender() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getLavenderBlush() {#getLavenderBlush--} +``` +public static Brush getLavenderBlush() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getLawnGreen() {#getLawnGreen--} +``` +public static Brush getLawnGreen() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getLemonChiffon() {#getLemonChiffon--} +``` +public static Brush getLemonChiffon() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getLightBlue() {#getLightBlue--} +``` +public static Brush getLightBlue() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getLightCoral() {#getLightCoral--} +``` +public static Brush getLightCoral() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getLightCyan() {#getLightCyan--} +``` +public static Brush getLightCyan() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getLightGoldenrodYellow() {#getLightGoldenrodYellow--} +``` +public static Brush getLightGoldenrodYellow() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getLightGreen() {#getLightGreen--} +``` +public static Brush getLightGreen() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getLightGray() {#getLightGray--} +``` +public static Brush getLightGray() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getLightPink() {#getLightPink--} +``` +public static Brush getLightPink() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getLightSalmon() {#getLightSalmon--} +``` +public static Brush getLightSalmon() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getLightSeaGreen() {#getLightSeaGreen--} +``` +public static Brush getLightSeaGreen() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getLightSkyBlue() {#getLightSkyBlue--} +``` +public static Brush getLightSkyBlue() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getLightSlateGray() {#getLightSlateGray--} +``` +public static Brush getLightSlateGray() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getLightSteelBlue() {#getLightSteelBlue--} +``` +public static Brush getLightSteelBlue() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getLightYellow() {#getLightYellow--} +``` +public static Brush getLightYellow() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getLime() {#getLime--} +``` +public static Brush getLime() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getLimeGreen() {#getLimeGreen--} +``` +public static Brush getLimeGreen() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getLinen() {#getLinen--} +``` +public static Brush getLinen() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getMagenta() {#getMagenta--} +``` +public static Brush getMagenta() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getMaroon() {#getMaroon--} +``` +public static Brush getMaroon() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getMediumAquamarine() {#getMediumAquamarine--} +``` +public static Brush getMediumAquamarine() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getMediumBlue() {#getMediumBlue--} +``` +public static Brush getMediumBlue() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getMediumOrchid() {#getMediumOrchid--} +``` +public static Brush getMediumOrchid() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getMediumPurple() {#getMediumPurple--} +``` +public static Brush getMediumPurple() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getMediumSeaGreen() {#getMediumSeaGreen--} +``` +public static Brush getMediumSeaGreen() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getMediumSlateBlue() {#getMediumSlateBlue--} +``` +public static Brush getMediumSlateBlue() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getMediumSpringGreen() {#getMediumSpringGreen--} +``` +public static Brush getMediumSpringGreen() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getMediumTurquoise() {#getMediumTurquoise--} +``` +public static Brush getMediumTurquoise() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getMediumVioletRed() {#getMediumVioletRed--} +``` +public static Brush getMediumVioletRed() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getMidnightBlue() {#getMidnightBlue--} +``` +public static Brush getMidnightBlue() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getMintCream() {#getMintCream--} +``` +public static Brush getMintCream() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getMistyRose() {#getMistyRose--} +``` +public static Brush getMistyRose() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getMoccasin() {#getMoccasin--} +``` +public static Brush getMoccasin() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getNavajoWhite() {#getNavajoWhite--} +``` +public static Brush getNavajoWhite() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getNavy() {#getNavy--} +``` +public static Brush getNavy() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getOldLace() {#getOldLace--} +``` +public static Brush getOldLace() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getOlive() {#getOlive--} +``` +public static Brush getOlive() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getOliveDrab() {#getOliveDrab--} +``` +public static Brush getOliveDrab() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getOrange() {#getOrange--} +``` +public static Brush getOrange() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getOrangeRed() {#getOrangeRed--} +``` +public static Brush getOrangeRed() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getOrchid() {#getOrchid--} +``` +public static Brush getOrchid() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getPaleGoldenrod() {#getPaleGoldenrod--} +``` +public static Brush getPaleGoldenrod() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getPaleGreen() {#getPaleGreen--} +``` +public static Brush getPaleGreen() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getPaleTurquoise() {#getPaleTurquoise--} +``` +public static Brush getPaleTurquoise() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getPaleVioletRed() {#getPaleVioletRed--} +``` +public static Brush getPaleVioletRed() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getPapayaWhip() {#getPapayaWhip--} +``` +public static Brush getPapayaWhip() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getPeachPuff() {#getPeachPuff--} +``` +public static Brush getPeachPuff() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getPeru() {#getPeru--} +``` +public static Brush getPeru() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getPink() {#getPink--} +``` +public static Brush getPink() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getPlum() {#getPlum--} +``` +public static Brush getPlum() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getPowderBlue() {#getPowderBlue--} +``` +public static Brush getPowderBlue() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getPurple() {#getPurple--} +``` +public static Brush getPurple() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getRed() {#getRed--} +``` +public static Brush getRed() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getRosyBrown() {#getRosyBrown--} +``` +public static Brush getRosyBrown() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getRoyalBlue() {#getRoyalBlue--} +``` +public static Brush getRoyalBlue() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getSaddleBrown() {#getSaddleBrown--} +``` +public static Brush getSaddleBrown() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getSalmon() {#getSalmon--} +``` +public static Brush getSalmon() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getSandyBrown() {#getSandyBrown--} +``` +public static Brush getSandyBrown() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getSeaGreen() {#getSeaGreen--} +``` +public static Brush getSeaGreen() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getSeaShell() {#getSeaShell--} +``` +public static Brush getSeaShell() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getSienna() {#getSienna--} +``` +public static Brush getSienna() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getSilver() {#getSilver--} +``` +public static Brush getSilver() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getSkyBlue() {#getSkyBlue--} +``` +public static Brush getSkyBlue() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getSlateBlue() {#getSlateBlue--} +``` +public static Brush getSlateBlue() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getSlateGray() {#getSlateGray--} +``` +public static Brush getSlateGray() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getSnow() {#getSnow--} +``` +public static Brush getSnow() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getSpringGreen() {#getSpringGreen--} +``` +public static Brush getSpringGreen() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getSteelBlue() {#getSteelBlue--} +``` +public static Brush getSteelBlue() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getTan() {#getTan--} +``` +public static Brush getTan() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getTeal() {#getTeal--} +``` +public static Brush getTeal() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getThistle() {#getThistle--} +``` +public static Brush getThistle() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getTomato() {#getTomato--} +``` +public static Brush getTomato() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getTurquoise() {#getTurquoise--} +``` +public static Brush getTurquoise() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getViolet() {#getViolet--} +``` +public static Brush getViolet() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getWheat() {#getWheat--} +``` +public static Brush getWheat() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getWhite() {#getWhite--} +``` +public static Brush getWhite() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getWhiteSmoke() {#getWhiteSmoke--} +``` +public static Brush getWhiteSmoke() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getYellow() {#getYellow--} +``` +public static Brush getYellow() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE +### getYellowGreen() {#getYellowGreen--} +``` +public static Brush getYellowGreen() +``` + + +获取系统定义的 [Brush](../../com.aspose.drawing/brush) 对象。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) - A [Brush](../../com.aspose.drawing/brush) object set to a system-defined color. `1`KKKCODEBKKKCODEE diff --git a/chinese/java/com.aspose.drawing/characterrange/_index.md b/chinese/java/com.aspose.drawing/characterrange/_index.md new file mode 100644 index 000000000..edb3f419d --- /dev/null +++ b/chinese/java/com.aspose.drawing/characterrange/_index.md @@ -0,0 +1,203 @@ +--- +title: CharacterRange +second_title: Aspose.Drawing for Java API 参考 +description: 指定字符串中字符位置的范围。 +type: docs +weight: 13 +url: /zh/java/com.aspose.drawing/characterrange/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.lang.Struct + +**All Implemented Interfaces:** +java.lang.Cloneable +``` +public class CharacterRange extends Struct implements Cloneable +``` + +指定字符串中字符位置的范围。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [CharacterRange()](#CharacterRange--) | | +| [CharacterRange(int first, int length)](#CharacterRange-int-int-) | 初始化一个新的 [CharacterRange](../../com.aspose.drawing/characterrange) 结构体实例,指定字符串中字符位置的范围。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getFirst()](#getFirst--) | 获取或设置此 [CharacterRange](../../com.aspose.drawing/characterrange) 中第一个字符在字符串中的位置。 | +| [setFirst(int value)](#setFirst-int-) | 获取或设置此 [CharacterRange](../../com.aspose.drawing/characterrange) 中第一个字符在字符串中的位置。 | +| [getLength()](#getLength--) | 获取或设置此 [CharacterRange](../../com.aspose.drawing/characterrange) 中的位置数量。 | +| [setLength(int value)](#setLength-int-) | 获取或设置此 [CharacterRange](../../com.aspose.drawing/characterrange) 中的位置数量。 | +| [op_Equality(CharacterRange cr1, CharacterRange cr2)](#op-Equality-com.aspose.drawing.CharacterRange-com.aspose.drawing.CharacterRange-) | 比较两个 [CharacterRange](../../com.aspose.drawing/characterrange) 对象。 | +| [op_Inequality(CharacterRange cr1, CharacterRange cr2)](#op-Inequality-com.aspose.drawing.CharacterRange-com.aspose.drawing.CharacterRange-) | 比较两个 [CharacterRange](../../com.aspose.drawing/characterrange) 对象。 | +| [equals(Object obj)](#equals-java.lang.Object-) | 获取一个值,指示此对象是否等价于指定的对象。 | +| [hashCode()](#hashCode--) | 返回此实例的哈希码。 | +| [CloneTo(CharacterRange that)](#CloneTo-com.aspose.drawing.CharacterRange-) | | +| [Clone()](#Clone--) | | +| [clone()](#clone--) | | +### CharacterRange() {#CharacterRange--} +``` +public CharacterRange() +``` + + +### CharacterRange(int first, int length) {#CharacterRange-int-int-} +``` +public CharacterRange(int first, int length) +``` + + +初始化一个新的 [CharacterRange](../../com.aspose.drawing/characterrange) 结构体实例,指定字符串中字符位置的范围。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| first | int | 范围内第一个字符的位置。例如,如果 First 设置为 0,则范围的第一个位置是字符串中的位置 0。 | +| length | int | 范围内的位置数量。 | + +### getFirst() {#getFirst--} +``` +public final int getFirst() +``` + + +获取或设置此 [CharacterRange](../../com.aspose.drawing/characterrange) 中第一个字符在字符串中的位置。 + +值:此 [CharacterRange](../../com.aspose.drawing/characterrange) 的第一个位置。 + +**Returns:** +int +### setFirst(int value) {#setFirst-int-} +``` +public final void setFirst(int value) +``` + + +获取或设置此 [CharacterRange](../../com.aspose.drawing/characterrange) 中第一个字符在字符串中的位置。 + +值:此 [CharacterRange](../../com.aspose.drawing/characterrange) 的第一个位置。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | | + +### getLength() {#getLength--} +``` +public final int getLength() +``` + + +获取或设置此 [CharacterRange](../../com.aspose.drawing/characterrange) 中的位置数量。 + +值:此 [CharacterRange](../../com.aspose.drawing/characterrange) 中的位置数量。 + +**Returns:** +int +### setLength(int value) {#setLength-int-} +``` +public final void setLength(int value) +``` + + +获取或设置此 [CharacterRange](../../com.aspose.drawing/characterrange) 中的位置数量。 + +值:此 [CharacterRange](../../com.aspose.drawing/characterrange) 中的位置数量。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | | + +### op_Equality(CharacterRange cr1, CharacterRange cr2) {#op-Equality-com.aspose.drawing.CharacterRange-com.aspose.drawing.CharacterRange-} +``` +public static boolean op_Equality(CharacterRange cr1, CharacterRange cr2) +``` + + +比较两个 [CharacterRange](../../com.aspose.drawing/characterrange) 对象。获取一个值,指示这两个 [CharacterRange](../../com.aspose.drawing/characterrange) 对象的 First 和 Length 值是否相等。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| cr1 | [CharacterRange](../../com.aspose.drawing/characterrange) | 用于比较相等性的 [CharacterRange](../../com.aspose.drawing/characterrange)。 | +| cr2 | [CharacterRange](../../com.aspose.drawing/characterrange) | 用于比较相等性的 [CharacterRange](../../com.aspose.drawing/characterrange)。 | + +**Returns:** +boolean - `true` 表示两个 CharacterRange 对象具有相同的 First 和 Length 值;否则为 `false`。 +### op_Inequality(CharacterRange cr1, CharacterRange cr2) {#op-Inequality-com.aspose.drawing.CharacterRange-com.aspose.drawing.CharacterRange-} +``` +public static boolean op_Inequality(CharacterRange cr1, CharacterRange cr2) +``` + + +比较两个 [CharacterRange](../../com.aspose.drawing/characterrange) 对象。获取一个值,指示这两个 [CharacterRange](../../com.aspose.drawing/characterrange) 对象的 First 或 Length 值是否不相等。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| cr1 | [CharacterRange](../../com.aspose.drawing/characterrange) | 用于比较不等性的 [CharacterRange](../../com.aspose.drawing/characterrange)。 | +| cr2 | [CharacterRange](../../com.aspose.drawing/characterrange) | 用于比较不等性的 [CharacterRange](../../com.aspose.drawing/characterrange)。 | + +**Returns:** +boolean - `true` 表示两个 CharacterRange 对象的 First 或 Length 值任一不同;否则为 `false`。 +### equals(Object obj) {#equals-java.lang.Object-} +``` +public boolean equals(Object obj) +``` + + +获取一个值,指示此对象是否等价于指定的对象。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| obj | java.lang.Object | 用于比较相等性的对象。 | + +**Returns:** +boolean - `true` 表示指定的对象是具有与此实例相同的 First 和 Length 值的实例;否则为 `false`。 +### hashCode() {#hashCode--} +``` +public int hashCode() +``` + + +返回此实例的哈希码。 + +**Returns:** +int - 一个 32 位有符号整数,作为此实例的哈希码。 +### CloneTo(CharacterRange that) {#CloneTo-com.aspose.drawing.CharacterRange-} +``` +public void CloneTo(CharacterRange that) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| that | [CharacterRange](../../com.aspose.drawing/characterrange) | | + +### Clone() {#Clone--} +``` +public CharacterRange Clone() +``` + + + + +**Returns:** +[CharacterRange](../../com.aspose.drawing/characterrange) +### clone() {#clone--} +``` +public Object clone() +``` + + + + +**Returns:** +java.lang.Object diff --git a/chinese/java/com.aspose.drawing/color/_index.md b/chinese/java/com.aspose.drawing/color/_index.md new file mode 100644 index 000000000..70ad9bd65 --- /dev/null +++ b/chinese/java/com.aspose.drawing/color/_index.md @@ -0,0 +1,2002 @@ +--- +title: Color +second_title: Aspose.Drawing for Java API 参考 +description: 表示一种 ARGB(Alpha、红、绿、蓝)颜色。 +type: docs +weight: 14 +url: /zh/java/com.aspose.drawing/color/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.lang.Struct + +**All Implemented Interfaces:** +com.aspose.ms.System.IEquatable, java.lang.Cloneable +``` +public class Color extends Struct implements System.IEquatable, Cloneable +``` + +表示 ARGB(alpha、red、green、blue)颜色。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [Color()](#Color--) | | +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [EMPTY](#EMPTY) | 表示一个空(null)颜色。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getTransparent()](#getTransparent--) | 获取系统定义的颜色。 | +| [getAliceBlue()](#getAliceBlue--) | 获取系统定义的颜色,其 ARGB 值为 \#FFF0F8FF。 | +| [getAntiqueWhite()](#getAntiqueWhite--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFAEBD7。 | +| [getAqua()](#getAqua--) | 获取系统定义的颜色,其 ARGB 值为 \#FF00FFFF。 | +| [getAquamarine()](#getAquamarine--) | 获取系统定义的颜色,其 ARGB 值为 \#FF7FFFD4。 | +| [getAzure()](#getAzure--) | 获取系统定义的颜色,其 ARGB 值为 \#FFF0FFFF。 | +| [getBeige()](#getBeige--) | 获取系统定义的颜色,其 ARGB 值为 \#FFF5F5DC。 | +| [getBisque()](#getBisque--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFFE4C4。 | +| [getBlack()](#getBlack--) | 获取系统定义的颜色,其 ARGB 值为 \#FF000000。 | +| [getBlanchedAlmond()](#getBlanchedAlmond--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFFEBCD。 | +| [getBlue()](#getBlue--) | 获取系统定义的颜色,其 ARGB 值为 \#FF0000FF。 | +| [getBlueViolet()](#getBlueViolet--) | 获取系统定义的颜色,其 ARGB 值为 \#FF8A2BE2。 | +| [getBrown()](#getBrown--) | 获取系统定义的颜色,其 ARGB 值为 \#FFA52A2A。 | +| [getBurlyWood()](#getBurlyWood--) | 获取系统定义的颜色,其 ARGB 值为 \#FFDEB887。 | +| [getCadetBlue()](#getCadetBlue--) | 获取系统定义的颜色,其 ARGB 值为 \#FF5F9EA0。 | +| [getChartreuse()](#getChartreuse--) | 获取系统定义的颜色,其 ARGB 值为 \#FF7FFF00。 | +| [getChocolate()](#getChocolate--) | 获取系统定义的颜色,其 ARGB 值为 \#FFD2691E。 | +| [getCoral()](#getCoral--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFF7F50。 | +| [getCornflowerBlue()](#getCornflowerBlue--) | 获取系统定义的颜色,其 ARGB 值为 \#FF6495ED。 | +| [getCornsilk()](#getCornsilk--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFFF8DC。 | +| [getCrimson()](#getCrimson--) | 获取系统定义的颜色,其 ARGB 值为 \#FFDC143C。 | +| [getCyan()](#getCyan--) | 获取系统定义的颜色,其 ARGB 值为 \#FF00FFFF。 | +| [getDarkBlue()](#getDarkBlue--) | 获取系统定义的颜色,其 ARGB 值为 \#FF00008B。 | +| [getDarkCyan()](#getDarkCyan--) | 获取系统定义的颜色,其 ARGB 值为 \#FF008B8B。 | +| [getDarkGoldenrod()](#getDarkGoldenrod--) | 获取系统定义的颜色,其 ARGB 值为 \#FFB8860B。 | +| [getDarkGray()](#getDarkGray--) | 获取系统定义的颜色,其 ARGB 值为 \#FFA9A9A9。 | +| [getDarkGreen()](#getDarkGreen--) | 获取系统定义的颜色,其 ARGB 值为 \#FF006400。 | +| [getDarkKhaki()](#getDarkKhaki--) | 获取系统定义的颜色,其 ARGB 值为 \#FFBDB76B。 | +| [getDarkMagenta()](#getDarkMagenta--) | 获取系统定义的颜色,其 ARGB 值为 \#FF8B008B。 | +| [getDarkOliveGreen()](#getDarkOliveGreen--) | 获取系统定义的颜色,其 ARGB 值为 \#FF556B2F。 | +| [getDarkOrange()](#getDarkOrange--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFF8C00。 | +| [getDarkOrchid()](#getDarkOrchid--) | 获取系统定义的颜色,其 ARGB 值为 \#FF9932CC。 | +| [getDarkRed()](#getDarkRed--) | 获取系统定义的颜色,其 ARGB 值为 \#FF8B0000。 | +| [getDarkSalmon()](#getDarkSalmon--) | 获取系统定义的颜色,其 ARGB 值为 \#FFE9967A。 | +| [getDarkSeaGreen()](#getDarkSeaGreen--) | 获取系统定义的颜色,其 ARGB 值为 \#FF8FBC8F。 | +| [getDarkSlateBlue()](#getDarkSlateBlue--) | 获取系统定义的颜色,其 ARGB 值为 \#FF483D8B。 | +| [getDarkSlateGray()](#getDarkSlateGray--) | 获取系统定义的颜色,其 ARGB 值为 \#FF2F4F4F。 | +| [getDarkTurquoise()](#getDarkTurquoise--) | 获取系统定义的颜色,其 ARGB 值为 \#FF00CED1。 | +| [getDarkViolet()](#getDarkViolet--) | 获取系统定义的颜色,其 ARGB 值为 \#FF9400D3。 | +| [getDeepPink()](#getDeepPink--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFF1493。 | +| [getDeepSkyBlue()](#getDeepSkyBlue--) | 获取系统定义的颜色,其 ARGB 值为 \#FF00BFFF。 | +| [getDimGray()](#getDimGray--) | 获取系统定义的颜色,其 ARGB 值为 \#FF696969。 | +| [getDodgerBlue()](#getDodgerBlue--) | 获取系统定义的颜色,其 ARGB 值为 \#FF1E90FF。 | +| [getFirebrick()](#getFirebrick--) | 获取系统定义的颜色,其 ARGB 值为 \#FFB22222。 | +| [getFloralWhite()](#getFloralWhite--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFFFAF0。 | +| [getForestGreen()](#getForestGreen--) | 获取系统定义的颜色,其 ARGB 值为 \#FF228B22。 | +| [getFuchsia()](#getFuchsia--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFF00FF。 | +| [getGainsboro()](#getGainsboro--) | 获取系统定义的颜色,其 ARGB 值为 \#FFDCDCDC。 | +| [getGhostWhite()](#getGhostWhite--) | 获取系统定义的颜色,其 ARGB 值为 \#FFF8F8FF。 | +| [getGold()](#getGold--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFFD700。 | +| [getGoldenrod()](#getGoldenrod--) | 获取系统定义的颜色,其 ARGB 值为 \#FFDAA520。 | +| [getGray()](#getGray--) | 获取系统定义的颜色,其 ARGB 值为 \#FF808080。 | +| [getGreen()](#getGreen--) | 获取系统定义的颜色,其 ARGB 值为 \#FF008000。 | +| [getGreenYellow()](#getGreenYellow--) | 获取系统定义的颜色,其 ARGB 值为 \#FFADFF2F。 | +| [getHoneydew()](#getHoneydew--) | 获取系统定义的颜色,其 ARGB 值为 \#FFF0FFF0。 | +| [getHotPink()](#getHotPink--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFF69B4。 | +| [getIndianRed()](#getIndianRed--) | 获取系统定义的颜色,其 ARGB 值为 \#FFCD5C5C。 | +| [getIndigo()](#getIndigo--) | 获取系统定义的颜色,其 ARGB 值为 \#FF4B0082。 | +| [getIvory()](#getIvory--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFFFFF0。 | +| [getKhaki()](#getKhaki--) | 获取系统定义的颜色,其 ARGB 值为 \#FFF0E68C。 | +| [getLavender()](#getLavender--) | 获取系统定义的颜色,其 ARGB 值为 \#FFE6E6FA。 | +| [getLavenderBlush()](#getLavenderBlush--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFFF0F5。 | +| [getLawnGreen()](#getLawnGreen--) | 获取系统定义的颜色,其 ARGB 值为 \#FF7CFC00。 | +| [getLemonChiffon()](#getLemonChiffon--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFFFACD。 | +| [getLightBlue()](#getLightBlue--) | 获取系统定义的颜色,其 ARGB 值为 \#FFADD8E6。 | +| [getLightCoral()](#getLightCoral--) | 获取系统定义的颜色,其 ARGB 值为 \#FFF08080。 | +| [getLightCyan()](#getLightCyan--) | 获取系统定义的颜色,其 ARGB 值为 \#FFE0FFFF。 | +| [getLightGoldenrodYellow()](#getLightGoldenrodYellow--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFAFAD2。 | +| [getLightGreen()](#getLightGreen--) | 获取系统定义的颜色,其 ARGB 值为 \#FF90EE90。 | +| [getLightGray()](#getLightGray--) | 获取系统定义的颜色,其 ARGB 值为 \#FFD3D3D3。 | +| [getLightPink()](#getLightPink--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFFB6C1。 | +| [getLightSalmon()](#getLightSalmon--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFFA07A。 | +| [getLightSeaGreen()](#getLightSeaGreen--) | 获取系统定义的颜色,其 ARGB 值为 \#FF20B2AA。 | +| [getLightSkyBlue()](#getLightSkyBlue--) | 获取系统定义的颜色,其 ARGB 值为 \#FF87CEFA。 | +| [getLightSlateGray()](#getLightSlateGray--) | 获取系统定义的颜色,其 ARGB 值为 \#FF778899。 | +| [getLightSteelBlue()](#getLightSteelBlue--) | 获取系统定义的颜色,其 ARGB 值为 \#FFB0C4DE。 | +| [getLightYellow()](#getLightYellow--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFFFFE0。 | +| [getLime()](#getLime--) | 获取系统定义的颜色,其 ARGB 值为 \#FF00FF00。 | +| [getLimeGreen()](#getLimeGreen--) | 获取系统定义的颜色,其 ARGB 值为 \#FF32CD32。 | +| [getLinen()](#getLinen--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFAF0E6。 | +| [getMagenta()](#getMagenta--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFF00FF。 | +| [getMaroon()](#getMaroon--) | 获取系统定义的颜色,其 ARGB 值为 \#FF800000。 | +| [getMediumAquamarine()](#getMediumAquamarine--) | 获取系统定义的颜色,其 ARGB 值为 \#FF66CDAA。 | +| [getMediumBlue()](#getMediumBlue--) | 获取系统定义的颜色,其 ARGB 值为 \#FF0000CD。 | +| [getMediumOrchid()](#getMediumOrchid--) | 获取系统定义的颜色,其 ARGB 值为 \#FFBA55D3。 | +| [getMediumPurple()](#getMediumPurple--) | 获取系统定义的颜色,其 ARGB 值为 \#FF9370DB。 | +| [getMediumSeaGreen()](#getMediumSeaGreen--) | 获取系统定义的颜色,其 ARGB 值为 \#FF3CB371。 | +| [getMediumSlateBlue()](#getMediumSlateBlue--) | 获取系统定义的颜色,其 ARGB 值为 \#FF7B68EE。 | +| [getMediumSpringGreen()](#getMediumSpringGreen--) | 获取系统定义的颜色,其 ARGB 值为 \#FF00FA9A。 | +| [getMediumTurquoise()](#getMediumTurquoise--) | 获取系统定义的颜色,其 ARGB 值为 \#FF48D1CC。 | +| [getMediumVioletRed()](#getMediumVioletRed--) | 获取系统定义的颜色,其 ARGB 值为 \#FFC71585。 | +| [getMidnightBlue()](#getMidnightBlue--) | 获取系统定义的颜色,其 ARGB 值为 \#FF191970。 | +| [getMintCream()](#getMintCream--) | 获取系统定义的颜色,其 ARGB 值为 \#FFF5FFFA。 | +| [getMistyRose()](#getMistyRose--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFFE4E1。 | +| [getMoccasin()](#getMoccasin--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFFE4B5。 | +| [getNavajoWhite()](#getNavajoWhite--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFFDEAD。 | +| [getNavy()](#getNavy--) | 获取系统定义的颜色,其 ARGB 值为 \#FF000080。 | +| [getOldLace()](#getOldLace--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFDF5E6。 | +| [getOlive()](#getOlive--) | 获取系统定义的颜色,其 ARGB 值为 \#FF808000。 | +| [getOliveDrab()](#getOliveDrab--) | 获取系统定义的颜色,其 ARGB 值为 \#FF6B8E23。 | +| [getOrange()](#getOrange--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFFA500。 | +| [getOrangeRed()](#getOrangeRed--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFF4500。 | +| [getOrchid()](#getOrchid--) | 获取系统定义的颜色,其 ARGB 值为 \#FFDA70D6。 | +| [getPaleGoldenrod()](#getPaleGoldenrod--) | 获取系统定义的颜色,其 ARGB 值为 \#FFEEE8AA。 | +| [getPaleGreen()](#getPaleGreen--) | 获取系统定义的颜色,其 ARGB 值为 \#FF98FB98。 | +| [getPaleTurquoise()](#getPaleTurquoise--) | 获取系统定义的颜色,其 ARGB 值为 \#FFAFEEEE。 | +| [getPaleVioletRed()](#getPaleVioletRed--) | 获取系统定义的颜色,其 ARGB 值为 \#FFDB7093。 | +| [getPapayaWhip()](#getPapayaWhip--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFFEFD5。 | +| [getPeachPuff()](#getPeachPuff--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFFDAB9。 | +| [getPeru()](#getPeru--) | 获取系统定义的颜色,其 ARGB 值为 \#FFCD853F。 | +| [getPink()](#getPink--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFFC0CB。 | +| [getPlum()](#getPlum--) | 获取系统定义的颜色,其 ARGB 值为 \#FFDDA0DD。 | +| [getPowderBlue()](#getPowderBlue--) | 获取系统定义的颜色,其 ARGB 值为 \#FFB0E0E6。 | +| [getPurple()](#getPurple--) | 获取系统定义的颜色,其 ARGB 值为 \#FF800080。 | +| [getRed()](#getRed--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFF0000。 | +| [getRosyBrown()](#getRosyBrown--) | 获取系统定义的颜色,其 ARGB 值为 \#FFBC8F8F。 | +| [getRoyalBlue()](#getRoyalBlue--) | 获取系统定义的颜色,其 ARGB 值为 \#FF4169E1。 | +| [getSaddleBrown()](#getSaddleBrown--) | 获取系统定义的颜色,其 ARGB 值为 \#FF8B4513。 | +| [getSalmon()](#getSalmon--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFA8072。 | +| [getSandyBrown()](#getSandyBrown--) | 获取系统定义的颜色,其 ARGB 值为 \#FFF4A460。 | +| [getSeaGreen()](#getSeaGreen--) | 获取系统定义的颜色,其 ARGB 值为 \#FF2E8B57。 | +| [getSeaShell()](#getSeaShell--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFFF5EE。 | +| [getSienna()](#getSienna--) | 获取系统定义的颜色,其 ARGB 值为 \#FFA0522D。 | +| [getSilver()](#getSilver--) | 获取系统定义的颜色,其 ARGB 值为 \#FFC0C0C0。 | +| [getSkyBlue()](#getSkyBlue--) | 获取系统定义的颜色,其 ARGB 值为 \#FF87CEEB。 | +| [getSlateBlue()](#getSlateBlue--) | 获取系统定义的颜色,其 ARGB 值为 \#FF6A5ACD。 | +| [getSlateGray()](#getSlateGray--) | 获取系统定义的颜色,其 ARGB 值为 \#FF708090。 | +| [getSnow()](#getSnow--) | 获取系统定义的颜色,其 ARGB 值为 \#FFFFFAFA。 | +| [getSpringGreen()](#getSpringGreen--) | 获取系统定义的颜色,其 ARGB 值为 \#FF00FF7F。 | +| [getSteelBlue()](#getSteelBlue--) | 获取系统定义的颜色,其 ARGB 值为 \#FF4682B4。 | +| [getTan()](#getTan--) | 获取具有 ARGB 值 \#FFD2B48C 的系统定义颜色。 | +| [getTeal()](#getTeal--) | 获取具有 ARGB 值 \#FF008080 的系统定义颜色。 | +| [getThistle()](#getThistle--) | 获取具有 ARGB 值 \#FFD8BFD8 的系统定义颜色。 | +| [getTomato()](#getTomato--) | 获取具有 ARGB 值 \#FFFF6347 的系统定义颜色。 | +| [getTurquoise()](#getTurquoise--) | 获取具有 ARGB 值 \#FF40E0D0 的系统定义颜色。 | +| [getViolet()](#getViolet--) | 获取具有 ARGB 值 \#FFEE82EE 的系统定义颜色。 | +| [getWheat()](#getWheat--) | 获取具有 ARGB 值 \#FFF5DEB3 的系统定义颜色。 | +| [getWhite()](#getWhite--) | 获取具有 ARGB 值 \#FFFFFFFF 的系统定义颜色。 | +| [getWhiteSmoke()](#getWhiteSmoke--) | 获取具有 ARGB 值 \#FFF5F5F5 的系统定义颜色。 | +| [getYellow()](#getYellow--) | 获取具有 ARGB 值 \#FFFFFF00 的系统定义颜色。 | +| [getYellowGreen()](#getYellowGreen--) | 获取具有 ARGB 值 \#FF9ACD32 的系统定义颜色。 | +| [getA()](#getA--) | 获取此 [Color](../../com.aspose.drawing/color) 结构的 alpha 组件值。 | +| [getR()](#getR--) | 获取此 [Color](../../com.aspose.drawing/color) 结构的红色分量值。 | +| [getG()](#getG--) | 获取此 [Color](../../com.aspose.drawing/color) 结构的绿色分量值。 | +| [getB()](#getB--) | 获取此 [Color](../../com.aspose.drawing/color) 结构的蓝色分量值。 | +| [isKnownColor()](#isKnownColor--) | 获取一个值,指示此 [Color](../../com.aspose.drawing/color) 结构是否为预定义颜色。 | +| [isEmpty()](#isEmpty--) | 获取一个值,指示此 [Color](../../com.aspose.drawing/color) 结构是否未初始化。 | +| [isNamedColor()](#isNamedColor--) | 获取一个值,指示此 [Color](../../com.aspose.drawing/color) 结构是命名颜色还是 [KnownColor](../../com.aspose.drawing/knowncolor) 枚举的成员。 | +| [isSystemColor()](#isSystemColor--) | 获取一个值,指示此 [Color](../../com.aspose.drawing/color) 结构是否为系统颜色。 | +| [getName()](#getName--) | 获取此 [Color](../../com.aspose.drawing/color) 的名称。 | +| [fromArgb(int argb)](#fromArgb-int-) | 从 32 位 ARGB 值创建一个 [Color](../../com.aspose.drawing/color) 结构。 | +| [fromArgb(int alpha, Color baseColor)](#fromArgb-int-com.aspose.drawing.Color-) | 从指定的 [Color](../../com.aspose.drawing/color) 结构创建一个 [Color](../../com.aspose.drawing/color) 结构,但使用新的指定 alpha 值。 | +| [fromArgb(int red, int green, int blue)](#fromArgb-int-int-int-) | 使用指定的 8 位颜色值(红色、绿色和蓝色)创建一个 [Color](../../com.aspose.drawing/color) 结构。 | +| [fromArgb(int alpha, int red, int green, int blue)](#fromArgb-int-int-int-int-) | 从四个 ARGB 组件(alpha、红色、绿色和蓝色)值创建一个 Color 结构。 | +| [fromKnownColor(int color)](#fromKnownColor-int-) | 从指定的预定义颜色创建一个 [Color](../../com.aspose.drawing/color) 结构。 | +| [fromName(String name)](#fromName-java.lang.String-) | 从指定的预定义颜色名称创建一个 [Color](../../com.aspose.drawing/color) 结构。 | +| [op_Equality(Color left, Color right)](#op-Equality-com.aspose.drawing.Color-com.aspose.drawing.Color-) | 测试两个指定的 [Color](../../com.aspose.drawing/color) 结构是否相等。 | +| [op_Inequality(Color left, Color right)](#op-Inequality-com.aspose.drawing.Color-com.aspose.drawing.Color-) | 测试两个指定的 [Color](../../com.aspose.drawing/color) 结构是否不同。 | +| [equals(Color other)](#equals-com.aspose.drawing.Color-) | 测试指定的颜色是否等于此颜色。 | +| [equals(Object obj)](#equals-java.lang.Object-) | 测试指定的对象是否等于此颜色。 | +| [toArgb()](#toArgb--) | 获取此 Color 结构的 32 位 ARGB 值。 | +| [getBrightness()](#getBrightness--) | 获取此 [Color](../../com.aspose.drawing/color) 结构的色相-饱和度-亮度 (HSB) 亮度值。 | +| [getHue()](#getHue--) | 获取此 [Color](../../com.aspose.drawing/color) 结构的色相-饱和度-亮度 (HSB) 色相值(以度为单位)。 | +| [getSaturation()](#getSaturation--) | 获取此 [Color](../../com.aspose.drawing/color) 结构的色相-饱和度-亮度 (HSB) 饱和度值。 | +| [toKnownColor()](#toKnownColor--) | 获取此 [Color](../../com.aspose.drawing/color) 结构的 [KnownColor](../../com.aspose.drawing/knowncolor) 值。 | +| [toString()](#toString--) | 返回表示此实例的字符串。 | +| [hashCode()](#hashCode--) | 返回此实例的哈希码。 | +| [isEquals(Color obj1, Color obj2)](#isEquals-com.aspose.drawing.Color-com.aspose.drawing.Color-) | | +| [getEmpty()](#getEmpty--) | | +| [CloneTo(Color that)](#CloneTo-com.aspose.drawing.Color-) | | +| [Clone()](#Clone--) | | +### Color() {#Color--} +``` +public Color() +``` + + +### EMPTY {#EMPTY} +``` +public static final Color EMPTY +``` + + +表示一个空(null)颜色。 + +### getTransparent() {#getTransparent--} +``` +public static Color getTransparent() +``` + + +获取系统定义的颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getAliceBlue() {#getAliceBlue--} +``` +public static Color getAliceBlue() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFF0F8FF。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getAntiqueWhite() {#getAntiqueWhite--} +``` +public static Color getAntiqueWhite() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFAEBD7。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getAqua() {#getAqua--} +``` +public static Color getAqua() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF00FFFF。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getAquamarine() {#getAquamarine--} +``` +public static Color getAquamarine() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF7FFFD4。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getAzure() {#getAzure--} +``` +public static Color getAzure() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFF0FFFF。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getBeige() {#getBeige--} +``` +public static Color getBeige() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFF5F5DC。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getBisque() {#getBisque--} +``` +public static Color getBisque() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFFE4C4。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getBlack() {#getBlack--} +``` +public static Color getBlack() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF000000。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getBlanchedAlmond() {#getBlanchedAlmond--} +``` +public static Color getBlanchedAlmond() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFFEBCD。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getBlue() {#getBlue--} +``` +public static Color getBlue() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF0000FF。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getBlueViolet() {#getBlueViolet--} +``` +public static Color getBlueViolet() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF8A2BE2。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getBrown() {#getBrown--} +``` +public static Color getBrown() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFA52A2A。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getBurlyWood() {#getBurlyWood--} +``` +public static Color getBurlyWood() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFDEB887。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getCadetBlue() {#getCadetBlue--} +``` +public static Color getCadetBlue() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF5F9EA0。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getChartreuse() {#getChartreuse--} +``` +public static Color getChartreuse() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF7FFF00。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getChocolate() {#getChocolate--} +``` +public static Color getChocolate() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFD2691E。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getCoral() {#getCoral--} +``` +public static Color getCoral() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFF7F50。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getCornflowerBlue() {#getCornflowerBlue--} +``` +public static Color getCornflowerBlue() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF6495ED。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getCornsilk() {#getCornsilk--} +``` +public static Color getCornsilk() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFFF8DC。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getCrimson() {#getCrimson--} +``` +public static Color getCrimson() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFDC143C。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getCyan() {#getCyan--} +``` +public static Color getCyan() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF00FFFF。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getDarkBlue() {#getDarkBlue--} +``` +public static Color getDarkBlue() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF00008B。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getDarkCyan() {#getDarkCyan--} +``` +public static Color getDarkCyan() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF008B8B。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getDarkGoldenrod() {#getDarkGoldenrod--} +``` +public static Color getDarkGoldenrod() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFB8860B。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getDarkGray() {#getDarkGray--} +``` +public static Color getDarkGray() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFA9A9A9。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getDarkGreen() {#getDarkGreen--} +``` +public static Color getDarkGreen() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF006400。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getDarkKhaki() {#getDarkKhaki--} +``` +public static Color getDarkKhaki() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFBDB76B。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getDarkMagenta() {#getDarkMagenta--} +``` +public static Color getDarkMagenta() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF8B008B。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getDarkOliveGreen() {#getDarkOliveGreen--} +``` +public static Color getDarkOliveGreen() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF556B2F。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getDarkOrange() {#getDarkOrange--} +``` +public static Color getDarkOrange() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFF8C00。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getDarkOrchid() {#getDarkOrchid--} +``` +public static Color getDarkOrchid() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF9932CC。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getDarkRed() {#getDarkRed--} +``` +public static Color getDarkRed() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF8B0000。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getDarkSalmon() {#getDarkSalmon--} +``` +public static Color getDarkSalmon() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFE9967A。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getDarkSeaGreen() {#getDarkSeaGreen--} +``` +public static Color getDarkSeaGreen() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF8FBC8F。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getDarkSlateBlue() {#getDarkSlateBlue--} +``` +public static Color getDarkSlateBlue() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF483D8B。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getDarkSlateGray() {#getDarkSlateGray--} +``` +public static Color getDarkSlateGray() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF2F4F4F。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getDarkTurquoise() {#getDarkTurquoise--} +``` +public static Color getDarkTurquoise() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF00CED1。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getDarkViolet() {#getDarkViolet--} +``` +public static Color getDarkViolet() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF9400D3。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getDeepPink() {#getDeepPink--} +``` +public static Color getDeepPink() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFF1493。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getDeepSkyBlue() {#getDeepSkyBlue--} +``` +public static Color getDeepSkyBlue() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF00BFFF。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getDimGray() {#getDimGray--} +``` +public static Color getDimGray() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF696969。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getDodgerBlue() {#getDodgerBlue--} +``` +public static Color getDodgerBlue() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF1E90FF。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getFirebrick() {#getFirebrick--} +``` +public static Color getFirebrick() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFB22222。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getFloralWhite() {#getFloralWhite--} +``` +public static Color getFloralWhite() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFFFAF0。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getForestGreen() {#getForestGreen--} +``` +public static Color getForestGreen() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF228B22。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getFuchsia() {#getFuchsia--} +``` +public static Color getFuchsia() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFF00FF。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getGainsboro() {#getGainsboro--} +``` +public static Color getGainsboro() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFDCDCDC。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getGhostWhite() {#getGhostWhite--} +``` +public static Color getGhostWhite() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFF8F8FF。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getGold() {#getGold--} +``` +public static Color getGold() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFFD700。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getGoldenrod() {#getGoldenrod--} +``` +public static Color getGoldenrod() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFDAA520。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getGray() {#getGray--} +``` +public static Color getGray() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF808080。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) strcture representing a system-defined color. `1` +### getGreen() {#getGreen--} +``` +public static Color getGreen() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF008000。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getGreenYellow() {#getGreenYellow--} +``` +public static Color getGreenYellow() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFADFF2F。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getHoneydew() {#getHoneydew--} +``` +public static Color getHoneydew() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFF0FFF0。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getHotPink() {#getHotPink--} +``` +public static Color getHotPink() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFF69B4。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getIndianRed() {#getIndianRed--} +``` +public static Color getIndianRed() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFCD5C5C。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getIndigo() {#getIndigo--} +``` +public static Color getIndigo() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF4B0082。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getIvory() {#getIvory--} +``` +public static Color getIvory() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFFFFF0。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getKhaki() {#getKhaki--} +``` +public static Color getKhaki() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFF0E68C。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getLavender() {#getLavender--} +``` +public static Color getLavender() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFE6E6FA。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getLavenderBlush() {#getLavenderBlush--} +``` +public static Color getLavenderBlush() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFFF0F5。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getLawnGreen() {#getLawnGreen--} +``` +public static Color getLawnGreen() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF7CFC00。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getLemonChiffon() {#getLemonChiffon--} +``` +public static Color getLemonChiffon() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFFFACD。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getLightBlue() {#getLightBlue--} +``` +public static Color getLightBlue() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFADD8E6。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getLightCoral() {#getLightCoral--} +``` +public static Color getLightCoral() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFF08080。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getLightCyan() {#getLightCyan--} +``` +public static Color getLightCyan() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFE0FFFF。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getLightGoldenrodYellow() {#getLightGoldenrodYellow--} +``` +public static Color getLightGoldenrodYellow() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFAFAD2。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getLightGreen() {#getLightGreen--} +``` +public static Color getLightGreen() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF90EE90。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getLightGray() {#getLightGray--} +``` +public static Color getLightGray() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFD3D3D3。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getLightPink() {#getLightPink--} +``` +public static Color getLightPink() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFFB6C1。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getLightSalmon() {#getLightSalmon--} +``` +public static Color getLightSalmon() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFFA07A。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getLightSeaGreen() {#getLightSeaGreen--} +``` +public static Color getLightSeaGreen() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF20B2AA。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getLightSkyBlue() {#getLightSkyBlue--} +``` +public static Color getLightSkyBlue() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF87CEFA。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getLightSlateGray() {#getLightSlateGray--} +``` +public static Color getLightSlateGray() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF778899。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getLightSteelBlue() {#getLightSteelBlue--} +``` +public static Color getLightSteelBlue() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFB0C4DE。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getLightYellow() {#getLightYellow--} +``` +public static Color getLightYellow() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFFFFE0。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getLime() {#getLime--} +``` +public static Color getLime() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF00FF00。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getLimeGreen() {#getLimeGreen--} +``` +public static Color getLimeGreen() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF32CD32。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getLinen() {#getLinen--} +``` +public static Color getLinen() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFAF0E6。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getMagenta() {#getMagenta--} +``` +public static Color getMagenta() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFF00FF。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getMaroon() {#getMaroon--} +``` +public static Color getMaroon() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF800000。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getMediumAquamarine() {#getMediumAquamarine--} +``` +public static Color getMediumAquamarine() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF66CDAA。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getMediumBlue() {#getMediumBlue--} +``` +public static Color getMediumBlue() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF0000CD。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getMediumOrchid() {#getMediumOrchid--} +``` +public static Color getMediumOrchid() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFBA55D3。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getMediumPurple() {#getMediumPurple--} +``` +public static Color getMediumPurple() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF9370DB。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getMediumSeaGreen() {#getMediumSeaGreen--} +``` +public static Color getMediumSeaGreen() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF3CB371。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getMediumSlateBlue() {#getMediumSlateBlue--} +``` +public static Color getMediumSlateBlue() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF7B68EE。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getMediumSpringGreen() {#getMediumSpringGreen--} +``` +public static Color getMediumSpringGreen() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF00FA9A。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getMediumTurquoise() {#getMediumTurquoise--} +``` +public static Color getMediumTurquoise() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF48D1CC。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getMediumVioletRed() {#getMediumVioletRed--} +``` +public static Color getMediumVioletRed() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFC71585。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getMidnightBlue() {#getMidnightBlue--} +``` +public static Color getMidnightBlue() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF191970。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getMintCream() {#getMintCream--} +``` +public static Color getMintCream() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFF5FFFA。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getMistyRose() {#getMistyRose--} +``` +public static Color getMistyRose() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFFE4E1。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getMoccasin() {#getMoccasin--} +``` +public static Color getMoccasin() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFFE4B5。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getNavajoWhite() {#getNavajoWhite--} +``` +public static Color getNavajoWhite() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFFDEAD。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getNavy() {#getNavy--} +``` +public static Color getNavy() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF000080。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getOldLace() {#getOldLace--} +``` +public static Color getOldLace() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFDF5E6。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getOlive() {#getOlive--} +``` +public static Color getOlive() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF808000。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getOliveDrab() {#getOliveDrab--} +``` +public static Color getOliveDrab() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF6B8E23。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getOrange() {#getOrange--} +``` +public static Color getOrange() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFFA500。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getOrangeRed() {#getOrangeRed--} +``` +public static Color getOrangeRed() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFF4500。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getOrchid() {#getOrchid--} +``` +public static Color getOrchid() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFDA70D6。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getPaleGoldenrod() {#getPaleGoldenrod--} +``` +public static Color getPaleGoldenrod() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFEEE8AA。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getPaleGreen() {#getPaleGreen--} +``` +public static Color getPaleGreen() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF98FB98。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getPaleTurquoise() {#getPaleTurquoise--} +``` +public static Color getPaleTurquoise() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFAFEEEE。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getPaleVioletRed() {#getPaleVioletRed--} +``` +public static Color getPaleVioletRed() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFDB7093。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getPapayaWhip() {#getPapayaWhip--} +``` +public static Color getPapayaWhip() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFFEFD5。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getPeachPuff() {#getPeachPuff--} +``` +public static Color getPeachPuff() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFFDAB9。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getPeru() {#getPeru--} +``` +public static Color getPeru() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFCD853F。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getPink() {#getPink--} +``` +public static Color getPink() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFFC0CB。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getPlum() {#getPlum--} +``` +public static Color getPlum() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFDDA0DD。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getPowderBlue() {#getPowderBlue--} +``` +public static Color getPowderBlue() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFB0E0E6。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getPurple() {#getPurple--} +``` +public static Color getPurple() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF800080。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getRed() {#getRed--} +``` +public static Color getRed() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFF0000。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getRosyBrown() {#getRosyBrown--} +``` +public static Color getRosyBrown() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFBC8F8F。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getRoyalBlue() {#getRoyalBlue--} +``` +public static Color getRoyalBlue() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF4169E1。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getSaddleBrown() {#getSaddleBrown--} +``` +public static Color getSaddleBrown() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF8B4513。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getSalmon() {#getSalmon--} +``` +public static Color getSalmon() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFA8072。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getSandyBrown() {#getSandyBrown--} +``` +public static Color getSandyBrown() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFF4A460。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getSeaGreen() {#getSeaGreen--} +``` +public static Color getSeaGreen() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF2E8B57。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getSeaShell() {#getSeaShell--} +``` +public static Color getSeaShell() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFFF5EE。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getSienna() {#getSienna--} +``` +public static Color getSienna() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFA0522D。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getSilver() {#getSilver--} +``` +public static Color getSilver() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFC0C0C0。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getSkyBlue() {#getSkyBlue--} +``` +public static Color getSkyBlue() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF87CEEB。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getSlateBlue() {#getSlateBlue--} +``` +public static Color getSlateBlue() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF6A5ACD。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getSlateGray() {#getSlateGray--} +``` +public static Color getSlateGray() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF708090。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getSnow() {#getSnow--} +``` +public static Color getSnow() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FFFFFAFA。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getSpringGreen() {#getSpringGreen--} +``` +public static Color getSpringGreen() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF00FF7F。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getSteelBlue() {#getSteelBlue--} +``` +public static Color getSteelBlue() +``` + + +获取系统定义的颜色,其 ARGB 值为 \#FF4682B4。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getTan() {#getTan--} +``` +public static Color getTan() +``` + + +获取具有 ARGB 值 \#FFD2B48C 的系统定义颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getTeal() {#getTeal--} +``` +public static Color getTeal() +``` + + +获取具有 ARGB 值 \#FF008080 的系统定义颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getThistle() {#getThistle--} +``` +public static Color getThistle() +``` + + +获取具有 ARGB 值 \#FFD8BFD8 的系统定义颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getTomato() {#getTomato--} +``` +public static Color getTomato() +``` + + +获取具有 ARGB 值 \#FFFF6347 的系统定义颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getTurquoise() {#getTurquoise--} +``` +public static Color getTurquoise() +``` + + +获取具有 ARGB 值 \#FF40E0D0 的系统定义颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getViolet() {#getViolet--} +``` +public static Color getViolet() +``` + + +获取具有 ARGB 值 \#FFEE82EE 的系统定义颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getWheat() {#getWheat--} +``` +public static Color getWheat() +``` + + +获取具有 ARGB 值 \#FFF5DEB3 的系统定义颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getWhite() {#getWhite--} +``` +public static Color getWhite() +``` + + +获取具有 ARGB 值 \#FFFFFFFF 的系统定义颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getWhiteSmoke() {#getWhiteSmoke--} +``` +public static Color getWhiteSmoke() +``` + + +获取具有 ARGB 值 \#FFF5F5F5 的系统定义颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getYellow() {#getYellow--} +``` +public static Color getYellow() +``` + + +获取具有 ARGB 值 \#FFFFFF00 的系统定义颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getYellowGreen() {#getYellowGreen--} +``` +public static Color getYellowGreen() +``` + + +获取具有 ARGB 值 \#FF9ACD32 的系统定义颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - A [Color](../../com.aspose.drawing/color) representing a system-defined color. `1` +### getA() {#getA--} +``` +public final int getA() +``` + + +获取此 [Color](../../com.aspose.drawing/color) 结构的 alpha 组件值。 + +**Returns:** +int - 此 [Color](../../com.aspose.drawing/color) 的 alpha 分量值。 +### getR() {#getR--} +``` +public final int getR() +``` + + +获取此 [Color](../../com.aspose.drawing/color) 结构的红色分量值。 + +**Returns:** +int - 此 [Color](../../com.aspose.drawing/color) 的 red 分量值。 +### getG() {#getG--} +``` +public final int getG() +``` + + +获取此 [Color](../../com.aspose.drawing/color) 结构的绿色分量值。 + +**Returns:** +int - 此 [Color](../../com.aspose.drawing/color) 的 green 分量值。 +### getB() {#getB--} +``` +public final int getB() +``` + + +获取此 [Color](../../com.aspose.drawing/color) 结构的蓝色分量值。 + +**Returns:** +int - 此 [Color](../../com.aspose.drawing/color) 的 blue 分量值。 +### isKnownColor() {#isKnownColor--} +``` +public final boolean isKnownColor() +``` + + +获取一个值,指示此 [Color](../../com.aspose.drawing/color) 结构是否为预定义颜色。预定义颜色由 [KnownColor](../../com.aspose.drawing/knowncolor) 枚举的成员表示。 + +值:如果此 [Color](../../com.aspose.drawing/color) 是通过使用 `M:Color.FromName(System.String)` 方法或 `M:Color.FromKnownColor(System.Drawing.KnownColor)` 方法从预定义颜色创建的,则为 `true`;否则为 `false`。 + +**Returns:** +布尔型 +### isEmpty() {#isEmpty--} +``` +public final boolean isEmpty() +``` + + +获取一个值,指示此 [Color](../../com.aspose.drawing/color) 结构是否未初始化。 + +值:如果此颜色未初始化,则此属性返回 true;否则返回 false。 + +**Returns:** +布尔型 +### isNamedColor() {#isNamedColor--} +``` +public final boolean isNamedColor() +``` + + +获取一个值,指示此 [Color](../../com.aspose.drawing/color) 结构是命名颜色还是 [KnownColor](../../com.aspose.drawing/knowncolor) 枚举的成员。 + +值:如果此 [Color](../../com.aspose.drawing/color) 是通过使用 `M:Color.FromName(System.String)` 方法或 `M:Color.FromKnownColor(System.Drawing.KnownColor)` 方法创建的,则为 `true`;否则为 `false`。 + +**Returns:** +布尔型 +### isSystemColor() {#isSystemColor--} +``` +public final boolean isSystemColor() +``` + + +获取一个值,指示此 [Color](../../com.aspose.drawing/color) 结构是否为系统颜色。系统颜色是用于 Windows 显示元素的颜色。系统颜色由 [KnownColor](../../com.aspose.drawing/knowncolor) 枚举的成员表示。 + +值:如果此 [Color](../../com.aspose.drawing/color) 是通过使用 `M:Color.FromName(System.String)` 方法或 `M:Color.FromKnownColor(System.Drawing.KnownColor)` 方法从系统颜色创建的,则为 `true`;否则为 `false`。 + +**Returns:** +布尔型 +### getName() {#getName--} +``` +public final String getName() +``` + + +获取此 [Color](../../com.aspose.drawing/color) 的名称。 + +**Returns:** +java.lang.String +### fromArgb(int argb) {#fromArgb-int-} +``` +public static Color fromArgb(int argb) +``` + + +从 32 位 ARGB 值创建一个 [Color](../../com.aspose.drawing/color) 结构。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| argb | int | 指定 32 位 ARGB 值的数值。 | + +**Returns:** +[Color](../../com.aspose.drawing/color) - The [Color](../../com.aspose.drawing/color) structure that this method creates. +### fromArgb(int alpha, Color baseColor) {#fromArgb-int-com.aspose.drawing.Color-} +``` +public static Color fromArgb(int alpha, Color baseColor) +``` + + +从指定的 [Color](../../com.aspose.drawing/color) 结构创建一个 [Color](../../com.aspose.drawing/color) 结构,但使用新的指定 alpha 值。虽然此方法允许为 alpha 值传入 32 位数值,但该值仅限于 8 位。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| alpha | int | 新 [Color](../../com.aspose.drawing/color) 的 alpha 值。有效值范围为 0 到 255。 | +| baseColor | [Color](../../com.aspose.drawing/color) | 用于创建新 [Color](../../com.aspose.drawing/color) 的 [Color](../../com.aspose.drawing/color) 来源。 | + +**Returns:** +[Color](../../com.aspose.drawing/color) - The [Color](../../com.aspose.drawing/color) that this method creates. +### fromArgb(int red, int green, int blue) {#fromArgb-int-int-int-} +``` +public static Color fromArgb(int red, int green, int blue) +``` + + +从指定的 8 位颜色值(红、绿、蓝)创建一个 [Color](../../com.aspose.drawing/color) 结构。Alpha 值隐式为 255(完全不透明)。虽然此方法允许为每个颜色分量传入 32 位值,但每个分量的值仅限于 8 位。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| red | int | 新 [Color](../../com.aspose.drawing/color) 的红色分量值。有效值范围为 0 到 255。 | +| green | int | 新 [Color](../../com.aspose.drawing/color) 的绿色分量值。有效值范围为 0 到 255。 | +| blue | int | 新 [Color](../../com.aspose.drawing/color) 的蓝色分量值。有效值范围为 0 到 255。 | + +**Returns:** +[Color](../../com.aspose.drawing/color) - The [Color](../../com.aspose.drawing/color) that this method creates. +### fromArgb(int alpha, int red, int green, int blue) {#fromArgb-int-int-int-int-} +``` +public static Color fromArgb(int alpha, int red, int green, int blue) +``` + + +根据四个 ARGB 分量(alpha、红、绿、蓝)的值创建一个 Color 结构。虽然此方法允许为每个分量传入 32 位值,但每个分量的值仅限于 8 位。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| alpha | int | alpha 分量。有效值范围为 0 到 255。 | +| red | int | 红色分量。有效值范围为 0 到 255。 | +| green | int | 绿色分量。有效值范围为 0 到 255。 | +| blue | int | 蓝色分量。有效值范围为 0 到 255。 | + +**Returns:** +[Color](../../com.aspose.drawing/color) - The Color that this method creates. +### fromKnownColor(int color) {#fromKnownColor-int-} +``` +public static Color fromKnownColor(int color) +``` + + +从指定的预定义颜色创建一个 [Color](../../com.aspose.drawing/color) 结构。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| color | int | [KnownColor](../../com.aspose.drawing/knowncolor) 枚举的一个元素。 | + +**Returns:** +[Color](../../com.aspose.drawing/color) - The [Color](../../com.aspose.drawing/color) that this method creates. +### fromName(String name) {#fromName-java.lang.String-} +``` +public static Color fromName(String name) +``` + + +从指定的预定义颜色名称创建一个 [Color](../../com.aspose.drawing/color) 结构。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| name | java.lang.String | 一个预定义颜色的名称字符串。有效名称与 [KnownColor](../../com.aspose.drawing/knowncolor) 枚举元素的名称相同。 | + +**Returns:** +[Color](../../com.aspose.drawing/color) - The [Color](../../com.aspose.drawing/color) that this method creates. +### op_Equality(Color left, Color right) {#op-Equality-com.aspose.drawing.Color-com.aspose.drawing.Color-} +``` +public static boolean op_Equality(Color left, Color right) +``` + + +测试两个指定的 [Color](../../com.aspose.drawing/color) 结构是否相等。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| left | [Color](../../com.aspose.drawing/color) | 等号运算符左侧的 [Color](../../com.aspose.drawing/color)。 | +| right | [Color](../../com.aspose.drawing/color) | 等号运算符右侧的 [Color](../../com.aspose.drawing/color)。 | + +**Returns:** +布尔值 - 如果两个 [Color](../../com.aspose.drawing/color) 结构相等则为 `true`;否则为 `false`。 +### op_Inequality(Color left, Color right) {#op-Inequality-com.aspose.drawing.Color-com.aspose.drawing.Color-} +``` +public static boolean op_Inequality(Color left, Color right) +``` + + +测试两个指定的 [Color](../../com.aspose.drawing/color) 结构是否不同。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| left | [Color](../../com.aspose.drawing/color) | 不等号运算符左侧的 [Color](../../com.aspose.drawing/color)。 | +| right | [Color](../../com.aspose.drawing/color) | 不等号运算符右侧的 [Color](../../com.aspose.drawing/color)。 | + +**Returns:** +布尔值 - 如果两个 [Color](../../com.aspose.drawing/color) 结构不同则为 `true`;否则为 `false`。 +### equals(Color other) {#equals-com.aspose.drawing.Color-} +``` +public final boolean equals(Color other) +``` + + +测试指定的颜色是否等于此颜色。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| other | [Color](../../com.aspose.drawing/color) | 要测试的颜色。 | + +**Returns:** +布尔值 - 如果指定的颜色等价于此颜色则为 ``;否则为 ``。 +### equals(Object obj) {#equals-java.lang.Object-} +``` +public boolean equals(Object obj) +``` + + +测试指定的对象是否等于此颜色。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| obj | java.lang.Object | 要测试的对象。 | + +**Returns:** +布尔值 - 如果指定的对象等价于此颜色则为 ``;否则为 ``。 +### toArgb() {#toArgb--} +``` +public final int toArgb() +``` + + +获取此 Color 结构的 32 位 ARGB 值。 + +**Returns:** +int - 此 Color 的 32 位 ARGB 值。 +### getBrightness() {#getBrightness--} +``` +public final float getBrightness() +``` + + +获取此 [Color](../../com.aspose.drawing/color) 结构的色相-饱和度-亮度 (HSB) 亮度值。 + +**Returns:** +float - 此 [Color](../../com.aspose.drawing/color) 的亮度。亮度范围从 0.0 到 1.0,其中 0.0 表示黑色,1.0 表示白色。 +### getHue() {#getHue--} +``` +public final float getHue() +``` + + +获取此 [Color](../../com.aspose.drawing/color) 结构的色相-饱和度-亮度 (HSB) 色相值(以度为单位)。 + +**Returns:** +float - 此 java.awt.Color 的色相(以度为单位)。色相以度数测量,范围从 0.0 到 360.0,位于 HSB 颜色空间中。 +### getSaturation() {#getSaturation--} +``` +public final float getSaturation() +``` + + +获取此 [Color](../../com.aspose.drawing/color) 结构的色相-饱和度-亮度 (HSB) 饱和度值。 + +**Returns:** +float - 此 [Color](../../com.aspose.drawing/color) 的饱和度。饱和度范围从 0.0 到 1.0,其中 0.0 为灰度,1.0 为最高饱和度。 +### toKnownColor() {#toKnownColor--} +``` +public final int toKnownColor() +``` + + +获取此 [Color](../../com.aspose.drawing/color) 结构的 [KnownColor](../../com.aspose.drawing/knowncolor) 值。 + +**Returns:** +int - 如果 [Color](../../com.aspose.drawing/color) 是通过使用 `M:Color.FromName(System.String)` 方法或 `M:Color.FromKnownColor(KnownColor)` 方法从预定义颜色创建的,则为 [KnownColor](../../com.aspose.drawing/knowncolor) 枚举的一个元素;否则为 0。 +### toString() {#toString--} +``` +public String toString() +``` + + +返回表示此实例的字符串。 + +**Returns:** +java.lang.String - 表示此实例的字符串。 +### hashCode() {#hashCode--} +``` +public int hashCode() +``` + + +返回此实例的哈希码。 + +**Returns:** +int - 此实例的哈希码,适用于哈希算法和哈希表等数据结构。 +### isEquals(Color obj1, Color obj2) {#isEquals-com.aspose.drawing.Color-com.aspose.drawing.Color-} +``` +public static boolean isEquals(Color obj1, Color obj2) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| obj1 | [Color](../../com.aspose.drawing/color) | | +| obj2 | [Color](../../com.aspose.drawing/color) | | + +**Returns:** +布尔型 +### getEmpty() {#getEmpty--} +``` +public static Color getEmpty() +``` + + + + +**Returns:** +[Color](../../com.aspose.drawing/color) +### CloneTo(Color that) {#CloneTo-com.aspose.drawing.Color-} +``` +public void CloneTo(Color that) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| that | [Color](../../com.aspose.drawing/color) | | + +### Clone() {#Clone--} +``` +public Color Clone() +``` + + + + +**Returns:** +[Color](../../com.aspose.drawing/color) diff --git a/chinese/java/com.aspose.drawing/colorconverter/_index.md b/chinese/java/com.aspose.drawing/colorconverter/_index.md new file mode 100644 index 000000000..57a2daf94 --- /dev/null +++ b/chinese/java/com.aspose.drawing/colorconverter/_index.md @@ -0,0 +1,55 @@ +--- +title: ColorConverter +second_title: Aspose.Drawing for Java API 参考 +description: 将颜色从一种数据类型转换为另一种数据类型。 +type: docs +weight: 15 +url: /zh/java/com.aspose.drawing/colorconverter/ +--- +**Inheritance:** +java.lang.Object +``` +public class ColorConverter +``` + +将颜色从一种数据类型转换为另一种数据类型。 + +-------------------- + +Aspose.Drawing 直接访问此类以简化操作。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [ColorConverter()](#ColorConverter--) | | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [convertFrom(Locale culture, Object value)](#convertFrom-java.util.Locale-java.lang.Object-) | 从...转换。 | +### ColorConverter() {#ColorConverter--} +``` +public ColorConverter() +``` + + +### convertFrom(Locale culture, Object value) {#convertFrom-java.util.Locale-java.lang.Object-} +``` +public static Object convertFrom(Locale culture, Object value) +``` + + +从...转换。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 文化 | java.util.Locale | 该文化。 | +| | value | java.lang.Object | 该值。 | + +-------------------- + +方法已简化.. | + +**Returns:** +java.lang.Object - 返回转换后的颜色。 diff --git a/chinese/java/com.aspose.drawing/colortranslator/_index.md b/chinese/java/com.aspose.drawing/colortranslator/_index.md new file mode 100644 index 000000000..3bd6c8ebc --- /dev/null +++ b/chinese/java/com.aspose.drawing/colortranslator/_index.md @@ -0,0 +1,126 @@ +--- +title: ColorTranslator +second_title: Aspose.Drawing for Java API 参考 +description: 在 GDI 结构之间转换颜色。 +type: docs +weight: 16 +url: /zh/java/com.aspose.drawing/colortranslator/ +--- +**Inheritance:** +java.lang.Object +``` +public final class ColorTranslator +``` + +在 GDI+ [Color](../../com.aspose.drawing/color) 结构之间转换颜色。此类不可被继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [ColorTranslator()](#ColorTranslator--) | | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [fromHtml(String htmlColor)](#fromHtml-java.lang.String-) | 将 HTML 颜色表示转换为 GDI+ [Color](../../com.aspose.drawing/color) 结构。 | +| [toHtml(Color c)](#toHtml-com.aspose.drawing.Color-) | 将指定的 [Color](../../com.aspose.drawing/color) 结构转换为 HTML 字符串颜色表示。 | +| [fromWin32(int win32Color)](#fromWin32-int-) | 将 Windows 颜色值转换为 GDI+ [Color](../../com.aspose.drawing/color) 结构。 | +| [fromOle(int oleColor)](#fromOle-int-) | 将 OLE 颜色值转换为 GDI+ [Color](../../com.aspose.drawing/color) 结构。 | +| [toWin32(Color c)](#toWin32-com.aspose.drawing.Color-) | 将 [Color](../../com.aspose.drawing/color) 结构转换为 Win32 颜色表示。 | +| [toOle(Color c)](#toOle-com.aspose.drawing.Color-) | 将 [Color](../../com.aspose.drawing/color) 结构转换为 OLE 颜色表示。 | +### ColorTranslator() {#ColorTranslator--} +``` +public ColorTranslator() +``` + + +### fromHtml(String htmlColor) {#fromHtml-java.lang.String-} +``` +public static Color fromHtml(String htmlColor) +``` + + +将 HTML 颜色表示转换为 GDI+ [Color](../../com.aspose.drawing/color) 结构。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| htmlColor | java.lang.String | 要转换的 Html 颜色的字符串表示形式。 | + +**Returns:** +[Color](../../com.aspose.drawing/color) - The [Color](../../com.aspose.drawing/color) structure that represents the translated HTML color or `Empty` if htmlColor is null. +### toHtml(Color c) {#toHtml-com.aspose.drawing.Color-} +``` +public static String toHtml(Color c) +``` + + +将指定的 [Color](../../com.aspose.drawing/color) 结构转换为 HTML 字符串颜色表示。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| c | [Color](../../com.aspose.drawing/color) | 要翻译的 [Color](../../com.aspose.drawing/color) 结构。 | + +**Returns:** +java.lang.String - 表示 HTML 颜色的字符串。 +### fromWin32(int win32Color) {#fromWin32-int-} +``` +public static Color fromWin32(int win32Color) +``` + + +将 Windows 颜色值转换为 GDI+ [Color](../../com.aspose.drawing/color) 结构。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| win32Color | int | 要翻译的 Windows 颜色。 | + +**Returns:** +[Color](../../com.aspose.drawing/color) - The [Color](../../com.aspose.drawing/color) structure that represents the translated Windows color. +### fromOle(int oleColor) {#fromOle-int-} +``` +public static Color fromOle(int oleColor) +``` + + +将 OLE 颜色值转换为 GDI+ [Color](../../com.aspose.drawing/color) 结构。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| oleColor | int | 要翻译的 OLE 颜色。 | + +**Returns:** +[Color](../../com.aspose.drawing/color) - The [Color](../../com.aspose.drawing/color) structure that represents the translated OLE color. +### toWin32(Color c) {#toWin32-com.aspose.drawing.Color-} +``` +public static int toWin32(Color c) +``` + + +将 [Color](../../com.aspose.drawing/color) 结构转换为 Win32 颜色表示。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| c | [Color](../../com.aspose.drawing/color) | 要转换的 [Color](../../com.aspose.drawing/color) 结构。 | + +**Returns:** +int - 表示 Win32 颜色格式的值。 +### toOle(Color c) {#toOle-com.aspose.drawing.Color-} +``` +public static int toOle(Color c) +``` + + +将 [Color](../../com.aspose.drawing/color) 结构转换为 OLE 颜色表示。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| c | [Color](../../com.aspose.drawing/color) | 要转换的 [Color](../../com.aspose.drawing/color) 结构。 | + +**Returns:** +int - 表示 OLE 颜色格式的值。 diff --git a/chinese/java/com.aspose.drawing/contentalignment/_index.md b/chinese/java/com.aspose.drawing/contentalignment/_index.md new file mode 100644 index 000000000..587c77982 --- /dev/null +++ b/chinese/java/com.aspose.drawing/contentalignment/_index.md @@ -0,0 +1,100 @@ +--- +title: ContentAlignment +second_title: Aspose.Drawing for Java API 参考 +description: 指定内容在绘图表面的对齐方式。 +type: docs +weight: 17 +url: /zh/java/com.aspose.drawing/contentalignment/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class ContentAlignment extends System.Enum +``` + +指定内容在绘图表面的对齐方式。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [TopLeft](#TopLeft) | 内容在垂直方向上对齐到顶部,水平方向上对齐到左侧。 | +| [TopCenter](#TopCenter) | 内容在垂直方向上对齐到顶部,水平方向上居中对齐。 | +| [TopRight](#TopRight) | 内容在垂直方向上对齐到顶部,水平方向上对齐到右侧。 | +| [MiddleLeft](#MiddleLeft) | 内容在垂直方向上居中对齐,水平方向上对齐到左侧。 | +| [MiddleCenter](#MiddleCenter) | 内容在垂直方向上居中对齐,水平方向上居中对齐。 | +| [MiddleRight](#MiddleRight) | 内容在垂直方向上居中对齐,水平方向上对齐到右侧。 | +| [BottomLeft](#BottomLeft) | 内容在垂直方向上对齐到底部,水平方向上对齐到左侧。 | +| [BottomCenter](#BottomCenter) | 内容在垂直方向上对齐到底部,水平方向上居中对齐。 | +| [BottomRight](#BottomRight) | 内容在垂直方向上对齐到底部,水平方向上对齐到右侧。 | +### TopLeft {#TopLeft} +``` +public static final int TopLeft +``` + + +内容在垂直方向上对齐到顶部,水平方向上对齐到左侧。 + +### TopCenter {#TopCenter} +``` +public static final int TopCenter +``` + + +内容在垂直方向上对齐到顶部,水平方向上居中对齐。 + +### TopRight {#TopRight} +``` +public static final int TopRight +``` + + +内容在垂直方向上对齐到顶部,水平方向上对齐到右侧。 + +### MiddleLeft {#MiddleLeft} +``` +public static final int MiddleLeft +``` + + +内容在垂直方向上居中对齐,水平方向上对齐到左侧。 + +### MiddleCenter {#MiddleCenter} +``` +public static final int MiddleCenter +``` + + +内容在垂直方向上居中对齐,水平方向上居中对齐。 + +### MiddleRight {#MiddleRight} +``` +public static final int MiddleRight +``` + + +内容在垂直方向上居中对齐,水平方向上对齐到右侧。 + +### BottomLeft {#BottomLeft} +``` +public static final int BottomLeft +``` + + +内容在垂直方向上对齐到底部,水平方向上对齐到左侧。 + +### BottomCenter {#BottomCenter} +``` +public static final int BottomCenter +``` + + +内容在垂直方向上对齐到底部,水平方向上居中对齐。 + +### BottomRight {#BottomRight} +``` +public static final int BottomRight +``` + + +内容在垂直方向上对齐到底部,水平方向上对齐到右侧。 + diff --git a/chinese/java/com.aspose.drawing/copypixeloperation/_index.md b/chinese/java/com.aspose.drawing/copypixeloperation/_index.md new file mode 100644 index 000000000..945a6e903 --- /dev/null +++ b/chinese/java/com.aspose.drawing/copypixeloperation/_index.md @@ -0,0 +1,172 @@ +--- +title: CopyPixelOperation +second_title: Aspose.Drawing for Java API 参考 +description: 确定在复制像素操作中,源颜色如何与目标颜色合并以产生最终颜色。 +type: docs +weight: 18 +url: /zh/java/com.aspose.drawing/copypixeloperation/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class CopyPixelOperation extends System.Enum +``` + +确定在复制像素操作中,源颜色如何与目标颜色合并以产生最终颜色。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [NoMirrorBitmap](#NoMirrorBitmap) | 位图未被镜像。 | +| [Blackness](#Blackness) | 目标区域使用物理调色板中索引 0 对应的颜色进行填充。 | +| [NotSourceErase](#NotSourceErase) | 源颜色和目标颜色使用布尔 `OR` 运算符进行组合,然后对结果颜色进行反转。 | +| [NotSourceCopy](#NotSourceCopy) | 已反转的源区域被复制到目标。 | +| [SourceErase](#SourceErase) | 目标区域的已反转颜色使用布尔 `AND` 运算符与源区域的颜色进行组合。 | +| [DestinationInvert](#DestinationInvert) | 目标区域被反转。 | +| [PatInvert](#PatInvert) | 在目标设备上下文中当前选中的画笔颜色使用布尔 `XOR` 运算符与目标颜色进行组合。 | +| [SourceInvert](#SourceInvert) | 源区域和目标区域的颜色使用布尔 `XOR` 运算符进行组合。 | +| [SourceAnd](#SourceAnd) | 源区域和目标区域的颜色使用布尔 `AND` 运算符进行组合。 | +| [MergePaint](#MergePaint) | 已反转的源区域颜色使用布尔 `OR` 运算符合并到目标区域的颜色中。 | +| [MergeCopy](#MergeCopy) | 源区域的颜色使用布尔 `AND` 运算符与目标设备上下文中选定的画笔颜色合并。 | +| [SourceCopy](#SourceCopy) | 源区域直接复制到目标区域。 | +| [SourcePaint](#SourcePaint) | 源区域和目标区域的颜色使用布尔 `OR` 运算符进行组合。 | +| [PatCopy](#PatCopy) | 在目标设备上下文中当前选中的画笔被复制到目标位图。 | +| [PatPaint](#PatPaint) | 在目标设备上下文中当前选中的画笔颜色使用布尔 `OR` 运算符与已反转的源区域颜色进行组合。 | +| [Whiteness](#Whiteness) | 目标区域使用物理调色板中索引 1 对应的颜色进行填充。 | +| [CaptureBlt](#CaptureBlt) | 位于您窗口之上层叠的窗口会包含在生成的图像中。 | +### NoMirrorBitmap {#NoMirrorBitmap} +``` +public static final int NoMirrorBitmap +``` + + +位图未被镜像。 + +### Blackness {#Blackness} +``` +public static final int Blackness +``` + + +目标区域使用物理调色板中索引 0 对应的颜色进行填充。(此颜色为默认物理调色板的黑色。) + +### NotSourceErase {#NotSourceErase} +``` +public static final int NotSourceErase +``` + + +源颜色和目标颜色使用布尔 `OR` 运算符进行组合,然后对结果颜色进行反转。 + +### NotSourceCopy {#NotSourceCopy} +``` +public static final int NotSourceCopy +``` + + +已反转的源区域被复制到目标。 + +### SourceErase {#SourceErase} +``` +public static final int SourceErase +``` + + +目标区域的已反转颜色使用布尔 `AND` 运算符与源区域的颜色进行组合。 + +### DestinationInvert {#DestinationInvert} +``` +public static final int DestinationInvert +``` + + +目标区域被反转。 + +### PatInvert {#PatInvert} +``` +public static final int PatInvert +``` + + +在目标设备上下文中当前选中的画笔颜色使用布尔 `XOR` 运算符与目标颜色进行组合。 + +### SourceInvert {#SourceInvert} +``` +public static final int SourceInvert +``` + + +源区域和目标区域的颜色使用布尔 `XOR` 运算符进行组合。 + +### SourceAnd {#SourceAnd} +``` +public static final int SourceAnd +``` + + +源区域和目标区域的颜色使用布尔 `AND` 运算符进行组合。 + +### MergePaint {#MergePaint} +``` +public static final int MergePaint +``` + + +已反转的源区域颜色使用布尔 `OR` 运算符合并到目标区域的颜色中。 + +### MergeCopy {#MergeCopy} +``` +public static final int MergeCopy +``` + + +源区域的颜色使用布尔 `AND` 运算符与目标设备上下文中选定的画笔颜色合并。 + +### SourceCopy {#SourceCopy} +``` +public static final int SourceCopy +``` + + +源区域直接复制到目标区域。 + +### SourcePaint {#SourcePaint} +``` +public static final int SourcePaint +``` + + +源区域和目标区域的颜色使用布尔 `OR` 运算符进行组合。 + +### PatCopy {#PatCopy} +``` +public static final int PatCopy +``` + + +在目标设备上下文中当前选中的画笔被复制到目标位图。 + +### PatPaint {#PatPaint} +``` +public static final int PatPaint +``` + + +当前在目标设备上下文中选定的画笔颜色与使用布尔 `OR` 运算符的反转源区域颜色相结合。此操作的结果再使用布尔 `OR` 运算符与目标区域的颜色相结合。 + +### Whiteness {#Whiteness} +``` +public static final int Whiteness +``` + + +目标区域通过使用物理调色板中索引 1 对应的颜色进行填充。(默认物理调色板中此颜色为白色。) + +### CaptureBlt {#CaptureBlt} +``` +public static final int CaptureBlt +``` + + +位于您窗口之上层叠的窗口会包含在生成的图像中。默认情况下,图像仅包含您的窗口。请注意,这通常不能用于打印设备上下文。 + diff --git a/chinese/java/com.aspose.drawing/drawimageabort/_index.md b/chinese/java/com.aspose.drawing/drawimageabort/_index.md new file mode 100644 index 000000000..73e21dcfb --- /dev/null +++ b/chinese/java/com.aspose.drawing/drawimageabort/_index.md @@ -0,0 +1,78 @@ +--- +title: Graphics.DrawImageAbort +second_title: Aspose.Drawing for Java API 参考 +description: +type: docs +weight: 10 +url: /zh/java/com.aspose.drawing/graphics.drawimageabort/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.Delegate, com.aspose.ms.System.MulticastDelegate +``` +public abstract static class Graphics.DrawImageAbort extends System.MulticastDelegate +``` +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [DrawImageAbort()](#DrawImageAbort--) | | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [invoke(System.IntPtr callbackdata)](#invoke-com.aspose.ms.System.IntPtr-) | 提供一个回调方法,用于决定何时应提前取消 `DrawImage` 方法的执行并停止绘制图像。 | +| [beginInvoke(System.IntPtr callbackdata, System.AsyncCallback callback, Object state)](#beginInvoke-com.aspose.ms.System.IntPtr-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | | +| [endInvoke(System.IAsyncResult result)](#endInvoke-com.aspose.ms.System.IAsyncResult-) | | +### DrawImageAbort() {#DrawImageAbort--} +``` +public DrawImageAbort() +``` + + +### invoke(System.IntPtr callbackdata) {#invoke-com.aspose.ms.System.IntPtr-} +``` +public abstract boolean invoke(System.IntPtr callbackdata) +``` + + +提供一个回调方法,用于决定何时应提前取消 `DrawImage` 方法的执行并停止绘制图像。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 回调数据 | com.aspose.ms.System.IntPtr | 内部指针,用于指定回调方法的数据。并非所有 `DrawImage` 重载都会传递此参数。您可以通过检查值 `System.IntPtr.Zero` 来判断其是否缺失。 | + +**Returns:** +布尔值 - 如果该方法决定 `DrawImage` 方法应提前停止执行,则返回 true;否则返回 false,表示 `DrawImage` 方法应继续执行。 +### beginInvoke(System.IntPtr callbackdata, System.AsyncCallback callback, Object state) {#beginInvoke-com.aspose.ms.System.IntPtr-com.aspose.ms.System.AsyncCallback-java.lang.Object-} +``` +public final System.IAsyncResult beginInvoke(System.IntPtr callbackdata, System.AsyncCallback callback, Object state) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 回调数据 | com.aspose.ms.System.IntPtr | | +| callback | com.aspose.ms.System.AsyncCallback | | +| state | java.lang.Object | | + +**Returns:** +com.aspose.ms.System.IAsyncResult +### endInvoke(System.IAsyncResult result) {#endInvoke-com.aspose.ms.System.IAsyncResult-} +``` +public final boolean endInvoke(System.IAsyncResult result) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| result | com.aspose.ms.System.IAsyncResult | | + +**Returns:** +布尔型 diff --git a/chinese/java/com.aspose.drawing/drawingsettings/_index.md b/chinese/java/com.aspose.drawing/drawingsettings/_index.md new file mode 100644 index 000000000..e7a418024 --- /dev/null +++ b/chinese/java/com.aspose.drawing/drawingsettings/_index.md @@ -0,0 +1,63 @@ +--- +title: DrawingSettings +second_title: Aspose.Drawing for Java API 参考 +description: 允许在使用尚未完全实现的某些功能时调整绘图库的行为。 +type: docs +weight: 19 +url: /zh/java/com.aspose.drawing/drawingsettings/ +--- +**Inheritance:** +java.lang.Object +``` +public final class DrawingSettings +``` + +允许在使用尚未完全实现的某些功能时调整绘图库的行为。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [DrawingSettings()](#DrawingSettings--) | | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getStrictMode()](#getStrictMode--) | 获取一个值,指示是否启用了对未实现功能的更严格捕获。 | +| [setStrictMode(boolean value)](#setStrictMode-boolean-) | 设置一个值,指示是否启用了对未实现功能的更严格捕获。 | +### DrawingSettings() {#DrawingSettings--} +``` +public DrawingSettings() +``` + + +### getStrictMode() {#getStrictMode--} +``` +public static boolean getStrictMode() +``` + + +获取一个值,指示是否启用了对未实现功能的更严格捕获。 + +-------------------- + +如果设置为 true,则在使用当前实现中无法正确工作的功能/参数时,库将抛出 NotImplementedException。如果设置为 false,某些参数可能会被忽略,以使用户程序有机会运行。在这种情况下,绘图结果可能与 GDI+ 的比较有所不同。 + +**Returns:** +boolean - 一个值,指示是否启用了对未实现功能的更严格捕获。 +### setStrictMode(boolean value) {#setStrictMode-boolean-} +``` +public static void setStrictMode(boolean value) +``` + + +设置一个值,指示是否启用了对未实现功能的更严格捕获。 + +-------------------- + +如果设置为 true,则在使用当前实现中无法正确工作的功能/参数时,库将抛出 NotImplementedException。如果设置为 false,某些参数可能会被忽略,以使用户程序有机会运行。在这种情况下,绘图结果可能与 GDI+ 的比较有所不同。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | 布尔型 | 一个值,指示是否启用了对未实现功能的更严格捕获。 | + diff --git a/chinese/java/com.aspose.drawing/enumeratemetafileproc/_index.md b/chinese/java/com.aspose.drawing/enumeratemetafileproc/_index.md new file mode 100644 index 000000000..339d98c5e --- /dev/null +++ b/chinese/java/com.aspose.drawing/enumeratemetafileproc/_index.md @@ -0,0 +1,70 @@ +--- +title: Graphics.EnumerateMetafileProc +second_title: Aspose.Drawing for Java API 参考 +description: +type: docs +weight: 11 +url: /zh/java/com.aspose.drawing/graphics.enumeratemetafileproc/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.Delegate, com.aspose.ms.System.MulticastDelegate +``` +public abstract static class Graphics.EnumerateMetafileProc extends System.MulticastDelegate +``` +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [EnumerateMetafileProc()](#EnumerateMetafileProc--) | | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [invoke(int recordType, int flags, int dataSize, System.IntPtr data, PlayRecordCallback callbackData)](#invoke-int-int-int-com.aspose.ms.System.IntPtr-com.aspose.drawing.imaging.PlayRecordCallback-) | 为 `EnumerateMetafile` 方法提供回调方法。 | +| [beginInvoke(int recordType, int flags, int dataSize, System.IntPtr data, PlayRecordCallback callbackData, System.AsyncCallback callback, Object state)](#beginInvoke-int-int-int-com.aspose.ms.System.IntPtr-com.aspose.drawing.imaging.PlayRecordCallback-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | | +### EnumerateMetafileProc() {#EnumerateMetafileProc--} +``` +public EnumerateMetafileProc() +``` + + +### invoke(int recordType, int flags, int dataSize, System.IntPtr data, PlayRecordCallback callbackData) {#invoke-int-int-int-com.aspose.ms.System.IntPtr-com.aspose.drawing.imaging.PlayRecordCallback-} +``` +public abstract boolean invoke(int recordType, int flags, int dataSize, System.IntPtr data, PlayRecordCallback callbackData) +``` + + +为 `EnumerateMetafile` 方法提供回调方法。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| recordType | int | 是 [EmfPlusRecordType](../../com.aspose.drawing.imaging/emfplusrecordtype) 枚举的成员,用于指定元文件记录的类型。 | +| flags | int | 指定记录属性的标志集合。 | +| dataSize | int | 记录数据的字节数。 | +| 数据 | com.aspose.ms.System.IntPtr | 指向包含记录数据的缓冲区的指针。 | +| callbackData | [PlayRecordCallback](../../com.aspose.drawing.imaging/playrecordcallback) | 此参数未被使用。 | + +**Returns:** +boolean - 如果想继续枚举记录则返回 true;否则返回 false。 +### beginInvoke(int recordType, int flags, int dataSize, System.IntPtr data, PlayRecordCallback callbackData, System.AsyncCallback callback, Object state) {#beginInvoke-int-int-int-com.aspose.ms.System.IntPtr-com.aspose.drawing.imaging.PlayRecordCallback-com.aspose.ms.System.AsyncCallback-java.lang.Object-} +``` +public final System.IAsyncResult beginInvoke(int recordType, int flags, int dataSize, System.IntPtr data, PlayRecordCallback callbackData, System.AsyncCallback callback, Object state) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| recordType | int | | +| flags | int | | +| dataSize | int | | +| 数据 | com.aspose.ms.System.IntPtr | | +| callbackData | [PlayRecordCallback](../../com.aspose.drawing.imaging/playrecordcallback) | | +| callback | com.aspose.ms.System.AsyncCallback | | +| state | java.lang.Object | | + +**Returns:** +com.aspose.ms.System.IAsyncResult diff --git a/chinese/java/com.aspose.drawing/enumeratemetafileprocbyte/_index.md b/chinese/java/com.aspose.drawing/enumeratemetafileprocbyte/_index.md new file mode 100644 index 000000000..2b2d1f567 --- /dev/null +++ b/chinese/java/com.aspose.drawing/enumeratemetafileprocbyte/_index.md @@ -0,0 +1,86 @@ +--- +title: Graphics.EnumerateMetafileProcByte +second_title: Aspose.Drawing for Java API 参考 +description: +type: docs +weight: 12 +url: /zh/java/com.aspose.drawing/graphics.enumeratemetafileprocbyte/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.Delegate, com.aspose.ms.System.MulticastDelegate +``` +public abstract static class Graphics.EnumerateMetafileProcByte extends System.MulticastDelegate +``` +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [EnumerateMetafileProcByte()](#EnumerateMetafileProcByte--) | | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [invoke(int recordType, int flags, int dataSize, byte[] data, PlayRecordCallback callbackData)](#invoke-int-int-int-byte---com.aspose.drawing.imaging.PlayRecordCallback-) | | +| [beginInvoke(int recordType, int flags, int dataSize, byte[] data, PlayRecordCallback callbackData, System.AsyncCallback callback, Object state)](#beginInvoke-int-int-int-byte---com.aspose.drawing.imaging.PlayRecordCallback-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | | +| [endInvoke(System.IAsyncResult result)](#endInvoke-com.aspose.ms.System.IAsyncResult-) | | +### EnumerateMetafileProcByte() {#EnumerateMetafileProcByte--} +``` +public EnumerateMetafileProcByte() +``` + + +### invoke(int recordType, int flags, int dataSize, byte[] data, PlayRecordCallback callbackData) {#invoke-int-int-int-byte---com.aspose.drawing.imaging.PlayRecordCallback-} +``` +public abstract boolean invoke(int recordType, int flags, int dataSize, byte[] data, PlayRecordCallback callbackData) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| recordType | int | | +| flags | int | | +| dataSize | int | | +| 数据 | byte[] | | +| callbackData | [PlayRecordCallback](../../com.aspose.drawing.imaging/playrecordcallback) | | + +**Returns:** +布尔型 +### beginInvoke(int recordType, int flags, int dataSize, byte[] data, PlayRecordCallback callbackData, System.AsyncCallback callback, Object state) {#beginInvoke-int-int-int-byte---com.aspose.drawing.imaging.PlayRecordCallback-com.aspose.ms.System.AsyncCallback-java.lang.Object-} +``` +public final System.IAsyncResult beginInvoke(int recordType, int flags, int dataSize, byte[] data, PlayRecordCallback callbackData, System.AsyncCallback callback, Object state) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| recordType | int | | +| flags | int | | +| dataSize | int | | +| 数据 | byte[] | | +| callbackData | [PlayRecordCallback](../../com.aspose.drawing.imaging/playrecordcallback) | | +| callback | com.aspose.ms.System.AsyncCallback | | +| state | java.lang.Object | | + +**Returns:** +com.aspose.ms.System.IAsyncResult +### endInvoke(System.IAsyncResult result) {#endInvoke-com.aspose.ms.System.IAsyncResult-} +``` +public final boolean endInvoke(System.IAsyncResult result) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| result | com.aspose.ms.System.IAsyncResult | | + +**Returns:** +布尔型 diff --git a/chinese/java/com.aspose.drawing/features/_index.md b/chinese/java/com.aspose.drawing/features/_index.md new file mode 100644 index 000000000..92d5bce2a --- /dev/null +++ b/chinese/java/com.aspose.drawing/features/_index.md @@ -0,0 +1,55 @@ +--- +title: 特性 +second_title: Aspose.Drawing for Java API 参考 +description: Aspose.Drawing 库的功能。 +type: docs +weight: 20 +url: /zh/java/com.aspose.drawing/features/ +--- +**Inheritance:** +java.lang.Object +``` +public final class Features +``` + +Aspose.Drawing 库的功能。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [Features()](#Features--) | | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getVectorRegions()](#getVectorRegions--) | 获取或设置一个值,指示是否应使用带有矢量路径的扩展区域。 | +| [setVectorRegions(boolean value)](#setVectorRegions-boolean-) | 获取或设置一个值,指示是否应使用带有矢量路径的扩展区域。 | +### Features() {#Features--} +``` +public Features() +``` + + +### getVectorRegions() {#getVectorRegions--} +``` +public static boolean getVectorRegions() +``` + + +获取或设置一个值,指示是否应使用带有矢量路径的扩展区域。 + +**Returns:** +布尔型 +### setVectorRegions(boolean value) {#setVectorRegions-boolean-} +``` +public static void setVectorRegions(boolean value) +``` + + +获取或设置一个值,指示是否应使用带有矢量路径的扩展区域。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | 布尔型 | | + diff --git a/chinese/java/com.aspose.drawing/font/_index.md b/chinese/java/com.aspose.drawing/font/_index.md new file mode 100644 index 000000000..36cb4363c --- /dev/null +++ b/chinese/java/com.aspose.drawing/font/_index.md @@ -0,0 +1,509 @@ +--- +title: Font +second_title: Aspose.Drawing for Java API 参考 +description: 定义文本的特定格式,包括字体、大小和样式属性。 +type: docs +weight: 21 +url: /zh/java/com.aspose.drawing/font/ +--- +**Inheritance:** +java.lang.Object + +**All Implemented Interfaces:** +com.aspose.ms.System.IDisposable +``` +public final class Font implements System.IDisposable +``` + +定义文本的特定格式,包括字体、大小和样式属性。此类不可被继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [Font(Font prototype, int newStyle)](#Font-com.aspose.drawing.Font-int-) | 初始化 [Font](../../com.aspose.drawing/font) 类的新实例,使用指定的现有 [Font](../../com.aspose.drawing/font) 和 [FontStyle](../../com.aspose.drawing/fontstyle) 枚举。 | +| [Font(FontFamily family, float emSize)](#Font-com.aspose.drawing.FontFamily-float-) | 初始化 [Font](../../com.aspose.drawing/font) 类的新实例。 | +| [Font(FontFamily family, float emSize, int style)](#Font-com.aspose.drawing.FontFamily-float-int-) | 使用指定的大小和样式初始化 [Font](../../com.aspose.drawing/font) 类的新实例.. | +| [Font(FontFamily family, float emSize, int style, int unit)](#Font-com.aspose.drawing.FontFamily-float-int-int-) | 使用指定的大小、样式和单位初始化 [Font](../../com.aspose.drawing/font) 类的新实例。 | +| [Font(FontFamily family, float emSize, int style, int unit, byte gdiCharSet)](#Font-com.aspose.drawing.FontFamily-float-int-int-byte-) | 使用指定的大小、样式、单位和字符集初始化 [Font](../../com.aspose.drawing/font) 类的新实例.. | +| [Font(FontFamily family, float emSize, int style, int unit, byte gdiCharSet, boolean gdiVerticalFont)](#Font-com.aspose.drawing.FontFamily-float-int-int-byte-boolean-) | 使用指定的大小、样式、单位和字符集初始化 [Font](../../com.aspose.drawing/font) 类的新实例.. | +| [Font(String familyName, float emSize)](#Font-java.lang.String-float-) | 使用指定的大小初始化 [Font](../../com.aspose.drawing/font) 类的新实例。 | +| [Font(String familyName, float emSize, int style)](#Font-java.lang.String-float-int-) | 使用指定的大小和样式初始化 [Font](../../com.aspose.drawing/font) 类的新实例。 | +| [Font(String familyName, float emSize, int style, int unit)](#Font-java.lang.String-float-int-int-) | 使用指定的大小、样式和单位初始化 [Font](../../com.aspose.drawing/font) 类的新实例。 | +| [Font(String familyName, float emSize, int style, int unit, byte gdiCharSet)](#Font-java.lang.String-float-int-int-byte-) | 使用指定的大小、样式、单位和字符集初始化 [Font](../../com.aspose.drawing/font) 类的新实例。 | +| [Font(String familyName, float emSize, int style, int unit, byte gdiCharSet, boolean gdiVerticalFont)](#Font-java.lang.String-float-int-int-byte-boolean-) | 使用指定的大小、样式、单位和字符集初始化 [Font](../../com.aspose.drawing/font) 类的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getFontFamily()](#getFontFamily--) | 获取与此 [Font](../../com.aspose.drawing/font) 关联的 `FontFamily`([.getFontFamily](../../null/\#getFontFamily))。 | +| [getBold()](#getBold--) | 获取一个值,指示此 [Font](../../com.aspose.drawing/font) 是否为粗体。 | +| [getGdiCharSet()](#getGdiCharSet--) | 获取一个字节值,指定此 [Font](../../com.aspose.drawing/font) 使用的 GDI 字符集。 | +| [getGdiVerticalFont()](#getGdiVerticalFont--) | 获取一个值,指示此 [Font](../../com.aspose.drawing/font) 是否源自 GDI 垂直字体.. | +| [getItalic()](#getItalic--) | 获取一个值,指示此 [Font](../../com.aspose.drawing/font) 是否为斜体。 | +| [getName()](#getName--) | 获取此 [Font](../../com.aspose.drawing/font) 的字体名称。 | +| [getStrikeout()](#getStrikeout--) | 获取一个值,指示此 [Font](../../com.aspose.drawing/font) 是否指定在字体上加水平线。 | +| [getUnderline()](#getUnderline--) | 获取一个值,指示此 [Font](../../com.aspose.drawing/font) 是否带下划线。 | +| [getStyle()](#getStyle--) | 获取此 [Font](../../com.aspose.drawing/font) 的样式信息。 | +| [getSize()](#getSize--) | 获取此 [Font](../../com.aspose.drawing/font) 的 em 大小,单位由 `Font.Unit` 属性指定。 | +| [getSizeInPoints()](#getSizeInPoints--) | 获取此 [Font](../../com.aspose.drawing/font) 的 em 大小(以点为单位)。 | +| [getUnit()](#getUnit--) | 获取此 [Font](../../com.aspose.drawing/font) 的度量单位。 | +| [getHeight_Rename_Namesake()](#getHeight-Rename-Namesake--) | 获取此字体的行间距。 | +| [isSystemFont()](#isSystemFont--) | 获取一个值,指示该字体是否是 [SystemFonts](../../com.aspose.drawing/systemfonts) 的成员。 | +| [getSystemFontName()](#getSystemFontName--) | 如果 IsSystemFont 属性返回 true,则获取系统字体的名称。 | +| [getOriginalFontName()](#getOriginalFontName--) | 获取最初指定的字体名称。 | +| [deepClone()](#deepClone--) | 创建此 [Font](../../com.aspose.drawing/font) 的精确副本。 | +| [equals(Object obj)](#equals-java.lang.Object-) | 指示指定的对象是否为 [Font](../../com.aspose.drawing/font) 且其 `FontFamily`([.getFontFamily](../../null/\#getFontFamily))、`M:GdiVerticalFont`、`M:GdiCharSet`、`M:Style`、`M:Size` 和 `M:Unit` 属性值与此 [Font](../../com.aspose.drawing/font) 相同。 | +| [hashCode()](#hashCode--) | 获取此 [Font](../../com.aspose.drawing/font) 的哈希码。 | +| [getHeight()](#getHeight--) | 返回此字体的行间距(以像素为单位)。 | +| [getHeight(Graphics graphics)](#getHeight-com.aspose.drawing.Graphics-) | 返回此字体在指定的 [Graphics](../../com.aspose.drawing/graphics) 的当前单位下的行间距。 | +| [getHeight(float dpi)](#getHeight-float-) | 返回此 [Font](../../com.aspose.drawing/font) 在使用指定垂直分辨率的设备上绘制时的高度(以像素为单位)。 | +| [dispose()](#dispose--) | 释放此 [Font](../../com.aspose.drawing/font) 使用的所有资源。 | +| [toString()](#toString--) | 返回此 [Font](../../com.aspose.drawing/font) 的可读字符串表示。 | +| [getCharacterSet()](#getCharacterSet--) | 获取一个字节值,指定此 `Font` 使用的字符集。 | +### Font(Font prototype, int newStyle) {#Font-com.aspose.drawing.Font-int-} +``` +public Font(Font prototype, int newStyle) +``` + + +初始化 [Font](../../com.aspose.drawing/font) 类的新实例,使用指定的现有 [Font](../../com.aspose.drawing/font) 和 [FontStyle](../../com.aspose.drawing/fontstyle) 枚举。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| prototype | [Font](../../com.aspose.drawing/font) | 用于创建新 [Font](../../com.aspose.drawing/font) 的现有 [Font](../../com.aspose.drawing/font)。 | +| newStyle | int | 要应用于新 [Font](../../com.aspose.drawing/font) 的 [FontStyle](../../com.aspose.drawing/fontstyle)。可以使用 OR 运算符组合多个 [FontStyle](../../com.aspose.drawing/fontstyle) 枚举值。 | + +### Font(FontFamily family, float emSize) {#Font-com.aspose.drawing.FontFamily-float-} +``` +public Font(FontFamily family, float emSize) +``` + + +初始化 [Font](../../com.aspose.drawing/font) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| family | [FontFamily](../../com.aspose.drawing/fontfamily) | 新 [Font](../../com.aspose.drawing/font) 的 `FontFamily`([.getFontFamily](../../null/\#getFontFamily))。 | +| emSize | 浮点数 | 新字体的 em 大小(以点为单位)。 | + +### Font(FontFamily family, float emSize, int style) {#Font-com.aspose.drawing.FontFamily-float-int-} +``` +public Font(FontFamily family, float emSize, int style) +``` + + +使用指定的大小和样式初始化 [Font](../../com.aspose.drawing/font) 类的新实例.. + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| family | [FontFamily](../../com.aspose.drawing/fontfamily) | 新 [Font](../../com.aspose.drawing/font) 的 `FontFamily`([.getFontFamily](../../null/\#getFontFamily))。 | +| emSize | 浮点数 | 新字体的 em 大小(以点为单位)。 | +| style | int | 新字体的 [FontStyle](../../com.aspose.drawing/fontstyle)。 | + +### Font(FontFamily family, float emSize, int style, int unit) {#Font-com.aspose.drawing.FontFamily-float-int-int-} +``` +public Font(FontFamily family, float emSize, int style, int unit) +``` + + +使用指定的大小、样式和单位初始化 [Font](../../com.aspose.drawing/font) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| family | [FontFamily](../../com.aspose.drawing/fontfamily) | 新 [Font](../../com.aspose.drawing/font) 的 `FontFamily`([.getFontFamily](../../null/\#getFontFamily))。 | +| emSize | 浮点数 | 新字体的 em 大小,单位由 `unit` 参数指定。 | +| style | int | 新字体的 [FontStyle](../../com.aspose.drawing/fontstyle)。 | +| unit | int | 新字体的 [GraphicsUnit](../../com.aspose.drawing/graphicsunit)。 | + +### Font(FontFamily family, float emSize, int style, int unit, byte gdiCharSet) {#Font-com.aspose.drawing.FontFamily-float-int-int-byte-} +``` +public Font(FontFamily family, float emSize, int style, int unit, byte gdiCharSet) +``` + + +使用指定的大小、样式、单位和字符集初始化 [Font](../../com.aspose.drawing/font) 类的新实例.. + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| family | [FontFamily](../../com.aspose.drawing/fontfamily) | 新 [Font](../../com.aspose.drawing/font) 的 `FontFamily`([.getFontFamily](../../null/\#getFontFamily))。 | +| emSize | 浮点数 | 新字体的 em 大小,单位由 `unit` 参数指定。 | +| style | int | 新字体的 [FontStyle](../../com.aspose.drawing/fontstyle)。 | +| unit | int | 新字体的 [GraphicsUnit](../../com.aspose.drawing/graphicsunit)。 | +| gdiCharSet | byte | 用于新字体的 GDI 字符集。 | + +### Font(FontFamily family, float emSize, int style, int unit, byte gdiCharSet, boolean gdiVerticalFont) {#Font-com.aspose.drawing.FontFamily-float-int-int-byte-boolean-} +``` +public Font(FontFamily family, float emSize, int style, int unit, byte gdiCharSet, boolean gdiVerticalFont) +``` + + +使用指定的大小、样式、单位和字符集初始化 [Font](../../com.aspose.drawing/font) 类的新实例.. + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| family | [FontFamily](../../com.aspose.drawing/fontfamily) | 新 [Font](../../com.aspose.drawing/font) 的 `FontFamily`([.getFontFamily](../../null/\#getFontFamily))。 | +| emSize | 浮点数 | 新字体的 em 大小,单位由 `unit` 参数指定。 | +| style | int | 新字体的 [FontStyle](../../com.aspose.drawing/fontstyle)。 | +| unit | int | 新字体的 [GraphicsUnit](../../com.aspose.drawing/graphicsunit)。 | +| gdiCharSet | byte | 用于新字体的 GDI 字符集。 | +| gdiVerticalFont | 布尔型 | 一个布尔值,指示新字体是否来源于 GDI 垂直字体。 | + +### Font(String familyName, float emSize) {#Font-java.lang.String-float-} +``` +public Font(String familyName, float emSize) +``` + + +使用指定的大小初始化 [Font](../../com.aspose.drawing/font) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| familyName | java.lang.String | 新 [Font](../../com.aspose.drawing/font) 的 FontFamily 的字符串表示。 | +| emSize | 浮点数 | 新字体的 em 大小(以点为单位)。 | + +### Font(String familyName, float emSize, int style) {#Font-java.lang.String-float-int-} +``` +public Font(String familyName, float emSize, int style) +``` + + +使用指定的大小和样式初始化 [Font](../../com.aspose.drawing/font) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| familyName | java.lang.String | 新 [Font](../../com.aspose.drawing/font) 的 FontFamily 的字符串表示。 | +| emSize | 浮点数 | 新字体的 em 大小(以点为单位)。 | +| style | int | 新字体的 [FontStyle](../../com.aspose.drawing/fontstyle)。 | + +### Font(String familyName, float emSize, int style, int unit) {#Font-java.lang.String-float-int-int-} +``` +public Font(String familyName, float emSize, int style, int unit) +``` + + +使用指定的大小、样式和单位初始化 [Font](../../com.aspose.drawing/font) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| familyName | java.lang.String | 新 [Font](../../com.aspose.drawing/font) 的 `FontFamily`([.getFontFamily](../../null/\#getFontFamily)) 的字符串表示。 | +| emSize | 浮点数 | 新字体的 em 大小,单位由 `unit` 参数指定。 | +| style | int | 新字体的 [FontStyle](../../com.aspose.drawing/fontstyle)。 | +| unit | int | 新字体的 [GraphicsUnit](../../com.aspose.drawing/graphicsunit)。 | + +### Font(String familyName, float emSize, int style, int unit, byte gdiCharSet) {#Font-java.lang.String-float-int-int-byte-} +``` +public Font(String familyName, float emSize, int style, int unit, byte gdiCharSet) +``` + + +使用指定的大小、样式、单位和字符集初始化 [Font](../../com.aspose.drawing/font) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| familyName | java.lang.String | 新 [Font](../../com.aspose.drawing/font) 的 FontFamily 的字符串表示。 | +| emSize | 浮点数 | 新字体的 em 大小,单位由 `unit` 参数指定。 | +| style | int | 新字体的 [FontStyle](../../com.aspose.drawing/fontstyle)。 | +| unit | int | 新字体的 [GraphicsUnit](../../com.aspose.drawing/graphicsunit)。 | +| gdiCharSet | byte | 一个字节,指定此字体使用的 GDI 字符集。 | + +### Font(String familyName, float emSize, int style, int unit, byte gdiCharSet, boolean gdiVerticalFont) {#Font-java.lang.String-float-int-int-byte-boolean-} +``` +public Font(String familyName, float emSize, int style, int unit, byte gdiCharSet, boolean gdiVerticalFont) +``` + + +使用指定的大小、样式、单位和字符集初始化 [Font](../../com.aspose.drawing/font) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| familyName | java.lang.String | 新 [Font](../../com.aspose.drawing/font) 的 FontFamily 的字符串表示。 | +| emSize | 浮点数 | 新字体的 em 大小,单位由 `unit` 参数指定。 | +| style | int | 新字体的 [FontStyle](../../com.aspose.drawing/fontstyle)。 | +| unit | int | 新字体的 [GraphicsUnit](../../com.aspose.drawing/graphicsunit)。 | +| gdiCharSet | byte | 一个字节,指定此字体使用的 GDI 字符集。 | +| gdiVerticalFont | boolean | 一个布尔值,指示新 [Font](../../com.aspose.drawing/font) 是否来源于 GDI 垂直字体。 | + +### getFontFamily() {#getFontFamily--} +``` +public FontFamily getFontFamily() +``` + + +获取与此 [Font](../../com.aspose.drawing/font) 关联的 `FontFamily`([.getFontFamily](../../null/\#getFontFamily))。 + +**Returns:** +[FontFamily](../../com.aspose.drawing/fontfamily) - The `FontFamily`([.getFontFamily](../../null/\#getFontFamily)) associated with this [Font](../../com.aspose.drawing/font). +### getBold() {#getBold--} +``` +public boolean getBold() +``` + + +获取一个值,指示此 [Font](../../com.aspose.drawing/font) 是否为粗体。 + +**Returns:** +boolean - 一个指示此 [Font](../../com.aspose.drawing/font) 是否加粗的值。 +### getGdiCharSet() {#getGdiCharSet--} +``` +public byte getGdiCharSet() +``` + + +获取一个字节值,指定此 [Font](../../com.aspose.drawing/font) 使用的 GDI 字符集。 + +**Returns:** +byte - 指定此 [Font](../../com.aspose.drawing/font) 使用的 GDI 字符集的字节值。 +### getGdiVerticalFont() {#getGdiVerticalFont--} +``` +public boolean getGdiVerticalFont() +``` + + +获取一个值,指示此 [Font](../../com.aspose.drawing/font) 是否源自 GDI 垂直字体.. + +值:如果此 [Font](../../com.aspose.drawing/font) 源自 GDI 垂直字体,则为 `true`;否则为 `false`。 + +**Returns:** +boolean - 一个指示此 [Font](../../com.aspose.drawing/font) 是否源自 GDI 垂直字体的值。 +### getItalic() {#getItalic--} +``` +public boolean getItalic() +``` + + +获取一个值,指示此 [Font](../../com.aspose.drawing/font) 是否为斜体。 + +**Returns:** +boolean - 一个指示此 [Font](../../com.aspose.drawing/font) 是否斜体的值。 +### getName() {#getName--} +``` +public String getName() +``` + + +获取此 [Font](../../com.aspose.drawing/font) 的字体名称。 + +**Returns:** +java.lang.String - 此 [Font](../../com.aspose.drawing/font) 的字体名称。 +### getStrikeout() {#getStrikeout--} +``` +public boolean getStrikeout() +``` + + +获取一个值,指示此 [Font](../../com.aspose.drawing/font) 是否指定在字体上加水平线。 + +**Returns:** +boolean - 一个指示此 [Font](../../com.aspose.drawing/font) 是否在字体上绘制水平线的值。 +### getUnderline() {#getUnderline--} +``` +public boolean getUnderline() +``` + + +获取一个值,指示此 [Font](../../com.aspose.drawing/font) 是否带下划线。 + +**Returns:** +boolean - 一个指示此 [Font](../../com.aspose.drawing/font) 是否带下划线的值。 +### getStyle() {#getStyle--} +``` +public int getStyle() +``` + + +获取此 [Font](../../com.aspose.drawing/font) 的样式信息。 + +**Returns:** +int - 此 [Font](../../com.aspose.drawing/font) 的样式信息。 +### getSize() {#getSize--} +``` +public float getSize() +``` + + +获取此 [Font](../../com.aspose.drawing/font) 的 em 大小,单位由 `Font.Unit` 属性指定。 + +**Returns:** +float - 以 \\{@code Font 指定的单位测量的此 [Font](../../com.aspose.drawing/font) 的 em 大小。 +### getSizeInPoints() {#getSizeInPoints--} +``` +public float getSizeInPoints() +``` + + +获取此 [Font](../../com.aspose.drawing/font) 的 em 大小(以点为单位)。 + +**Returns:** +float - 此 [Font](../../com.aspose.drawing/font) 的 em 大小(单位为点)。 +### getUnit() {#getUnit--} +``` +public int getUnit() +``` + + +获取此 [Font](../../com.aspose.drawing/font) 的度量单位。 + +**Returns:** +int - 此 [Font](../../com.aspose.drawing/font) 的度量单位。 +### getHeight_Rename_Namesake() {#getHeight-Rename-Namesake--} +``` +public int getHeight_Rename_Namesake() +``` + + +获取此字体的行间距。 + +值:此字体的行间距(像素)。 + +**Returns:** +int - 此字体的行间距。 +### isSystemFont() {#isSystemFont--} +``` +public boolean isSystemFont() +``` + + +获取一个值,指示该字体是否是 [SystemFonts](../../com.aspose.drawing/systemfonts) 的成员。 + +值:如果该字体是 [SystemFonts](../../com.aspose.drawing/systemfonts) 的成员,则为 `true`;否则为 `false`。 + +**Returns:** +boolean - 一个指示该字体是否是 [SystemFonts](../../com.aspose.drawing/systemfonts) 成员的值。 +### getSystemFontName() {#getSystemFontName--} +``` +public String getSystemFontName() +``` + + +如果 IsSystemFont 属性返回 true,则获取系统字体的名称。 + +值:如果 IsSystemFont 返回 true,则为系统字体的名称;否则为空字符串(\"\")。 + +**Returns:** +java.lang.String - 如果 IsSystemFont 属性返回 true,则为系统字体的名称。 +### getOriginalFontName() {#getOriginalFontName--} +``` +public String getOriginalFontName() +``` + + +获取最初指定的字体名称。 + +值:表示最初指定的字体名称的字符串。 + +**Returns:** +java.lang.String - 最初指定的字体名称。 +### deepClone() {#deepClone--} +``` +public Font deepClone() +``` + + +创建此 [Font](../../com.aspose.drawing/font) 的精确副本。 + +**Returns:** +[Font](../../com.aspose.drawing/font) - The [Font](../../com.aspose.drawing/font) this method creates, cast as an Object. +### equals(Object obj) {#equals-java.lang.Object-} +``` +public boolean equals(Object obj) +``` + + +指示指定的对象是否为 [Font](../../com.aspose.drawing/font) 且其 `FontFamily`([.getFontFamily](../../null/\#getFontFamily))、`M:GdiVerticalFont`、`M:GdiCharSet`、`M:Style`、`M:Size` 和 `M:Unit` 属性值与此 [Font](../../com.aspose.drawing/font) 相同。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| obj | java.lang.Object | 要测试的对象。 | + +**Returns:** +boolean - 如果 obj 参数是 [Font](../../com.aspose.drawing/font) 且其 `FontFamily`([.getFontFamily](../../null/\\#getFontFamily))、`M:GdiVerticalFont`、`M:GdiCharSet`、`M:Style`、`M:Size` 和 `M:Unit` 属性值与此 [Font](../../com.aspose.drawing/font) 相同,则为 `true`;否则为 `false`。 +### hashCode() {#hashCode--} +``` +public int hashCode() +``` + + +获取此 [Font](../../com.aspose.drawing/font) 的哈希码。 + +**Returns:** +int - 此 [Font](../../com.aspose.drawing/font) 的哈希码。 +### getHeight() {#getHeight--} +``` +public int getHeight() +``` + + +返回此字体的行间距(以像素为单位)。 + +**Returns:** +int - 此字体的行间距(像素)。 +### getHeight(Graphics graphics) {#getHeight-com.aspose.drawing.Graphics-} +``` +public float getHeight(Graphics graphics) +``` + + +返回此字体在指定的 [Graphics](../../com.aspose.drawing/graphics) 的当前单位下的行间距。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| graphics | [Graphics](../../com.aspose.drawing/graphics) | 一个 [Graphics](../../com.aspose.drawing/graphics),它保存显示设备的垂直分辨率(每英寸点数),以及页面单位和页面比例的设置。 | + +**Returns:** +float - 此字体的行间距(像素)。 +### getHeight(float dpi) {#getHeight-float-} +``` +public int getHeight(float dpi) +``` + + +返回此 [Font](../../com.aspose.drawing/font) 在使用指定垂直分辨率的设备上绘制时的高度(以像素为单位)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| dpi | 浮点数 | 垂直分辨率(每英寸点数),用于计算字体的高度。 | + +**Returns:** +int - 此 [Font](../../com.aspose.drawing/font) 的高度(以像素为单位)。 +### dispose() {#dispose--} +``` +public void dispose() +``` + + +释放此 [Font](../../com.aspose.drawing/font) 使用的所有资源。 + +### toString() {#toString--} +``` +public String toString() +``` + + +返回此 [Font](../../com.aspose.drawing/font) 的可读字符串表示。 + +**Returns:** +java.lang.String - 表示此 [Font](../../com.aspose.drawing/font) 的字符串。 +### getCharacterSet() {#getCharacterSet--} +``` +public int getCharacterSet() +``` + + +获取一个字节值,指定此 `Font` 使用的字符集。 + +**Returns:** +int - 此 `Font` 使用的字符集。 diff --git a/chinese/java/com.aspose.drawing/fontcollection/_index.md b/chinese/java/com.aspose.drawing/fontcollection/_index.md new file mode 100644 index 000000000..d94213325 --- /dev/null +++ b/chinese/java/com.aspose.drawing/fontcollection/_index.md @@ -0,0 +1,42 @@ +--- +title: 字体集合 +second_title: Aspose.Drawing for Java API 参考 +description: 提供已安装和私有字体集合的基类。 +type: docs +weight: 22 +url: /zh/java/com.aspose.drawing/fontcollection/ +--- +**Inheritance:** +java.lang.Object + +**All Implemented Interfaces:** +com.aspose.ms.System.IDisposable +``` +public abstract class FontCollection implements System.IDisposable +``` + +提供已安装和私有字体集合的基类。 +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getFamilies()](#getFamilies--) | 获取与此 [FontCollection](../../com.aspose.drawing/fontcollection) 关联的 [FontFamily](../../com.aspose.drawing/fontfamily) 对象数组。 | +| [dispose()](#dispose--) | 释放此 [FontCollection](../../com.aspose.drawing/fontcollection) 使用的所有资源。 | +### getFamilies() {#getFamilies--} +``` +public final FontFamily[] getFamilies() +``` + + +获取与此 [FontCollection](../../com.aspose.drawing/fontcollection) 关联的 [FontFamily](../../com.aspose.drawing/fontfamily) 对象数组。 + +**Returns:** +com.aspose.drawing.FontFamily[] - 一个 [FontFamily](../../com.aspose.drawing/fontfamily) 对象数组。 +### dispose() {#dispose--} +``` +public final void dispose() +``` + + +释放此 [FontCollection](../../com.aspose.drawing/fontcollection) 使用的所有资源。 + diff --git a/chinese/java/com.aspose.drawing/fontdefinitionext/_index.md b/chinese/java/com.aspose.drawing/fontdefinitionext/_index.md new file mode 100644 index 000000000..695d94d80 --- /dev/null +++ b/chinese/java/com.aspose.drawing/fontdefinitionext/_index.md @@ -0,0 +1,144 @@ +--- +title: FontDefinitionExt +second_title: Aspose.Drawing for Java API 参考 +description: 类包含字体定义 +type: docs +weight: 23 +url: /zh/java/com.aspose.drawing/fontdefinitionext/ +--- +**Inheritance:** +java.lang.Object +``` +public class FontDefinitionExt +``` + +类包含字体定义, +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [FontDefinitionExt(String fontName, String familyName, List localizedFamilyNames, int type, String fileName, long offset)](#FontDefinitionExt-java.lang.String-java.lang.String-java.util.List-java.lang.String--int-java.lang.String-long-) | 初始化一个新的 [FontDefinitionExt](../../com.aspose.drawing/fontdefinitionext) 类的实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getFamilyName()](#getFamilyName--) | 获取字体族名称。 | +| [getStyle()](#getStyle--) | 获取字体样式。 | +| [getFontName()](#getFontName--) | 获取字体的名称。 | +| [getPostscriptName()](#getPostscriptName--) | 获取字体的 PostScript 名称。 | +| [getType()](#getType--) | 获取字体类型。 | +| [getFontFile()](#getFontFile--) | 获取字体文件。 | +| [getFileName()](#getFileName--) | 获取文件的名称。 | +| [getFont()](#getFont--) | 获取字体。 | +### FontDefinitionExt(String fontName, String familyName, List localizedFamilyNames, int type, String fileName, long offset) {#FontDefinitionExt-java.lang.String-java.lang.String-java.util.List-java.lang.String--int-java.lang.String-long-} +``` +public FontDefinitionExt(String fontName, String familyName, List localizedFamilyNames, int type, String fileName, long offset) +``` + + +初始化一个新的 [FontDefinitionExt](../../com.aspose.drawing/fontdefinitionext) 类的实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| fontName | java.lang.String | 字体的名称。 | +| familyName | java.lang.String | 字体族。 | +| localizedFamilyNames | java.util.List | 本地化的字体族名称。 | +| type | int | 类型。 | +| fileName | java.lang.String | 文件的名称。 | +| offset | long | 偏移量。 | + +### getFamilyName() {#getFamilyName--} +``` +public final String getFamilyName() +``` + + +获取字体族名称。 + +值:字体族名称。 + +**Returns:** +java.lang.String +### getStyle() {#getStyle--} +``` +public final String getStyle() +``` + + +获取字体样式。 + +值:字体样式。 + +**Returns:** +java.lang.String +### getFontName() {#getFontName--} +``` +public final String getFontName() +``` + + +获取字体的名称。 + +值:字体的名称。 + +**Returns:** +java.lang.String +### getPostscriptName() {#getPostscriptName--} +``` +public final String getPostscriptName() +``` + + +获取字体的 PostScript 名称。 + +值:字体的 PostScript 名称。 + +**Returns:** +java.lang.String +### getType() {#getType--} +``` +public final int getType() +``` + + +获取字体类型。 + +值:字体类型。 + +**Returns:** +int +### getFontFile() {#getFontFile--} +``` +public final FontFileDefinition getFontFile() +``` + + +获取字体文件。 + +值:字体文件。 + +**Returns:** +com.aspose.fonts.sources.FontFileDefinition +### getFileName() {#getFileName--} +``` +public final String getFileName() +``` + + +获取文件的名称。 + +值:文件的名称。 + +**Returns:** +java.lang.String +### getFont() {#getFont--} +``` +public final IFont getFont() +``` + + +获取字体。 + +**Returns:** +com.aspose.fonts.IFont - 返回当前定义的字体。 diff --git a/chinese/java/com.aspose.drawing/fontfamily/_index.md b/chinese/java/com.aspose.drawing/fontfamily/_index.md new file mode 100644 index 000000000..9a4d42077 --- /dev/null +++ b/chinese/java/com.aspose.drawing/fontfamily/_index.md @@ -0,0 +1,257 @@ +--- +title: FontFamily +second_title: Aspose.Drawing for Java API 参考 +description: 定义一组具有相似基本设计和某些样式变体的字体族。 +type: docs +weight: 24 +url: /zh/java/com.aspose.drawing/fontfamily/ +--- +**Inheritance:** +java.lang.Object + +**All Implemented Interfaces:** +com.aspose.ms.System.IDisposable +``` +public final class FontFamily implements System.IDisposable +``` + +定义一组具有相似基本设计和某些样式变体的字体族。此类不可被继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [FontFamily(String name)](#FontFamily-java.lang.String-) | 使用指定的名称初始化 [FontFamily](../../com.aspose.drawing/fontfamily) 类的新实例。 | +| [FontFamily(String name, FontCollection fontCollection)](#FontFamily-java.lang.String-com.aspose.drawing.FontCollection-) | 初始化 [FontFamily](../../com.aspose.drawing/fontfamily) 类的新实例。 | +| [FontFamily(String name, FontFamilyDefinition definition)](#FontFamily-java.lang.String-com.aspose.drawing.FontFamilyDefinition-) | 初始化 [FontFamily](../../com.aspose.drawing/fontfamily) 类的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getFamilies()](#getFamilies--) | 获取一个数组,其中包含与当前图形上下文关联的所有 [FontFamily](../../com.aspose.drawing/fontfamily) 对象。 | +| [getGenericSansSerif()](#getGenericSansSerif--) | 获取一个通用无衬线 [FontFamily](../../com.aspose.drawing/fontfamily) 对象。 | +| [getGenericSerif()](#getGenericSerif--) | 获取一个通用衬线 [FontFamily](../../com.aspose.drawing/fontfamily) 对象。 | +| [getGenericMonospace()](#getGenericMonospace--) | 获取一个通用等宽 [FontFamily](../../com.aspose.drawing/fontfamily) 对象。 | +| [getName()](#getName--) | 获取此 [FontFamily](../../com.aspose.drawing/fontfamily) 的名称。 | +| [dispose()](#dispose--) | 释放此 [FontFamily](../../com.aspose.drawing/fontfamily) 使用的所有资源。 | +| [getName(int language)](#getName-int-) | 返回此 [FontFamily](../../com.aspose.drawing/fontfamily) 在指定语言中的名称。 | +| [isStyleAvailable(int style)](#isStyleAvailable-int-) | 指示指定的 [FontStyle](../../com.aspose.drawing/fontstyle) 枚举是否可用。 | +| [getEmHeight(int style)](#getEmHeight-int-) | 获取指定样式的 EM 方块的高度(以字体设计单位计)。 | +| [getCellAscent(int style)](#getCellAscent-int-) | 返回指定样式的 [FontFamily](../../com.aspose.drawing/fontfamily) 的单元上升高度(以设计单位计)。 | +| [getCellDescent(int style)](#getCellDescent-int-) | 返回指定样式的 [FontFamily](../../com.aspose.drawing/fontfamily) 的单元下降高度(以设计单位计)。 | +| [hashCode()](#hashCode--) | 获取此 [FontFamily](../../com.aspose.drawing/fontfamily) 的哈希码。 | +| [equals(Object obj)](#equals-java.lang.Object-) | 指示指定的对象是否为 [FontFamily](../../com.aspose.drawing/fontfamily) 且与此 [FontFamily](../../com.aspose.drawing/fontfamily) 完全相同。 | +| [getLineSpacing(int style)](#getLineSpacing-int-) | 返回指定样式的 [FontFamily](../../com.aspose.drawing/fontfamily) 的行间距(以设计单位计)。 | +### FontFamily(String name) {#FontFamily-java.lang.String-} +``` +public FontFamily(String name) +``` + + +使用指定的名称初始化 [FontFamily](../../com.aspose.drawing/fontfamily) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| name | java.lang.String | 新 [FontFamily](../../com.aspose.drawing/fontfamily) 的名称。 | + +### FontFamily(String name, FontCollection fontCollection) {#FontFamily-java.lang.String-com.aspose.drawing.FontCollection-} +``` +public FontFamily(String name, FontCollection fontCollection) +``` + + +初始化 [FontFamily](../../com.aspose.drawing/fontfamily) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 名称 | java.lang.String | 字体系列的名称。 | +| fontCollection | [FontCollection](../../com.aspose.drawing/fontcollection) | 字体集合。 | + +### FontFamily(String name, FontFamilyDefinition definition) {#FontFamily-java.lang.String-com.aspose.drawing.FontFamilyDefinition-} +``` +public FontFamily(String name, FontFamilyDefinition definition) +``` + + +初始化 [FontFamily](../../com.aspose.drawing/fontfamily) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 名称 | java.lang.String | 字体系列的名称。 | +| definition | [FontFamilyDefinition](../../com.aspose.drawing/fontfamilydefinition) | 定义。 | + +### getFamilies() {#getFamilies--} +``` +public static FontFamily[] getFamilies() +``` + + +获取一个数组,其中包含与当前图形上下文关联的所有 [FontFamily](../../com.aspose.drawing/fontfamily) 对象。 + +**Returns:** +com.aspose.drawing.FontFamily[] - 与当前图形上下文关联的 [FontFamily](../../com.aspose.drawing/fontfamily) 对象数组。 +### getGenericSansSerif() {#getGenericSansSerif--} +``` +public static FontFamily getGenericSansSerif() +``` + + +获取一个通用无衬线 [FontFamily](../../com.aspose.drawing/fontfamily) 对象。 + +**Returns:** +[FontFamily](../../com.aspose.drawing/fontfamily) - A [FontFamily](../../com.aspose.drawing/fontfamily) object that represents a generic sans serif font. +### getGenericSerif() {#getGenericSerif--} +``` +public static FontFamily getGenericSerif() +``` + + +获取一个通用衬线 [FontFamily](../../com.aspose.drawing/fontfamily) 对象。 + +**Returns:** +[FontFamily](../../com.aspose.drawing/fontfamily) - A [FontFamily](../../com.aspose.drawing/fontfamily) that represents a generic serif font. +### getGenericMonospace() {#getGenericMonospace--} +``` +public static FontFamily getGenericMonospace() +``` + + +获取一个通用等宽 [FontFamily](../../com.aspose.drawing/fontfamily) 对象。 + +**Returns:** +[FontFamily](../../com.aspose.drawing/fontfamily) - A [FontFamily](../../com.aspose.drawing/fontfamily) that represents a generic monospace font. +### getName() {#getName--} +``` +public String getName() +``` + + +获取此 [FontFamily](../../com.aspose.drawing/fontfamily) 的名称。 + +**Returns:** +java.lang.String - 表示此 [FontFamily](../../com.aspose.drawing/fontfamily) 名称的字符串。 +### dispose() {#dispose--} +``` +public void dispose() +``` + + +释放此 [FontFamily](../../com.aspose.drawing/fontfamily) 使用的所有资源。 + +### getName(int language) {#getName-int-} +``` +public String getName(int language) +``` + + +返回此 [FontFamily](../../com.aspose.drawing/fontfamily) 在指定语言中的名称。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 语言 | int | 返回名称的语言。 | + +**Returns:** +java.lang.String - 表示此 [FontFamily](../../com.aspose.drawing/fontfamily) 在指定语言中的名称的字符串。 +### isStyleAvailable(int style) {#isStyleAvailable-int-} +``` +public boolean isStyleAvailable(int style) +``` + + +指示指定的 [FontStyle](../../com.aspose.drawing/fontstyle) 枚举是否可用。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| style | int | 要测试的 [FontStyle](../../com.aspose.drawing/fontstyle)。 | + +**Returns:** +boolean - 如果指定的 [FontStyle](../../com.aspose.drawing/fontstyle) 可用则为 true;否则为 false。 +### getEmHeight(int style) {#getEmHeight-int-} +``` +public int getEmHeight(int style) +``` + + +获取指定样式的 EM 方块的高度(以字体设计单位计)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| style | int | 要获取 EM 高度的 [FontStyle](../../com.aspose.drawing/fontstyle)。 | + +**Returns:** +int - EM 方块的高度。 +### getCellAscent(int style) {#getCellAscent-int-} +``` +public int getCellAscent(int style) +``` + + +返回指定样式的 [FontFamily](../../com.aspose.drawing/fontfamily) 的单元上升高度(以设计单位计)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| style | int | 包含字体样式信息的 [FontStyle](../../com.aspose.drawing/fontstyle)。 | + +**Returns:** +int - 使用指定 [FontStyle](../../com.aspose.drawing/fontstyle) 的此 [FontFamily](../../com.aspose.drawing/fontfamily) 的单元上升高度。 +### getCellDescent(int style) {#getCellDescent-int-} +``` +public int getCellDescent(int style) +``` + + +返回指定样式的 [FontFamily](../../com.aspose.drawing/fontfamily) 的单元下降高度(以设计单位计)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| style | int | 包含字体样式信息的 [FontStyle](../../com.aspose.drawing/fontstyle)。 | + +**Returns:** +int - 使用指定 [FontStyle](../../com.aspose.drawing/fontstyle) 的此 [FontFamily](../../com.aspose.drawing/fontfamily) 的单元下降度量。 +### hashCode() {#hashCode--} +``` +public int hashCode() +``` + + +获取此 [FontFamily](../../com.aspose.drawing/fontfamily) 的哈希码。 + +**Returns:** +int - 此 [FontFamily](../../com.aspose.drawing/fontfamily) 的哈希码。 +### equals(Object obj) {#equals-java.lang.Object-} +``` +public boolean equals(Object obj) +``` + + +指示指定的对象是否为 [FontFamily](../../com.aspose.drawing/fontfamily) 且与此 [FontFamily](../../com.aspose.drawing/fontfamily) 完全相同。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| obj | java.lang.Object | 要测试的对象。 | + +**Returns:** +boolean - 如果 `obj` 是 [FontFamily](../../com.aspose.drawing/fontfamily) 且与此 [FontFamily](../../com.aspose.drawing/fontfamily) 完全相同,则为 `true`;否则为 `false`。 +### getLineSpacing(int style) {#getLineSpacing-int-} +``` +public int getLineSpacing(int style) +``` + + +返回指定样式的 [FontFamily](../../com.aspose.drawing/fontfamily) 的行间距(以设计单位计)。行间距是两行连续文本基线之间的垂直距离。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| style | int | 要应用的 [FontStyle](../../com.aspose.drawing/fontstyle)。 | + +**Returns:** +int - 两行连续文本之间的距离。 diff --git a/chinese/java/com.aspose.drawing/fontfamilydefinition/_index.md b/chinese/java/com.aspose.drawing/fontfamilydefinition/_index.md new file mode 100644 index 000000000..685f8ea83 --- /dev/null +++ b/chinese/java/com.aspose.drawing/fontfamilydefinition/_index.md @@ -0,0 +1,90 @@ +--- +title: FontFamilyDefinition +second_title: Aspose.Drawing for Java API 参考 +description: 字体族的定义。 +type: docs +weight: 25 +url: /zh/java/com.aspose.drawing/fontfamilydefinition/ +--- +**Inheritance:** +java.lang.Object +``` +public class FontFamilyDefinition +``` + +字体族的定义。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [FontFamilyDefinition()](#FontFamilyDefinition--) | 初始化一个新的 [FontFamilyDefinition](../../com.aspose.drawing/fontfamilydefinition) 类实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [addFontDefinition(int style, FontDefinitionExt fontDef)](#addFontDefinition-int-com.aspose.drawing.FontDefinitionExt-) | 将字体定义添加到字体族中。 | +| [getFontDefinition(int style)](#getFontDefinition-int-) | 获取特定样式的字体族中的字体定义。 | +| [matchesLocalizedFamilyName(String localizedFamilyName)](#matchesLocalizedFamilyName-java.lang.String-) | 匹配此族中的本地化族名称。 | +| [getFamilyName()](#getFamilyName--) | 获取此族的族名称。 | +### FontFamilyDefinition() {#FontFamilyDefinition--} +``` +public FontFamilyDefinition() +``` + + +初始化一个新的 [FontFamilyDefinition](../../com.aspose.drawing/fontfamilydefinition) 类实例。 + +### addFontDefinition(int style, FontDefinitionExt fontDef) {#addFontDefinition-int-com.aspose.drawing.FontDefinitionExt-} +``` +public final void addFontDefinition(int style, FontDefinitionExt fontDef) +``` + + +将字体定义添加到字体族中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| style | int | 该样式。 | +| fontDef | [FontDefinitionExt](../../com.aspose.drawing/fontdefinitionext) | 该字体定义。 | + +### getFontDefinition(int style) {#getFontDefinition-int-} +``` +public final FontDefinitionExt getFontDefinition(int style) +``` + + +获取特定样式的字体族中的字体定义。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| style | int | 该样式。 | + +**Returns:** +[FontDefinitionExt](../../com.aspose.drawing/fontdefinitionext) - Returns font definition if exist for specified style, null otherwise. +### matchesLocalizedFamilyName(String localizedFamilyName) {#matchesLocalizedFamilyName-java.lang.String-} +``` +public final boolean matchesLocalizedFamilyName(String localizedFamilyName) +``` + + +匹配此族中的本地化族名称。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| localizedFamilyName | java.lang.String | 本地化的族名称。 | + +**Returns:** +boolean - 如果此族包含本地化的族名称则为 true。 +### getFamilyName() {#getFamilyName--} +``` +public final String getFamilyName() +``` + + +获取此族的族名称。 + +**Returns:** +java.lang.String - 族名称,若为空族则为 null。 diff --git a/chinese/java/com.aspose.drawing/fontstyle/_index.md b/chinese/java/com.aspose.drawing/fontstyle/_index.md new file mode 100644 index 000000000..69db2a2f2 --- /dev/null +++ b/chinese/java/com.aspose.drawing/fontstyle/_index.md @@ -0,0 +1,64 @@ +--- +title: FontStyle +second_title: Aspose.Drawing for Java API 参考 +description: 指定应用于文本的样式信息。 +type: docs +weight: 26 +url: /zh/java/com.aspose.drawing/fontstyle/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class FontStyle extends System.Enum +``` + +指定应用于文本的样式信息。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [Regular](#Regular) | 普通文本。 | +| [Bold](#Bold) | 粗体文本。 | +| [Italic](#Italic) | 斜体文本。 | +| [Underline](#Underline) | 带下划线的文本。 | +| [Strikeout](#Strikeout) | 带中划线的文本。 | +### Regular {#Regular} +``` +public static final int Regular +``` + + +普通文本。 + +### Bold {#Bold} +``` +public static final int Bold +``` + + +粗体文本。 + +### Italic {#Italic} +``` +public static final int Italic +``` + + +斜体文本。 + +### Underline {#Underline} +``` +public static final int Underline +``` + + +带下划线的文本。 + +### Strikeout {#Strikeout} +``` +public static final int Strikeout +``` + + +带中划线的文本。 + diff --git a/chinese/java/com.aspose.drawing/getthumbnailimageabort/_index.md b/chinese/java/com.aspose.drawing/getthumbnailimageabort/_index.md new file mode 100644 index 000000000..61388af50 --- /dev/null +++ b/chinese/java/com.aspose.drawing/getthumbnailimageabort/_index.md @@ -0,0 +1,74 @@ +--- +title: Image.GetThumbnailImageAbort +second_title: Aspose.Drawing for Java API 参考 +description: 提供一个回调方法,用于确定何时应提前取消执行。 +type: docs +weight: 10 +url: /zh/java/com.aspose.drawing/image.getthumbnailimageabort/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.Delegate, com.aspose.ms.System.MulticastDelegate +``` +public abstract static class Image.GetThumbnailImageAbort extends System.MulticastDelegate +``` + +提供一个回调方法,用于确定何时应提前取消执行 [.getThumbnailImage(int, int, GetThumbnailImageAbort, IntPtr)](../../null/\#getThumbnailImage-int--int--GetThumbnailImageAbort--IntPtr-) 方法的执行。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [GetThumbnailImageAbort()](#GetThumbnailImageAbort--) | | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [invoke()](#invoke--) | | +| [beginInvoke(System.AsyncCallback callback, Object state)](#beginInvoke-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | | +| [endInvoke(System.IAsyncResult result)](#endInvoke-com.aspose.ms.System.IAsyncResult-) | | +### GetThumbnailImageAbort() {#GetThumbnailImageAbort--} +``` +public GetThumbnailImageAbort() +``` + + +### invoke() {#invoke--} +``` +public abstract boolean invoke() +``` + + + + +**Returns:** +布尔型 +### beginInvoke(System.AsyncCallback callback, Object state) {#beginInvoke-com.aspose.ms.System.AsyncCallback-java.lang.Object-} +``` +public final System.IAsyncResult beginInvoke(System.AsyncCallback callback, Object state) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| callback | com.aspose.ms.System.AsyncCallback | | +| state | java.lang.Object | | + +**Returns:** +com.aspose.ms.System.IAsyncResult +### endInvoke(System.IAsyncResult result) {#endInvoke-com.aspose.ms.System.IAsyncResult-} +``` +public final boolean endInvoke(System.IAsyncResult result) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| result | com.aspose.ms.System.IAsyncResult | | + +**Returns:** +布尔型 diff --git a/chinese/java/com.aspose.drawing/graphicsunit/_index.md b/chinese/java/com.aspose.drawing/graphicsunit/_index.md new file mode 100644 index 000000000..330e55640 --- /dev/null +++ b/chinese/java/com.aspose.drawing/graphicsunit/_index.md @@ -0,0 +1,82 @@ +--- +title: GraphicsUnit +second_title: Aspose.Drawing for Java API 参考 +description: 指定给定数据的计量单位。 +type: docs +weight: 28 +url: /zh/java/com.aspose.drawing/graphicsunit/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class GraphicsUnit extends System.Enum +``` + +指定给定数据的计量单位。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [World](#World) | 指定世界坐标系单位为测量单位。 | +| [Display](#Display) | 指定显示设备的测量单位。 | +| [Pixel](#Pixel) | 指定设备像素为测量单位。 | +| [Point](#Point) | 指定打印机点(1/72 英寸)为测量单位。 | +| [Inch](#Inch) | 指定英寸为测量单位。 | +| [Document](#Document) | 指定文档单位(1/300 英寸)为测量单位。 | +| [Millimeter](#Millimeter) | 指定毫米为测量单位。 | +### World {#World} +``` +public static final int World +``` + + +指定世界坐标系单位为测量单位。 + +### Display {#Display} +``` +public static final int Display +``` + + +指定显示设备的测量单位。通常视频显示为像素,打印机为 1/100 英寸。 + +### Pixel {#Pixel} +``` +public static final int Pixel +``` + + +指定设备像素为测量单位。 + +### Point {#Point} +``` +public static final int Point +``` + + +指定打印机点(1/72 英寸)为测量单位。 + +### Inch {#Inch} +``` +public static final int Inch +``` + + +指定英寸为测量单位。 + +### Document {#Document} +``` +public static final int Document +``` + + +指定文档单位(1/300 英寸)为测量单位。 + +### Millimeter {#Millimeter} +``` +public static final int Millimeter +``` + + +指定毫米为测量单位。 + diff --git a/chinese/java/com.aspose.drawing/icon/_index.md b/chinese/java/com.aspose.drawing/icon/_index.md new file mode 100644 index 000000000..3a5247dec --- /dev/null +++ b/chinese/java/com.aspose.drawing/icon/_index.md @@ -0,0 +1,302 @@ +--- +title: Icon +second_title: Aspose.Drawing for Java API 参考 +description: 表示 Windows 图标,它是用于表示对象的小位图图像。 +type: docs +weight: 29 +url: /zh/java/com.aspose.drawing/icon/ +--- +**Inheritance:** +java.lang.Object + +**All Implemented Interfaces:** +com.aspose.ms.System.ICloneable, com.aspose.ms.System.IDisposable +``` +public final class Icon implements System.ICloneable, System.IDisposable +``` + +表示 Windows 图标,它是用于表示对象的小位图图像。图标可以被视为透明位图,尽管其大小由系统决定。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [Icon(String fileName)](#Icon-java.lang.String-) | 从指定的文件名初始化 [Icon](../../com.aspose.drawing/icon) 类的新实例。 | +| [Icon(InputStream stream)](#Icon-java.io.InputStream-) | 从指定的数据流初始化 [Icon](../../com.aspose.drawing/icon) 类的新实例。 | +| [Icon(String fileName, Size size)](#Icon-java.lang.String-com.aspose.drawing.Size-) | 从指定的文件中以指定的大小初始化 [Icon](../../com.aspose.drawing/icon) 类的新实例。 | +| [Icon(Icon original, Size size)](#Icon-com.aspose.drawing.Icon-com.aspose.drawing.Size-) | 初始化 [Icon](../../com.aspose.drawing/icon) 类的新实例,并尝试查找与请求大小匹配的图标版本。 | +| [Icon(Object type, String resource)](#Icon-java.lang.Object-java.lang.String-) | 从指定程序集中的资源初始化 [Icon](../../com.aspose.drawing/icon) 类的新实例。 | +| [Icon(InputStream stream, Size size)](#Icon-java.io.InputStream-com.aspose.drawing.Size-) | 从指定的流中以指定的大小初始化 [Icon](../../com.aspose.drawing/icon) 类的新实例。 | +| [Icon(String fileName, int width, int height)](#Icon-java.lang.String-int-int-) | 从指定文件中使用指定的宽度和高度初始化 [Icon](../../com.aspose.drawing/icon) 类的新实例。 | +| [Icon(Icon original, int width, int height)](#Icon-com.aspose.drawing.Icon-int-int-) | 初始化 [Icon](../../com.aspose.drawing/icon) 类的新实例,并尝试查找与请求尺寸匹配的图标版本。 | +| [Icon(InputStream stream, int width, int height)](#Icon-java.io.InputStream-int-int-) | 从指定的数据流中,并使用指定的宽度和高度,初始化 [Icon](../../com.aspose.drawing/icon) 类的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getHandle()](#getHandle--) | 获取此 [Icon](../../com.aspose.drawing/icon) 的句柄。 | +| [getHeight()](#getHeight--) | 获取此 [Icon](../../com.aspose.drawing/icon) 的高度。 | +| [getSize()](#getSize--) | 获取此 [Icon](../../com.aspose.drawing/icon) 的大小。 | +| [getWidth()](#getWidth--) | 获取此 [Icon](../../com.aspose.drawing/icon) 的宽度。 | +| [extractAssociatedIcon(String filePath)](#extractAssociatedIcon-java.lang.String-) | 返回指定文件中包含的图像的图标表示。 | +| [fromHandle(byte[] handle)](#fromHandle-byte---) | 从指定的 Windows 图标句柄 (HICON) 创建 GDI+ [Icon](../../com.aspose.drawing/icon)。 | +| [deepClone()](#deepClone--) | 克隆 [Icon](../../com.aspose.drawing/icon),创建一个重复的图像。 | +| [dispose()](#dispose--) | 执行与释放、释放或重置非托管资源相关的应用程序定义任务。 | +| [save(OutputStream outputStream)](#save-java.io.OutputStream-) | 将此 [Icon](../../com.aspose.drawing/icon) 保存到指定的输出 java.io.InputStream。 | +| [toBitmap()](#toBitmap--) | 将此 [Icon](../../com.aspose.drawing/icon) 转换为 GDI+ [Bitmap](../../com.aspose.drawing/bitmap)。 | +| [toString()](#toString--) | 获取描述 [Icon](../../com.aspose.drawing/icon) 的可读字符串。 | +### Icon(String fileName) {#Icon-java.lang.String-} +``` +public Icon(String fileName) +``` + + +从指定的文件名初始化 [Icon](../../com.aspose.drawing/icon) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| fileName | java.lang.String | 要加载 [Icon](../../com.aspose.drawing/icon) 的文件。 | + +### Icon(InputStream stream) {#Icon-java.io.InputStream-} +``` +public Icon(InputStream stream) +``` + + +从指定的数据流初始化 [Icon](../../com.aspose.drawing/icon) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| stream | java.io.InputStream | 用于加载 [Icon](../../com.aspose.drawing/icon) 的数据流。 | + +### Icon(String fileName, Size size) {#Icon-java.lang.String-com.aspose.drawing.Size-} +``` +public Icon(String fileName, Size size) +``` + + +从指定的文件中以指定的大小初始化 [Icon](../../com.aspose.drawing/icon) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| fileName | java.lang.String | 包含图标数据的文件的名称和路径。 | +| size | [Size](../../com.aspose.drawing/size) | 所需的图标大小。 | + +### Icon(Icon original, Size size) {#Icon-com.aspose.drawing.Icon-com.aspose.drawing.Size-} +``` +public Icon(Icon original, Size size) +``` + + +初始化 [Icon](../../com.aspose.drawing/icon) 类的新实例,并尝试查找与请求大小匹配的图标版本。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| original | [Icon](../../com.aspose.drawing/icon) | 用于加载新尺寸图标的 [Icon](../../com.aspose.drawing/icon)。 | +| size | [Size](../../com.aspose.drawing/size) | 一个 `Size`([.getSize](../../null/\\#getSize)) 结构,指定新 [Icon](../../com.aspose.drawing/icon) 的高度和宽度。 | + +### Icon(Object type, String resource) {#Icon-java.lang.Object-java.lang.String-} +``` +public Icon(Object type, String resource) +``` + + +从指定程序集中的资源初始化 [Icon](../../com.aspose.drawing/icon) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| type | java.lang.Object | 一个指定要在其中查找资源的程序集的 Type。 | +| 资源 | java.lang.String | 要加载的资源名称。 | + +### Icon(InputStream stream, Size size) {#Icon-java.io.InputStream-com.aspose.drawing.Size-} +``` +public Icon(InputStream stream, Size size) +``` + + +从指定的流中以指定的大小初始化 [Icon](../../com.aspose.drawing/icon) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 流 | java.io.InputStream | 包含图标数据的流。 | +| size | [Size](../../com.aspose.drawing/size) | 所需的图标大小。 | + +### Icon(String fileName, int width, int height) {#Icon-java.lang.String-int-int-} +``` +public Icon(String fileName, int width, int height) +``` + + +从指定文件中使用指定的宽度和高度初始化 [Icon](../../com.aspose.drawing/icon) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| fileName | java.lang.String | 包含 [Icon](../../com.aspose.drawing/icon) 数据的文件的名称和路径。 | +| width | int | 所需的 [Icon](../../com.aspose.drawing/icon) 宽度。 | +| height | int | 所需的 [Icon](../../com.aspose.drawing/icon) 的高度。 | + +### Icon(Icon original, int width, int height) {#Icon-com.aspose.drawing.Icon-int-int-} +``` +public Icon(Icon original, int width, int height) +``` + + +初始化 [Icon](../../com.aspose.drawing/icon) 类的新实例,并尝试查找与请求尺寸匹配的图标版本。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| original | [Icon](../../com.aspose.drawing/icon) | 用于加载不同尺寸的图标。 | +| 宽度 | int | 新图标的宽度。 | +| 高度 | int | 新图标的高度。 | + +### Icon(InputStream stream, int width, int height) {#Icon-java.io.InputStream-int-int-} +``` +public Icon(InputStream stream, int width, int height) +``` + + +从指定的数据流中,并使用指定的宽度和高度,初始化 [Icon](../../com.aspose.drawing/icon) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 流 | java.io.InputStream | 用于加载图标的数据流。 | +| 宽度 | int | 图标的宽度(像素)。 | +| 高度 | int | 图标的高度(像素)。 | + +### getHandle() {#getHandle--} +``` +public System.IntPtr getHandle() +``` + + +获取此 [Icon](../../com.aspose.drawing/icon) 的句柄。这不是句柄的副本;请勿释放它。 + +值:图标的 Windows 句柄。 + +**Returns:** +com.aspose.ms.System.IntPtr +### getHeight() {#getHeight--} +``` +public int getHeight() +``` + + +获取此 [Icon](../../com.aspose.drawing/icon) 的高度。 + +值:此 [Icon](../../com.aspose.drawing/icon) 的高度。 + +**Returns:** +int +### getSize() {#getSize--} +``` +public Size getSize() +``` + + +获取此 [Icon](../../com.aspose.drawing/icon) 的大小。 + +值:一个 `Size`([.getSize](../../null/\#getSize)) 结构,指定此 [Icon](../../com.aspose.drawing/icon) 的宽度和高度。 + +**Returns:** +[Size](../../com.aspose.drawing/size) +### getWidth() {#getWidth--} +``` +public int getWidth() +``` + + +获取此 [Icon](../../com.aspose.drawing/icon) 的宽度。 + +值:此 [Icon](../../com.aspose.drawing/icon) 的宽度。 + +**Returns:** +int +### extractAssociatedIcon(String filePath) {#extractAssociatedIcon-java.lang.String-} +``` +public static Icon extractAssociatedIcon(String filePath) +``` + + +返回指定文件中包含的图像的图标表示。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| filePath | java.lang.String | 包含图像的文件路径。 | + +**Returns:** +[Icon](../../com.aspose.drawing/icon) - The [Icon](../../com.aspose.drawing/icon) representation of the image that is contained in the specified file. +### fromHandle(byte[] handle) {#fromHandle-byte---} +``` +public static Icon fromHandle(byte[] handle) +``` + + +从指定的 Windows 图标句柄 (HICON) 创建 GDI+ [Icon](../../com.aspose.drawing/icon)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| handle | byte[] | 指向图标的 Windows 句柄。 | + +**Returns:** +[Icon](../../com.aspose.drawing/icon) - The [Icon](../../com.aspose.drawing/icon) this method creates. +### deepClone() {#deepClone--} +``` +public Object deepClone() +``` + + +克隆 [Icon](../../com.aspose.drawing/icon),创建一个重复的图像。 + +**Returns:** +java.lang.Object - 可以强制转换为 [Icon](../../com.aspose.drawing/icon) 的对象。 +### dispose() {#dispose--} +``` +public void dispose() +``` + + +执行与释放、释放或重置非托管资源相关的应用程序定义任务。 + +### save(OutputStream outputStream) {#save-java.io.OutputStream-} +``` +public void save(OutputStream outputStream) +``` + + +将此 [Icon](../../com.aspose.drawing/icon) 保存到指定的输出 java.io.InputStream。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| outputStream | java.io.OutputStream | 要保存到的 java.io.InputStream。 | + +### toBitmap() {#toBitmap--} +``` +public Bitmap toBitmap() +``` + + +将此 [Icon](../../com.aspose.drawing/icon) 转换为 GDI+ [Bitmap](../../com.aspose.drawing/bitmap)。 + +**Returns:** +[Bitmap](../../com.aspose.drawing/bitmap) - A [Bitmap](../../com.aspose.drawing/bitmap) that represents the converted [Icon](../../com.aspose.drawing/icon). +### toString() {#toString--} +``` +public String toString() +``` + + +获取描述 [Icon](../../com.aspose.drawing/icon) 的可读字符串。 + +**Returns:** +java.lang.String - 描述 [Icon](../../com.aspose.drawing/icon) 的字符串。 diff --git a/chinese/java/com.aspose.drawing/knowncolor/_index.md b/chinese/java/com.aspose.drawing/knowncolor/_index.md new file mode 100644 index 000000000..53705745e --- /dev/null +++ b/chinese/java/com.aspose.drawing/knowncolor/_index.md @@ -0,0 +1,1585 @@ +--- +title: KnownColor +second_title: Aspose.Drawing for Java API 参考 +description: 指定已知的系统颜色。 +type: docs +weight: 31 +url: /zh/java/com.aspose.drawing/knowncolor/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class KnownColor extends System.Enum +``` + +指定已知的系统颜色。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [ActiveBorder](#ActiveBorder) | 系统定义的活动窗口边框颜色。 | +| [ActiveCaption](#ActiveCaption) | 系统定义的活动窗口标题栏背景颜色。 | +| [ActiveCaptionText](#ActiveCaptionText) | 系统定义的活动窗口标题栏中文本颜色。 | +| [AppWorkspace](#AppWorkspace) | 系统定义的应用程序工作区颜色。 | +| [Control](#Control) | 系统定义的 3-D 元素的面颜色。 | +| [ControlDark](#ControlDark) | 系统定义的 3-D 元素的阴影颜色。 | +| [ControlDarkDark](#ControlDarkDark) | 系统定义的 3-D 元素的深阴影颜色。 | +| [ControlLight](#ControlLight) | 系统定义的 3-D 元素的浅色。 | +| [ControlLightLight](#ControlLightLight) | 系统定义的 3-D 元素的突出显示颜色。 | +| [ControlText](#ControlText) | 系统定义的 3-D 元素中文本的颜色。 | +| [Desktop](#Desktop) | 系统定义的桌面颜色。 | +| [GrayText](#GrayText) | 系统定义的暗淡文本颜色。 | +| [Highlight](#Highlight) | 系统定义的已选项目背景颜色。 | +| [HighlightText](#HighlightText) | 系统定义的已选项目文本颜色。 | +| [HotTrack](#HotTrack) | 系统定义的用于标识热跟踪项的颜色。 | +| [InactiveBorder](#InactiveBorder) | 系统定义的非活动窗口边框颜色。 | +| [InactiveCaption](#InactiveCaption) | 系统定义的非活动窗口标题栏背景颜色。 | +| [InactiveCaptionText](#InactiveCaptionText) | 系统定义的非活动窗口标题栏中文本的颜色。 | +| [Info](#Info) | 系统定义的工具提示背景颜色。 | +| [InfoText](#InfoText) | 系统定义的工具提示文本颜色。 | +| [Menu](#Menu) | 系统定义的菜单背景颜色。 | +| [MenuText](#MenuText) | 系统定义的菜单文本颜色。 | +| [ScrollBar](#ScrollBar) | 系统定义的滚动条背景颜色。 | +| [Window](#Window) | 系统定义的窗口客户区背景颜色。 | +| [WindowFrame](#WindowFrame) | 系统定义的窗口框架颜色。 | +| [WindowText](#WindowText) | 系统定义的窗口客户区中文本颜色。 | +| [Transparent](#Transparent) | 系统定义的颜色。 | +| [AliceBlue](#AliceBlue) | 系统定义的颜色。 | +| [AntiqueWhite](#AntiqueWhite) | 系统定义的颜色。 | +| [Aqua](#Aqua) | 系统定义的颜色。 | +| [Aquamarine](#Aquamarine) | 系统定义的颜色。 | +| [Azure](#Azure) | 系统定义的颜色。 | +| [Beige](#Beige) | 系统定义的颜色。 | +| [Bisque](#Bisque) | 系统定义的颜色。 | +| [Black](#Black) | 系统定义的颜色。 | +| [BlanchedAlmond](#BlanchedAlmond) | 系统定义的颜色。 | +| [Blue](#Blue) | 系统定义的颜色。 | +| [BlueViolet](#BlueViolet) | 系统定义的颜色。 | +| [Brown](#Brown) | 系统定义的颜色。 | +| [BurlyWood](#BurlyWood) | 系统定义的颜色。 | +| [CadetBlue](#CadetBlue) | 系统定义的颜色。 | +| [Chartreuse](#Chartreuse) | 系统定义的颜色。 | +| [Chocolate](#Chocolate) | 系统定义的颜色。 | +| [Coral](#Coral) | 系统定义的颜色。 | +| [CornflowerBlue](#CornflowerBlue) | 系统定义的颜色。 | +| [Cornsilk](#Cornsilk) | 系统定义的颜色。 | +| [Crimson](#Crimson) | 系统定义的颜色。 | +| [Cyan](#Cyan) | 系统定义的颜色。 | +| [DarkBlue](#DarkBlue) | 系统定义的颜色。 | +| [DarkCyan](#DarkCyan) | 系统定义的颜色。 | +| [DarkGoldenrod](#DarkGoldenrod) | 系统定义的颜色。 | +| [DarkGray](#DarkGray) | 系统定义的颜色。 | +| [DarkGreen](#DarkGreen) | 系统定义的颜色。 | +| [DarkKhaki](#DarkKhaki) | 系统定义的颜色。 | +| [DarkMagenta](#DarkMagenta) | 系统定义的颜色。 | +| [DarkOliveGreen](#DarkOliveGreen) | 系统定义的颜色。 | +| [DarkOrange](#DarkOrange) | 系统定义的颜色。 | +| [DarkOrchid](#DarkOrchid) | 系统定义的颜色。 | +| [DarkRed](#DarkRed) | 系统定义的颜色。 | +| [DarkSalmon](#DarkSalmon) | 系统定义的颜色。 | +| [DarkSeaGreen](#DarkSeaGreen) | 系统定义的颜色。 | +| [DarkSlateBlue](#DarkSlateBlue) | 系统定义的颜色。 | +| [DarkSlateGray](#DarkSlateGray) | 系统定义的颜色。 | +| [DarkTurquoise](#DarkTurquoise) | 系统定义的颜色。 | +| [DarkViolet](#DarkViolet) | 系统定义的颜色。 | +| [DeepPink](#DeepPink) | 系统定义的颜色。 | +| [DeepSkyBlue](#DeepSkyBlue) | 系统定义的颜色。 | +| [DimGray](#DimGray) | 系统定义的颜色。 | +| [DodgerBlue](#DodgerBlue) | 系统定义的颜色。 | +| [Firebrick](#Firebrick) | 系统定义的颜色。 | +| [FloralWhite](#FloralWhite) | 系统定义的颜色。 | +| [ForestGreen](#ForestGreen) | 系统定义的颜色。 | +| [Fuchsia](#Fuchsia) | 系统定义的颜色。 | +| [Gainsboro](#Gainsboro) | 系统定义的颜色。 | +| [GhostWhite](#GhostWhite) | 系统定义的颜色。 | +| [Gold](#Gold) | 系统定义的颜色。 | +| [Goldenrod](#Goldenrod) | 系统定义的颜色。 | +| [Gray](#Gray) | 系统定义的颜色。 | +| [Green](#Green) | 系统定义的颜色。 | +| [GreenYellow](#GreenYellow) | 系统定义的颜色。 | +| [Honeydew](#Honeydew) | 系统定义的颜色。 | +| [HotPink](#HotPink) | 系统定义的颜色。 | +| [IndianRed](#IndianRed) | 系统定义的颜色。 | +| [Indigo](#Indigo) | 系统定义的颜色。 | +| [Ivory](#Ivory) | 系统定义的颜色。 | +| [Khaki](#Khaki) | 系统定义的颜色。 | +| [Lavender](#Lavender) | 系统定义的颜色。 | +| [LavenderBlush](#LavenderBlush) | 系统定义的颜色。 | +| [LawnGreen](#LawnGreen) | 系统定义的颜色。 | +| [LemonChiffon](#LemonChiffon) | 系统定义的颜色。 | +| [LightBlue](#LightBlue) | 系统定义的颜色。 | +| [LightCoral](#LightCoral) | 系统定义的颜色。 | +| [LightCyan](#LightCyan) | 系统定义的颜色。 | +| [LightGoldenrodYellow](#LightGoldenrodYellow) | 系统定义的颜色。 | +| [LightGray](#LightGray) | 系统定义的颜色。 | +| [LightGreen](#LightGreen) | 系统定义的颜色。 | +| [LightPink](#LightPink) | 系统定义的颜色。 | +| [LightSalmon](#LightSalmon) | 系统定义的颜色。 | +| [LightSeaGreen](#LightSeaGreen) | 系统定义的颜色。 | +| [LightSkyBlue](#LightSkyBlue) | 系统定义的颜色。 | +| [LightSlateGray](#LightSlateGray) | 系统定义的颜色。 | +| [LightSteelBlue](#LightSteelBlue) | 系统定义的颜色。 | +| [LightYellow](#LightYellow) | 系统定义的颜色。 | +| [Lime](#Lime) | 系统定义的颜色。 | +| [LimeGreen](#LimeGreen) | 系统定义的颜色。 | +| [Linen](#Linen) | 系统定义的颜色。 | +| [Magenta](#Magenta) | 系统定义的颜色。 | +| [Maroon](#Maroon) | 系统定义的颜色。 | +| [MediumAquamarine](#MediumAquamarine) | 系统定义的颜色。 | +| [MediumBlue](#MediumBlue) | 系统定义的颜色。 | +| [MediumOrchid](#MediumOrchid) | 系统定义的颜色。 | +| [MediumPurple](#MediumPurple) | 系统定义的颜色。 | +| [MediumSeaGreen](#MediumSeaGreen) | 系统定义的颜色。 | +| [MediumSlateBlue](#MediumSlateBlue) | 系统定义的颜色。 | +| [MediumSpringGreen](#MediumSpringGreen) | 系统定义的颜色。 | +| [MediumTurquoise](#MediumTurquoise) | 系统定义的颜色。 | +| [MediumVioletRed](#MediumVioletRed) | 系统定义的颜色。 | +| [MidnightBlue](#MidnightBlue) | 系统定义的颜色。 | +| [MintCream](#MintCream) | 系统定义的颜色。 | +| [MistyRose](#MistyRose) | 系统定义的颜色。 | +| [Moccasin](#Moccasin) | 系统定义的颜色。 | +| [NavajoWhite](#NavajoWhite) | 系统定义的颜色。 | +| [Navy](#Navy) | 系统定义的颜色。 | +| [OldLace](#OldLace) | 系统定义的颜色。 | +| [Olive](#Olive) | 系统定义的颜色。 | +| [OliveDrab](#OliveDrab) | 系统定义的颜色。 | +| [Orange](#Orange) | 系统定义的颜色。 | +| [OrangeRed](#OrangeRed) | 系统定义的颜色。 | +| [Orchid](#Orchid) | 系统定义的颜色。 | +| [PaleGoldenrod](#PaleGoldenrod) | 系统定义的颜色。 | +| [PaleGreen](#PaleGreen) | 系统定义的颜色。 | +| [PaleTurquoise](#PaleTurquoise) | 系统定义的颜色。 | +| [PaleVioletRed](#PaleVioletRed) | 系统定义的颜色。 | +| [PapayaWhip](#PapayaWhip) | 系统定义的颜色。 | +| [PeachPuff](#PeachPuff) | 系统定义的颜色。 | +| [Peru](#Peru) | 系统定义的颜色。 | +| [Pink](#Pink) | 系统定义的颜色。 | +| [Plum](#Plum) | 系统定义的颜色。 | +| [PowderBlue](#PowderBlue) | 系统定义的颜色。 | +| [Purple](#Purple) | 系统定义的颜色。 | +| [Red](#Red) | 系统定义的颜色。 | +| [RosyBrown](#RosyBrown) | 系统定义的颜色。 | +| [RoyalBlue](#RoyalBlue) | 系统定义的颜色。 | +| [SaddleBrown](#SaddleBrown) | 系统定义的颜色。 | +| [Salmon](#Salmon) | 系统定义的颜色。 | +| [SandyBrown](#SandyBrown) | 系统定义的颜色。 | +| [SeaGreen](#SeaGreen) | 系统定义的颜色。 | +| [SeaShell](#SeaShell) | 系统定义的颜色。 | +| [Sienna](#Sienna) | 系统定义的颜色。 | +| [Silver](#Silver) | 系统定义的颜色。 | +| [SkyBlue](#SkyBlue) | 系统定义的颜色。 | +| [SlateBlue](#SlateBlue) | 系统定义的颜色。 | +| [SlateGray](#SlateGray) | 系统定义的颜色。 | +| [Snow](#Snow) | 系统定义的颜色。 | +| [SpringGreen](#SpringGreen) | 系统定义的颜色。 | +| [SteelBlue](#SteelBlue) | 系统定义的颜色。 | +| [Tan](#Tan) | 系统定义的颜色。 | +| [Teal](#Teal) | 系统定义的颜色。 | +| [Thistle](#Thistle) | 系统定义的颜色。 | +| [Tomato](#Tomato) | 系统定义的颜色。 | +| [Turquoise](#Turquoise) | 系统定义的颜色。 | +| [Violet](#Violet) | 系统定义的颜色。 | +| [Wheat](#Wheat) | 系统定义的颜色。 | +| [White](#White) | 系统定义的颜色。 | +| [WhiteSmoke](#WhiteSmoke) | 系统定义的颜色。 | +| [Yellow](#Yellow) | 系统定义的颜色。 | +| [YellowGreen](#YellowGreen) | 系统定义的颜色。 | +| [ButtonFace](#ButtonFace) | 系统定义的 3-D 元素的面颜色。 | +| [ButtonHighlight](#ButtonHighlight) | 系统定义的 3-D 元素的突出显示颜色。 | +| [ButtonShadow](#ButtonShadow) | 系统定义的 3-D 元素的阴影颜色。 | +| [GradientActiveCaption](#GradientActiveCaption) | 系统定义的活动窗口标题栏颜色渐变中最浅的颜色。 | +| [GradientInactiveCaption](#GradientInactiveCaption) | 系统定义的非活动窗口标题栏颜色渐变中最浅的颜色。 | +| [MenuBar](#MenuBar) | 系统定义的菜单栏背景颜色。 | +| [MenuHighlight](#MenuHighlight) | 系统定义的在菜单显示为平面菜单时用于突出显示菜单项的颜色。 | +### ActiveBorder {#ActiveBorder} +``` +public static final int ActiveBorder +``` + + +系统定义的活动窗口边框颜色。 + +### ActiveCaption {#ActiveCaption} +``` +public static final int ActiveCaption +``` + + +系统定义的活动窗口标题栏背景颜色。 + +### ActiveCaptionText {#ActiveCaptionText} +``` +public static final int ActiveCaptionText +``` + + +系统定义的活动窗口标题栏中文本颜色。 + +### AppWorkspace {#AppWorkspace} +``` +public static final int AppWorkspace +``` + + +系统定义的应用程序工作区颜色。应用程序工作区是多文档视图中未被文档占用的区域。 + +### Control {#Control} +``` +public static final int Control +``` + + +系统定义的 3-D 元素的面颜色。 + +### ControlDark {#ControlDark} +``` +public static final int ControlDark +``` + + +系统定义的3D 元素阴影颜色。阴影颜色应用于面向远离光源的3D 元素部分。 + +### ControlDarkDark {#ControlDarkDark} +``` +public static final int ControlDarkDark +``` + + +系统定义的3D 元素深阴影颜色。深阴影颜色应用于3D 元素中最暗的部分。 + +### ControlLight {#ControlLight} +``` +public static final int ControlLight +``` + + +系统定义的3D 元素光照颜色。光照颜色应用于面向光源的3D 元素部分。 + +### ControlLightLight {#ControlLightLight} +``` +public static final int ControlLightLight +``` + + +系统定义的3D 元素高光颜色。高光颜色应用于3D 元素中最亮的部分。 + +### ControlText {#ControlText} +``` +public static final int ControlText +``` + + +系统定义的 3-D 元素中文本的颜色。 + +### Desktop {#Desktop} +``` +public static final int Desktop +``` + + +系统定义的桌面颜色。 + +### GrayText {#GrayText} +``` +public static final int GrayText +``` + + +系统定义的暗淡文本颜色。列表中被禁用的项以暗淡文本显示。 + +### Highlight {#Highlight} +``` +public static final int Highlight +``` + + +系统定义的已选项目背景颜色。包括已选菜单项以及已选文本。 + +### HighlightText {#HighlightText} +``` +public static final int HighlightText +``` + + +系统定义的已选项目文本颜色。 + +### HotTrack {#HotTrack} +``` +public static final int HotTrack +``` + + +系统定义的用于标识热跟踪项的颜色。单击热跟踪项即可执行该项。 + +### InactiveBorder {#InactiveBorder} +``` +public static final int InactiveBorder +``` + + +系统定义的非活动窗口边框颜色。 + +### InactiveCaption {#InactiveCaption} +``` +public static final int InactiveCaption +``` + + +系统定义的非活动窗口标题栏背景颜色。 + +### InactiveCaptionText {#InactiveCaptionText} +``` +public static final int InactiveCaptionText +``` + + +系统定义的非活动窗口标题栏中文本的颜色。 + +### Info {#Info} +``` +public static final int Info +``` + + +系统定义的工具提示背景颜色。 + +### InfoText {#InfoText} +``` +public static final int InfoText +``` + + +系统定义的工具提示文本颜色。 + +### Menu {#Menu} +``` +public static final int Menu +``` + + +系统定义的菜单背景颜色。 + +### MenuText {#MenuText} +``` +public static final int MenuText +``` + + +系统定义的菜单文本颜色。 + +### ScrollBar {#ScrollBar} +``` +public static final int ScrollBar +``` + + +系统定义的滚动条背景颜色。 + +### Window {#Window} +``` +public static final int Window +``` + + +系统定义的窗口客户区背景颜色。 + +### WindowFrame {#WindowFrame} +``` +public static final int WindowFrame +``` + + +系统定义的窗口框架颜色。 + +### WindowText {#WindowText} +``` +public static final int WindowText +``` + + +系统定义的窗口客户区中文本颜色。 + +### Transparent {#Transparent} +``` +public static final int Transparent +``` + + +系统定义的颜色。 + +### AliceBlue {#AliceBlue} +``` +public static final int AliceBlue +``` + + +系统定义的颜色。 + +### AntiqueWhite {#AntiqueWhite} +``` +public static final int AntiqueWhite +``` + + +系统定义的颜色。 + +### Aqua {#Aqua} +``` +public static final int Aqua +``` + + +系统定义的颜色。 + +### Aquamarine {#Aquamarine} +``` +public static final int Aquamarine +``` + + +系统定义的颜色。 + +### Azure {#Azure} +``` +public static final int Azure +``` + + +系统定义的颜色。 + +### Beige {#Beige} +``` +public static final int Beige +``` + + +系统定义的颜色。 + +### Bisque {#Bisque} +``` +public static final int Bisque +``` + + +系统定义的颜色。 + +### Black {#Black} +``` +public static final int Black +``` + + +系统定义的颜色。 + +### BlanchedAlmond {#BlanchedAlmond} +``` +public static final int BlanchedAlmond +``` + + +系统定义的颜色。 + +### Blue {#Blue} +``` +public static final int Blue +``` + + +系统定义的颜色。 + +### BlueViolet {#BlueViolet} +``` +public static final int BlueViolet +``` + + +系统定义的颜色。 + +### Brown {#Brown} +``` +public static final int Brown +``` + + +系统定义的颜色。 + +### BurlyWood {#BurlyWood} +``` +public static final int BurlyWood +``` + + +系统定义的颜色。 + +### CadetBlue {#CadetBlue} +``` +public static final int CadetBlue +``` + + +系统定义的颜色。 + +### Chartreuse {#Chartreuse} +``` +public static final int Chartreuse +``` + + +系统定义的颜色。 + +### Chocolate {#Chocolate} +``` +public static final int Chocolate +``` + + +系统定义的颜色。 + +### Coral {#Coral} +``` +public static final int Coral +``` + + +系统定义的颜色。 + +### CornflowerBlue {#CornflowerBlue} +``` +public static final int CornflowerBlue +``` + + +系统定义的颜色。 + +### Cornsilk {#Cornsilk} +``` +public static final int Cornsilk +``` + + +系统定义的颜色。 + +### Crimson {#Crimson} +``` +public static final int Crimson +``` + + +系统定义的颜色。 + +### Cyan {#Cyan} +``` +public static final int Cyan +``` + + +系统定义的颜色。 + +### DarkBlue {#DarkBlue} +``` +public static final int DarkBlue +``` + + +系统定义的颜色。 + +### DarkCyan {#DarkCyan} +``` +public static final int DarkCyan +``` + + +系统定义的颜色。 + +### DarkGoldenrod {#DarkGoldenrod} +``` +public static final int DarkGoldenrod +``` + + +系统定义的颜色。 + +### DarkGray {#DarkGray} +``` +public static final int DarkGray +``` + + +系统定义的颜色。 + +### DarkGreen {#DarkGreen} +``` +public static final int DarkGreen +``` + + +系统定义的颜色。 + +### DarkKhaki {#DarkKhaki} +``` +public static final int DarkKhaki +``` + + +系统定义的颜色。 + +### DarkMagenta {#DarkMagenta} +``` +public static final int DarkMagenta +``` + + +系统定义的颜色。 + +### DarkOliveGreen {#DarkOliveGreen} +``` +public static final int DarkOliveGreen +``` + + +系统定义的颜色。 + +### DarkOrange {#DarkOrange} +``` +public static final int DarkOrange +``` + + +系统定义的颜色。 + +### DarkOrchid {#DarkOrchid} +``` +public static final int DarkOrchid +``` + + +系统定义的颜色。 + +### DarkRed {#DarkRed} +``` +public static final int DarkRed +``` + + +系统定义的颜色。 + +### DarkSalmon {#DarkSalmon} +``` +public static final int DarkSalmon +``` + + +系统定义的颜色。 + +### DarkSeaGreen {#DarkSeaGreen} +``` +public static final int DarkSeaGreen +``` + + +系统定义的颜色。 + +### DarkSlateBlue {#DarkSlateBlue} +``` +public static final int DarkSlateBlue +``` + + +系统定义的颜色。 + +### DarkSlateGray {#DarkSlateGray} +``` +public static final int DarkSlateGray +``` + + +系统定义的颜色。 + +### DarkTurquoise {#DarkTurquoise} +``` +public static final int DarkTurquoise +``` + + +系统定义的颜色。 + +### DarkViolet {#DarkViolet} +``` +public static final int DarkViolet +``` + + +系统定义的颜色。 + +### DeepPink {#DeepPink} +``` +public static final int DeepPink +``` + + +系统定义的颜色。 + +### DeepSkyBlue {#DeepSkyBlue} +``` +public static final int DeepSkyBlue +``` + + +系统定义的颜色。 + +### DimGray {#DimGray} +``` +public static final int DimGray +``` + + +系统定义的颜色。 + +### DodgerBlue {#DodgerBlue} +``` +public static final int DodgerBlue +``` + + +系统定义的颜色。 + +### Firebrick {#Firebrick} +``` +public static final int Firebrick +``` + + +系统定义的颜色。 + +### FloralWhite {#FloralWhite} +``` +public static final int FloralWhite +``` + + +系统定义的颜色。 + +### ForestGreen {#ForestGreen} +``` +public static final int ForestGreen +``` + + +系统定义的颜色。 + +### Fuchsia {#Fuchsia} +``` +public static final int Fuchsia +``` + + +系统定义的颜色。 + +### Gainsboro {#Gainsboro} +``` +public static final int Gainsboro +``` + + +系统定义的颜色。 + +### GhostWhite {#GhostWhite} +``` +public static final int GhostWhite +``` + + +系统定义的颜色。 + +### Gold {#Gold} +``` +public static final int Gold +``` + + +系统定义的颜色。 + +### Goldenrod {#Goldenrod} +``` +public static final int Goldenrod +``` + + +系统定义的颜色。 + +### Gray {#Gray} +``` +public static final int Gray +``` + + +系统定义的颜色。 + +### Green {#Green} +``` +public static final int Green +``` + + +系统定义的颜色。 + +### GreenYellow {#GreenYellow} +``` +public static final int GreenYellow +``` + + +系统定义的颜色。 + +### Honeydew {#Honeydew} +``` +public static final int Honeydew +``` + + +系统定义的颜色。 + +### HotPink {#HotPink} +``` +public static final int HotPink +``` + + +系统定义的颜色。 + +### IndianRed {#IndianRed} +``` +public static final int IndianRed +``` + + +系统定义的颜色。 + +### Indigo {#Indigo} +``` +public static final int Indigo +``` + + +系统定义的颜色。 + +### Ivory {#Ivory} +``` +public static final int Ivory +``` + + +系统定义的颜色。 + +### Khaki {#Khaki} +``` +public static final int Khaki +``` + + +系统定义的颜色。 + +### Lavender {#Lavender} +``` +public static final int Lavender +``` + + +系统定义的颜色。 + +### LavenderBlush {#LavenderBlush} +``` +public static final int LavenderBlush +``` + + +系统定义的颜色。 + +### LawnGreen {#LawnGreen} +``` +public static final int LawnGreen +``` + + +系统定义的颜色。 + +### LemonChiffon {#LemonChiffon} +``` +public static final int LemonChiffon +``` + + +系统定义的颜色。 + +### LightBlue {#LightBlue} +``` +public static final int LightBlue +``` + + +系统定义的颜色。 + +### LightCoral {#LightCoral} +``` +public static final int LightCoral +``` + + +系统定义的颜色。 + +### LightCyan {#LightCyan} +``` +public static final int LightCyan +``` + + +系统定义的颜色。 + +### LightGoldenrodYellow {#LightGoldenrodYellow} +``` +public static final int LightGoldenrodYellow +``` + + +系统定义的颜色。 + +### LightGray {#LightGray} +``` +public static final int LightGray +``` + + +系统定义的颜色。 + +### LightGreen {#LightGreen} +``` +public static final int LightGreen +``` + + +系统定义的颜色。 + +### LightPink {#LightPink} +``` +public static final int LightPink +``` + + +系统定义的颜色。 + +### LightSalmon {#LightSalmon} +``` +public static final int LightSalmon +``` + + +系统定义的颜色。 + +### LightSeaGreen {#LightSeaGreen} +``` +public static final int LightSeaGreen +``` + + +系统定义的颜色。 + +### LightSkyBlue {#LightSkyBlue} +``` +public static final int LightSkyBlue +``` + + +系统定义的颜色。 + +### LightSlateGray {#LightSlateGray} +``` +public static final int LightSlateGray +``` + + +系统定义的颜色。 + +### LightSteelBlue {#LightSteelBlue} +``` +public static final int LightSteelBlue +``` + + +系统定义的颜色。 + +### LightYellow {#LightYellow} +``` +public static final int LightYellow +``` + + +系统定义的颜色。 + +### Lime {#Lime} +``` +public static final int Lime +``` + + +系统定义的颜色。 + +### LimeGreen {#LimeGreen} +``` +public static final int LimeGreen +``` + + +系统定义的颜色。 + +### Linen {#Linen} +``` +public static final int Linen +``` + + +系统定义的颜色。 + +### Magenta {#Magenta} +``` +public static final int Magenta +``` + + +系统定义的颜色。 + +### Maroon {#Maroon} +``` +public static final int Maroon +``` + + +系统定义的颜色。 + +### MediumAquamarine {#MediumAquamarine} +``` +public static final int MediumAquamarine +``` + + +系统定义的颜色。 + +### MediumBlue {#MediumBlue} +``` +public static final int MediumBlue +``` + + +系统定义的颜色。 + +### MediumOrchid {#MediumOrchid} +``` +public static final int MediumOrchid +``` + + +系统定义的颜色。 + +### MediumPurple {#MediumPurple} +``` +public static final int MediumPurple +``` + + +系统定义的颜色。 + +### MediumSeaGreen {#MediumSeaGreen} +``` +public static final int MediumSeaGreen +``` + + +系统定义的颜色。 + +### MediumSlateBlue {#MediumSlateBlue} +``` +public static final int MediumSlateBlue +``` + + +系统定义的颜色。 + +### MediumSpringGreen {#MediumSpringGreen} +``` +public static final int MediumSpringGreen +``` + + +系统定义的颜色。 + +### MediumTurquoise {#MediumTurquoise} +``` +public static final int MediumTurquoise +``` + + +系统定义的颜色。 + +### MediumVioletRed {#MediumVioletRed} +``` +public static final int MediumVioletRed +``` + + +系统定义的颜色。 + +### MidnightBlue {#MidnightBlue} +``` +public static final int MidnightBlue +``` + + +系统定义的颜色。 + +### MintCream {#MintCream} +``` +public static final int MintCream +``` + + +系统定义的颜色。 + +### MistyRose {#MistyRose} +``` +public static final int MistyRose +``` + + +系统定义的颜色。 + +### Moccasin {#Moccasin} +``` +public static final int Moccasin +``` + + +系统定义的颜色。 + +### NavajoWhite {#NavajoWhite} +``` +public static final int NavajoWhite +``` + + +系统定义的颜色。 + +### Navy {#Navy} +``` +public static final int Navy +``` + + +系统定义的颜色。 + +### OldLace {#OldLace} +``` +public static final int OldLace +``` + + +系统定义的颜色。 + +### Olive {#Olive} +``` +public static final int Olive +``` + + +系统定义的颜色。 + +### OliveDrab {#OliveDrab} +``` +public static final int OliveDrab +``` + + +系统定义的颜色。 + +### Orange {#Orange} +``` +public static final int Orange +``` + + +系统定义的颜色。 + +### OrangeRed {#OrangeRed} +``` +public static final int OrangeRed +``` + + +系统定义的颜色。 + +### Orchid {#Orchid} +``` +public static final int Orchid +``` + + +系统定义的颜色。 + +### PaleGoldenrod {#PaleGoldenrod} +``` +public static final int PaleGoldenrod +``` + + +系统定义的颜色。 + +### PaleGreen {#PaleGreen} +``` +public static final int PaleGreen +``` + + +系统定义的颜色。 + +### PaleTurquoise {#PaleTurquoise} +``` +public static final int PaleTurquoise +``` + + +系统定义的颜色。 + +### PaleVioletRed {#PaleVioletRed} +``` +public static final int PaleVioletRed +``` + + +系统定义的颜色。 + +### PapayaWhip {#PapayaWhip} +``` +public static final int PapayaWhip +``` + + +系统定义的颜色。 + +### PeachPuff {#PeachPuff} +``` +public static final int PeachPuff +``` + + +系统定义的颜色。 + +### Peru {#Peru} +``` +public static final int Peru +``` + + +系统定义的颜色。 + +### Pink {#Pink} +``` +public static final int Pink +``` + + +系统定义的颜色。 + +### Plum {#Plum} +``` +public static final int Plum +``` + + +系统定义的颜色。 + +### PowderBlue {#PowderBlue} +``` +public static final int PowderBlue +``` + + +系统定义的颜色。 + +### Purple {#Purple} +``` +public static final int Purple +``` + + +系统定义的颜色。 + +### Red {#Red} +``` +public static final int Red +``` + + +系统定义的颜色。 + +### RosyBrown {#RosyBrown} +``` +public static final int RosyBrown +``` + + +系统定义的颜色。 + +### RoyalBlue {#RoyalBlue} +``` +public static final int RoyalBlue +``` + + +系统定义的颜色。 + +### SaddleBrown {#SaddleBrown} +``` +public static final int SaddleBrown +``` + + +系统定义的颜色。 + +### Salmon {#Salmon} +``` +public static final int Salmon +``` + + +系统定义的颜色。 + +### SandyBrown {#SandyBrown} +``` +public static final int SandyBrown +``` + + +系统定义的颜色。 + +### SeaGreen {#SeaGreen} +``` +public static final int SeaGreen +``` + + +系统定义的颜色。 + +### SeaShell {#SeaShell} +``` +public static final int SeaShell +``` + + +系统定义的颜色。 + +### Sienna {#Sienna} +``` +public static final int Sienna +``` + + +系统定义的颜色。 + +### Silver {#Silver} +``` +public static final int Silver +``` + + +系统定义的颜色。 + +### SkyBlue {#SkyBlue} +``` +public static final int SkyBlue +``` + + +系统定义的颜色。 + +### SlateBlue {#SlateBlue} +``` +public static final int SlateBlue +``` + + +系统定义的颜色。 + +### SlateGray {#SlateGray} +``` +public static final int SlateGray +``` + + +系统定义的颜色。 + +### Snow {#Snow} +``` +public static final int Snow +``` + + +系统定义的颜色。 + +### SpringGreen {#SpringGreen} +``` +public static final int SpringGreen +``` + + +系统定义的颜色。 + +### SteelBlue {#SteelBlue} +``` +public static final int SteelBlue +``` + + +系统定义的颜色。 + +### Tan {#Tan} +``` +public static final int Tan +``` + + +系统定义的颜色。 + +### Teal {#Teal} +``` +public static final int Teal +``` + + +系统定义的颜色。 + +### Thistle {#Thistle} +``` +public static final int Thistle +``` + + +系统定义的颜色。 + +### Tomato {#Tomato} +``` +public static final int Tomato +``` + + +系统定义的颜色。 + +### Turquoise {#Turquoise} +``` +public static final int Turquoise +``` + + +系统定义的颜色。 + +### Violet {#Violet} +``` +public static final int Violet +``` + + +系统定义的颜色。 + +### Wheat {#Wheat} +``` +public static final int Wheat +``` + + +系统定义的颜色。 + +### White {#White} +``` +public static final int White +``` + + +系统定义的颜色。 + +### WhiteSmoke {#WhiteSmoke} +``` +public static final int WhiteSmoke +``` + + +系统定义的颜色。 + +### Yellow {#Yellow} +``` +public static final int Yellow +``` + + +系统定义的颜色。 + +### YellowGreen {#YellowGreen} +``` +public static final int YellowGreen +``` + + +系统定义的颜色。 + +### ButtonFace {#ButtonFace} +``` +public static final int ButtonFace +``` + + +系统定义的 3-D 元素的面颜色。 + +### ButtonHighlight {#ButtonHighlight} +``` +public static final int ButtonHighlight +``` + + +系统定义的3D 元素高亮颜色。此颜色应用于面向光源的3D 元素部分。 + +### ButtonShadow {#ButtonShadow} +``` +public static final int ButtonShadow +``` + + +系统定义的3D 元素阴影颜色。此颜色应用于面向远离光源的3D 元素部分。 + +### GradientActiveCaption {#GradientActiveCaption} +``` +public static final int GradientActiveCaption +``` + + +系统定义的活动窗口标题栏颜色渐变中最浅的颜色。 + +### GradientInactiveCaption {#GradientInactiveCaption} +``` +public static final int GradientInactiveCaption +``` + + +系统定义的非活动窗口标题栏颜色渐变中最浅的颜色。 + +### MenuBar {#MenuBar} +``` +public static final int MenuBar +``` + + +系统定义的菜单栏背景颜色。 + +### MenuHighlight {#MenuHighlight} +``` +public static final int MenuHighlight +``` + + +系统定义的在菜单显示为平面菜单时用于突出显示菜单项的颜色。 + diff --git a/chinese/java/com.aspose.drawing/license/_index.md b/chinese/java/com.aspose.drawing/license/_index.md new file mode 100644 index 000000000..ec28fd2e5 --- /dev/null +++ b/chinese/java/com.aspose.drawing/license/_index.md @@ -0,0 +1,189 @@ +--- +title: License +second_title: Aspose.Drawing for Java API 参考 +description: 提供对组件授权的方法。 +type: docs +weight: 32 +url: /zh/java/com.aspose.drawing/license/ +--- +**Inheritance:** +java.lang.Object +``` +public class License +``` + +提供对组件授权的方法。 + +-------------------- + +> ``` +> In this example, an attempt will be made to find a license file named MyLicense.lic +> in the folder that contains +> ` +> the component, in the folder that contains the calling assembly, +> in the folder of the entry assembly and then in the embedded resources of the calling assembly. +> +> [C#] +> License license = new License(); +> license.SetLicense("MyLicense.lic"); +> +> ` +> ``` +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [License()](#License--) | 初始化此类的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [setLicense(String licenseName)](#setLicense-java.lang.String-) | 为组件授权。 | +| [setLicense(InputStream stream)](#setLicense-java.io.InputStream-) | 为组件授权。 | +### License() {#License--} +``` +public License() +``` + + +初始化此类的新实例。 + +-------------------- + +> ``` +> In this example, an attempt will be made to find a license file named MyLicense.lic +> in the folder that contains +> ` +> the component, in the folder that contains the calling assembly, +> in the folder of the entry assembly and then in the embedded resources of the calling assembly. +> +> [C#] +> License license = new License(); +> license.SetLicense("MyLicense.lic"); +> [Visual Basic] +> Dim license As license = New license +> License.SetLicense("MyLicense.lic") +> +> ` +> ` +> the component jar file: +> +> License license = new License(); +> license.setLicense("MyLicense.lic"); +> +> ` +> ``` + +### setLicense(String licenseName) {#setLicense-java.lang.String-} +``` +public final void setLicense(String licenseName) +``` + + +为组件授权。 + +-------------------- + +> ``` +> In this example, an attempt will be made to find a license file named MyLicense.lic +> in the folder that contains +> ` +> the component, in the folder that contains the calling assembly, +> in the folder of the entry assembly and then in the embedded resources of the calling assembly. +> +> [C#] +> License license = new License(); +> license.SetLicense("MyLicense.lic"); +> [Visual Basic] +> Dim license As License = New License +> license.SetLicense("MyLicense.lic") +> +> ` +> ` +> the component jar file: +> +> License license = new License(); +> license.setLicense("MyLicense.lic"); +> +> ` +> ``` + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| | licenseName | java.lang.String | 可以是完整或短的文件名`或嵌入资源的名称`。使用空字符串切换到评估模式。 | + +-------------------- + +KKKCODEB + +尝试在以下位置查找许可证: + +KKKCODEE KKKCODEB + +1. 明确路径。 + +KKKCODEE KKKCODEB + +2. 包含 Aspose 组件程序集的文件夹。 + +3. 包含客户端调用程序集的文件夹。 + +4. 包含入口(启动)程序集的文件夹。 + +5. 客户端调用程序集中的嵌入资源。 + +**Note:**On the .NET Compact Framework, tries to find the license only in these locations: + +1. 明确路径。 + +2. 客户端调用程序集中的嵌入资源。 + +KKKCODEE KKKCODEB + +2. 包含 Aspose 组件 JAR 文件的文件夹。 + +3. 包含客户端调用 JAR 文件的文件夹。 + +KKKCODEE | + +### setLicense(InputStream stream) {#setLicense-java.io.InputStream-} +``` +public final void setLicense(InputStream stream) +``` + + +为组件授权。 + +-------------------- + +> ``` +> ` +> [C#] +> License license = new License(); +> license.SetLicense(myStream); +> [Visual Basic] +> Dim license as License = new License +> license.SetLicense(myStream) +> ` +> ` +> License license = new License(); +> license.setLicense(myStream); +> ` +> ``` + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| | 流 | java.io.InputStream | 包含许可证的流。 | + +-------------------- + +KKKCODEB + +使用此方法从流中加载许可证。 + +KKKCODEE + +`void setLicense(java.io.InputStream stream)` | + diff --git a/chinese/java/com.aspose.drawing/meteredext/_index.md b/chinese/java/com.aspose.drawing/meteredext/_index.md new file mode 100644 index 000000000..1c502cb28 --- /dev/null +++ b/chinese/java/com.aspose.drawing/meteredext/_index.md @@ -0,0 +1,106 @@ +--- +title: MeteredExt +second_title: Aspose.Drawing for Java API 参考 +description: 提供设置计量密钥的方法。 +type: docs +weight: 33 +url: /zh/java/com.aspose.drawing/meteredext/ +--- +**Inheritance:** +java.lang.Object, [com.aspose.drawing.dynabic.metered.Metered](../../com.aspose.drawing.dynabic.metered/metered) + +**All Implemented Interfaces:** +com.aspose.ms.System.IDisposable +``` +public final class MeteredExt extends Metered implements System.IDisposable +``` + +提供设置计量密钥的方法。 + +-------------------- + +> ``` +> In this example, an attempt will be made to set metered public and private key +> +> ` +> +> [C#] +> Metered matered = new Metered(); +> matered.SetMeteredKey("PublicKey", "PrivateKey"); +> [Visual Basic] +> Dim matered As Metered = New Metered +> matered.SetMeteredKey("PublicKey", "PrivateKey") +> +> ` +> +> ` +> the component jar file: +> +> Metered matered = new Metered(); +> matered.setMeteredKey("PublicKey", "PrivateKey"); +> +> ` +> ``` +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [MeteredExt()](#MeteredExt--) | 初始化 [Metered](../../com.aspose.drawing.dynabic.metered/metered) 类的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getConsumptionQuantity()](#getConsumptionQuantity--) | 获取消耗文件大小。 | +| [getConsumptionCredit()](#getConsumptionCredit--) | 获取消耗积分。 | +| [setMeteredKey(String publicKey, String privateKey)](#setMeteredKey-java.lang.String-java.lang.String-) | 设置计量的公钥和私钥 | +| [dispose()](#dispose--) | 执行与释放、释放或重置非托管资源相关的应用程序定义任务。 | +### MeteredExt() {#MeteredExt--} +``` +public MeteredExt() +``` + + +初始化 [Metered](../../com.aspose.drawing.dynabic.metered/metered) 类的新实例。 + +### getConsumptionQuantity() {#getConsumptionQuantity--} +``` +public static BigDecimal getConsumptionQuantity() +``` + + +获取消耗文件大小。 + +**Returns:** +java.math.BigDecimal - 返回消耗数量 +### getConsumptionCredit() {#getConsumptionCredit--} +``` +public static BigDecimal getConsumptionCredit() +``` + + +获取消耗积分。 + +**Returns:** +java.math.BigDecimal - 返回消耗数量 +### setMeteredKey(String publicKey, String privateKey) {#setMeteredKey-java.lang.String-java.lang.String-} +``` +public void setMeteredKey(String publicKey, String privateKey) +``` + + +设置计量的公钥和私钥 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| publicKey | java.lang.String | 公钥 | +| privateKey | java.lang.String | 私钥 | + +### dispose() {#dispose--} +``` +public void dispose() +``` + + +执行与释放、释放或重置非托管资源相关的应用程序定义任务。 + diff --git a/chinese/java/com.aspose.drawing/pen/_index.md b/chinese/java/com.aspose.drawing/pen/_index.md new file mode 100644 index 000000000..e0b121d67 --- /dev/null +++ b/chinese/java/com.aspose.drawing/pen/_index.md @@ -0,0 +1,682 @@ +--- +title: Pen +second_title: Aspose.Drawing for Java API 参考 +description: 定义用于绘制直线和曲线的对象。 +type: docs +weight: 34 +url: /zh/java/com.aspose.drawing/pen/ +--- +**Inheritance:** +java.lang.Object + +**All Implemented Interfaces:** +com.aspose.ms.System.IDisposable +``` +public class Pen implements System.IDisposable +``` + +定义用于绘制直线和曲线的对象。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [Pen(Color color)](#Pen-com.aspose.drawing.Color-) | 使用指定的 `Color`([.getColor](../../null/\#getColor)/[.setColor(Color)](../../null/\#setColor-Color-))初始化 [Pen](../../com.aspose.drawing/pen) 类的新实例。 | +| [Pen(Brush brush, float width)](#Pen-com.aspose.drawing.Brush-float-) | 使用指定的 Brush 和 Width 初始化 Pen 类的新实例。 | +| [Pen(Brush brush)](#Pen-com.aspose.drawing.Brush-) | 使用指定的 `Brush`([.getBrush](../../null/\#getBrush)/[.setBrush(Brush)](../../null/\#setBrush-Brush-))初始化 [Pen](../../com.aspose.drawing/pen) 类的新实例。 | +| [Pen(Color color, float width)](#Pen-com.aspose.drawing.Color-float-) | 使用指定的 Color 和 Width 属性初始化 Pen 类的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getColor()](#getColor--) | 获取或设置此 [Pen](../../com.aspose.drawing/pen) 的颜色。 | +| [setColor(Color value)](#setColor-com.aspose.drawing.Color-) | 获取或设置此 [Pen](../../com.aspose.drawing/pen) 的颜色。 | +| [getBrush()](#getBrush--) | 获取或设置决定此 [Pen](../../com.aspose.drawing/pen) 属性的 Brush。 | +| [setBrush(Brush value)](#setBrush-com.aspose.drawing.Brush-) | 获取或设置决定此 [Pen](../../com.aspose.drawing/pen) 属性的 Brush。 | +| [getCompoundArray()](#getCompoundArray--) | 获取或设置指定复合笔的值数组。 | +| [setCompoundArray(float[] value)](#setCompoundArray-float---) | 获取或设置指定复合笔的值数组。 | +| [getWidth()](#getWidth--) | 获取或设置此 Pen 的宽度,单位为用于绘图的 Graphics 对象的单位。 | +| [setWidth(float value)](#setWidth-float-) | 获取或设置此 Pen 的宽度,单位为用于绘图的 Graphics 对象的单位。 | +| [getStartCap()](#getStartCap--) | 获取或设置使用此 Pen 绘制的线段起始端的帽子样式。 | +| [setStartCap(int value)](#setStartCap-int-) | 获取或设置使用此 Pen 绘制的线段起始端的帽子样式。 | +| [getEndCap()](#getEndCap--) | 获取或设置使用此 Pen 绘制的线段结束端的帽子样式。 | +| [setEndCap(int value)](#setEndCap-int-) | 获取或设置使用此 Pen 绘制的线段结束端的帽子样式。 | +| [getLineJoin()](#getLineJoin--) | 获取或设置使用此 Pen 绘制的两条连续线段端点的连接样式。 | +| [setLineJoin(int value)](#setLineJoin-int-) | 获取或设置使用此 Pen 绘制的两条连续线段端点的连接样式。 | +| [getMiterLimit()](#getMiterLimit--) | 获取或设置斜接角连接处厚度的限制。 | +| [setMiterLimit(float value)](#setMiterLimit-float-) | 获取或设置斜接角连接处厚度的限制。 | +| [getAlignment()](#getAlignment--) | 获取或设置此 [Pen](../../com.aspose.drawing/pen) 的对齐方式。 | +| [setAlignment(int value)](#setAlignment-int-) | 获取或设置此 [Pen](../../com.aspose.drawing/pen) 的对齐方式。 | +| [getTransform()](#getTransform--) | 获取或设置此 [Pen](../../com.aspose.drawing/pen) 的几何变换的副本。 | +| [setTransform(Matrix value)](#setTransform-com.aspose.drawing.drawing2d.Matrix-) | 获取或设置此 [Pen](../../com.aspose.drawing/pen) 的几何变换的副本。 | +| [getCustomStartCap()](#getCustomStartCap--) | 获取或设置在使用此 [Pen](../../com.aspose.drawing/pen) 绘制的线段起始端使用的自定义帽子。 | +| [setCustomStartCap(CustomLineCap value)](#setCustomStartCap-com.aspose.drawing.drawing2d.CustomLineCap-) | 获取或设置在使用此 [Pen](../../com.aspose.drawing/pen) 绘制的线段起始端使用的自定义帽子。 | +| [getCustomEndCap()](#getCustomEndCap--) | 获取或设置在使用此 [Pen](../../com.aspose.drawing/pen) 绘制的线段结束端使用的自定义帽子。 | +| [setCustomEndCap(CustomLineCap value)](#setCustomEndCap-com.aspose.drawing.drawing2d.CustomLineCap-) | 获取或设置在使用此 [Pen](../../com.aspose.drawing/pen) 绘制的线段结束端使用的自定义帽子。 | +| [getDashCap()](#getDashCap--) | 获取或设置使用此 [Pen](../../com.aspose.drawing/pen) 绘制的虚线中破折号结束端的帽子样式。 | +| [setDashCap(int value)](#setDashCap-int-) | 获取或设置使用此 [Pen](../../com.aspose.drawing/pen) 绘制的虚线中破折号结束端的帽子样式。 | +| [getDashOffset()](#getDashOffset--) | 获取或设置从线段起点到破折号模式起始点的距离。 | +| [setDashOffset(float value)](#setDashOffset-float-) | 获取或设置从线段起点到破折号模式起始点的距离。 | +| [getDashPattern()](#getDashPattern--) | 获取或设置自定义破折号和空格的数组。 | +| [setDashPattern(float[] value)](#setDashPattern-float---) | 获取或设置自定义破折号和空格的数组。 | +| [getDashStyle()](#getDashStyle--) | 获取或设置使用此 [Pen](../../com.aspose.drawing/pen) 绘制的虚线的样式。 | +| [setDashStyle(int value)](#setDashStyle-int-) | 获取或设置使用此 [Pen](../../com.aspose.drawing/pen) 绘制的虚线的样式。 | +| [getPenType()](#getPenType--) | 获取使用此 Pen 绘制的线条样式。 | +| [dispose()](#dispose--) | 释放此 Pen 使用的所有资源。 | +| [deepClone()](#deepClone--) | 创建此 [Pen](../../com.aspose.drawing/pen) 的精确副本。 | +| [setLineCap(int startCap, int endCap, int dashCap)](#setLineCap-int-int-int-) | 设置决定此 [Pen](../../com.aspose.drawing/pen) 绘制的线条结束时帽子样式的值。 | +| [scaleTransform(float sx, float sy)](#scaleTransform-float-float-) | 按指定因子缩放局部几何变换。 | +| [scaleTransform(float sx, float sy, int order)](#scaleTransform-float-float-int-) | 按指定顺序使用指定因子缩放局部几何变换。 | +| [translateTransform(float dx, float dy)](#translateTransform-float-float-) | 按指定尺寸平移局部几何变换。 | +| [translateTransform(float dx, float dy, int order)](#translateTransform-float-float-int-) | 按指定顺序使用指定尺寸平移局部几何变换。 | +| [rotateTransform(float angle)](#rotateTransform-float-) | 按指定角度旋转局部几何变换。 | +| [rotateTransform(float angle, int order)](#rotateTransform-float-int-) | 按指定顺序使用指定角度旋转局部几何变换。 | +| [resetTransform()](#resetTransform--) | 将此 [Pen](../../com.aspose.drawing/pen) 的几何变换矩阵重置为单位矩阵。 | +| [multiplyTransform(Matrix matrix)](#multiplyTransform-com.aspose.drawing.drawing2d.Matrix-) | 将此 [Pen](../../com.aspose.drawing/pen) 的变换矩阵乘以指定的 [Matrix](../../com.aspose.drawing.drawing2d/matrix)。 | +| [multiplyTransform(Matrix matrix, int order)](#multiplyTransform-com.aspose.drawing.drawing2d.Matrix-int-) | 按指定顺序将此 [Pen](../../com.aspose.drawing/pen) 的变换矩阵乘以指定的 [Matrix](../../com.aspose.drawing.drawing2d/matrix)。 | +### Pen(Color color) {#Pen-com.aspose.drawing.Color-} +``` +public Pen(Color color) +``` + + +使用指定的 `Color`([.getColor](../../null/\#getColor)/[.setColor(Color)](../../null/\#setColor-Color-))初始化 [Pen](../../com.aspose.drawing/pen) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| color | [Color](../../com.aspose.drawing/color) | 一个决定此 [Pen](../../com.aspose.drawing/pen) 填充属性的 `Color`([.getColor](../../null/\#getColor)/[.setColor(Color)](../../null/\#setColor-Color-))。 | + +### Pen(Brush brush, float width) {#Pen-com.aspose.drawing.Brush-float-} +``` +public Pen(Brush brush, float width) +``` + + +使用指定的 Brush 和 Width 初始化 Pen 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| brush | [Brush](../../com.aspose.drawing/brush) | 一个决定此 Pen 特性的 Brush。 | +| 宽度 | 浮点数 | 新 Pen 的宽度。 | + +### Pen(Brush brush) {#Pen-com.aspose.drawing.Brush-} +``` +public Pen(Brush brush) +``` + + +使用指定的 `Brush`([.getBrush](../../null/\#getBrush)/[.setBrush(Brush)](../../null/\#setBrush-Brush-))初始化 [Pen](../../com.aspose.drawing/pen) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| brush | [Brush](../../com.aspose.drawing/brush) | 一个决定此 [Pen](../../com.aspose.drawing/pen) 填充属性的 `Brush`([.getBrush](../../null/\#getBrush)/[.setBrush(Brush)](../../null/\#setBrush-Brush-))。 | + +### Pen(Color color, float width) {#Pen-com.aspose.drawing.Color-float-} +``` +public Pen(Color color, float width) +``` + + +使用指定的 Color 和 Width 属性初始化 Pen 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| color | [Color](../../com.aspose.drawing/color) | 一个指示此 Pen 颜色的 Color 结构。 | +| 宽度 | 浮点数 | 一个指示此 Pen 宽度的值。 | + +### getColor() {#getColor--} +``` +public final Color getColor() +``` + + +获取或设置此 [Pen](../../com.aspose.drawing/pen) 的颜色。 + +值:一个表示此 [Pen](../../com.aspose.drawing/pen) 颜色的 `Color`([.getColor](../../null/\#getColor)/[.setColor(Color)](../../null/\#setColor-Color-)) 结构。 + +**Returns:** +[Color](../../com.aspose.drawing/color) +### setColor(Color value) {#setColor-com.aspose.drawing.Color-} +``` +public final void setColor(Color value) +``` + + +获取或设置此 [Pen](../../com.aspose.drawing/pen) 的颜色。 + +值:一个表示此 [Pen](../../com.aspose.drawing/pen) 颜色的 `Color`([.getColor](../../null/\#getColor)/[.setColor(Color)](../../null/\#setColor-Color-)) 结构。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [Color](../../com.aspose.drawing/color) | | + +### getBrush() {#getBrush--} +``` +public final Brush getBrush() +``` + + +获取或设置决定此 [Pen](../../com.aspose.drawing/pen) 属性的 Brush。 + +**Returns:** +[Brush](../../com.aspose.drawing/brush) +### setBrush(Brush value) {#setBrush-com.aspose.drawing.Brush-} +``` +public final void setBrush(Brush value) +``` + + +获取或设置决定此 [Pen](../../com.aspose.drawing/pen) 属性的 Brush。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [Brush](../../com.aspose.drawing/brush) | | + +### getCompoundArray() {#getCompoundArray--} +``` +public final float[] getCompoundArray() +``` + + +获取或设置指定复合笔的值数组。复合笔绘制由平行线和间隔组成的复合线。 + +**Returns:** +float[] - 指定复合数组的实数数组。数组中的元素必须递增,且不小于 0,且不大于 1。 +### setCompoundArray(float[] value) {#setCompoundArray-float---} +``` +public final void setCompoundArray(float[] value) +``` + + +获取或设置指定复合笔的值数组。复合笔绘制由平行线和间隔组成的复合线。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float[] | | + +### getWidth() {#getWidth--} +``` +public final float getWidth() +``` + + +获取或设置此 Pen 的宽度,单位为用于绘图的 Graphics 对象的单位。 + +**Returns:** +浮点数 +### setWidth(float value) {#setWidth-float-} +``` +public final void setWidth(float value) +``` + + +获取或设置此 Pen 的宽度,单位为用于绘图的 Graphics 对象的单位。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | 浮点数 | | + +### getStartCap() {#getStartCap--} +``` +public final int getStartCap() +``` + + +获取或设置使用此 Pen 绘制的线段起始端的帽子样式。 + +**Returns:** +int +### setStartCap(int value) {#setStartCap-int-} +``` +public final void setStartCap(int value) +``` + + +获取或设置使用此 Pen 绘制的线段起始端的帽子样式。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | | + +### getEndCap() {#getEndCap--} +``` +public final int getEndCap() +``` + + +获取或设置使用此 Pen 绘制的线段结束端的帽子样式。 + +**Returns:** +int +### setEndCap(int value) {#setEndCap-int-} +``` +public final void setEndCap(int value) +``` + + +获取或设置使用此 Pen 绘制的线段结束端的帽子样式。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | | + +### getLineJoin() {#getLineJoin--} +``` +public final int getLineJoin() +``` + + +获取或设置使用此 Pen 绘制的两条连续线段端点的连接样式。 + +-------------------- + +目前,斜接连接实际上表现为 MiterClipped。 + +**Returns:** +int +### setLineJoin(int value) {#setLineJoin-int-} +``` +public final void setLineJoin(int value) +``` + + +获取或设置使用此 Pen 绘制的两条连续线段端点的连接样式。 + +-------------------- + +目前,斜接连接实际上表现为 MiterClipped。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | | + +### getMiterLimit() {#getMiterLimit--} +``` +public final float getMiterLimit() +``` + + +获取或设置斜接角连接处厚度的限制。 + +**Returns:** +浮点数 +### setMiterLimit(float value) {#setMiterLimit-float-} +``` +public final void setMiterLimit(float value) +``` + + +获取或设置斜接角连接处厚度的限制。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | 浮点数 | | + +### getAlignment() {#getAlignment--} +``` +public final int getAlignment() +``` + + +获取或设置此 [Pen](../../com.aspose.drawing/pen) 的对齐方式。 + +**Returns:** +int - 表示此 [Pen](../../com.aspose.drawing/pen) 对齐方式的 [PenAlignment](../../com.aspose.drawing.drawing2d/penalignment)。 +### setAlignment(int value) {#setAlignment-int-} +``` +public final void setAlignment(int value) +``` + + +获取或设置此 [Pen](../../com.aspose.drawing/pen) 的对齐方式。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | | + +### getTransform() {#getTransform--} +``` +public final Matrix getTransform() +``` + + +获取或设置此 [Pen](../../com.aspose.drawing/pen) 的几何变换的副本。 + +值:一个表示此 [Pen](../../com.aspose.drawing/pen) 几何变换的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 的副本。 + +**Returns:** +[Matrix](../../com.aspose.drawing.drawing2d/matrix) +### setTransform(Matrix value) {#setTransform-com.aspose.drawing.drawing2d.Matrix-} +``` +public final void setTransform(Matrix value) +``` + + +获取或设置此 [Pen](../../com.aspose.drawing/pen) 的几何变换的副本。 + +值:一个表示此 [Pen](../../com.aspose.drawing/pen) 几何变换的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 的副本。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [Matrix](../../com.aspose.drawing.drawing2d/matrix) | | + +### getCustomStartCap() {#getCustomStartCap--} +``` +public final CustomLineCap getCustomStartCap() +``` + + +获取或设置在使用此 [Pen](../../com.aspose.drawing/pen) 绘制的线段起始端使用的自定义帽子。 + +**Returns:** +[CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) - A [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) that represents the cap used at the beginning of lines drawn with this [Pen](../../com.aspose.drawing/pen). +### setCustomStartCap(CustomLineCap value) {#setCustomStartCap-com.aspose.drawing.drawing2d.CustomLineCap-} +``` +public final void setCustomStartCap(CustomLineCap value) +``` + + +获取或设置在使用此 [Pen](../../com.aspose.drawing/pen) 绘制的线段起始端使用的自定义帽子。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) | | + +### getCustomEndCap() {#getCustomEndCap--} +``` +public final CustomLineCap getCustomEndCap() +``` + + +获取或设置在使用此 [Pen](../../com.aspose.drawing/pen) 绘制的线段结束端使用的自定义帽子。 + +**Returns:** +[CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) - A [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) that represents the cap used at the end of lines drawn with this [Pen](../../com.aspose.drawing/pen). +### setCustomEndCap(CustomLineCap value) {#setCustomEndCap-com.aspose.drawing.drawing2d.CustomLineCap-} +``` +public final void setCustomEndCap(CustomLineCap value) +``` + + +获取或设置在使用此 [Pen](../../com.aspose.drawing/pen) 绘制的线段结束端使用的自定义帽子。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [CustomLineCap](../../com.aspose.drawing.drawing2d/customlinecap) | | + +### getDashCap() {#getDashCap--} +``` +public final int getDashCap() +``` + + +获取或设置使用此 [Pen](../../com.aspose.drawing/pen) 绘制的虚线中破折号结束端的帽子样式。 + +**Returns:** +int - 表示此 [Pen](../../com.aspose.drawing/pen) 绘制的虚线起始和结束处帽子样式的 `DashCap`([.getDashCap](../../null/\#getDashCap)/[.setDashCap(int)](../../null/\#setDashCap-int-)) 值之一。 +### setDashCap(int value) {#setDashCap-int-} +``` +public final void setDashCap(int value) +``` + + +获取或设置使用此 [Pen](../../com.aspose.drawing/pen) 绘制的虚线中破折号结束端的帽子样式。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | | + +### getDashOffset() {#getDashOffset--} +``` +public final float getDashOffset() +``` + + +获取或设置从线段起点到破折号模式起始点的距离。 + +**Returns:** +float - 从线条起点到破折号模式开始的距离。 +### setDashOffset(float value) {#setDashOffset-float-} +``` +public final void setDashOffset(float value) +``` + + +获取或设置从线段起点到破折号模式起始点的距离。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | 浮点数 | | + +### getDashPattern() {#getDashPattern--} +``` +public final float[] getDashPattern() +``` + + +获取或设置自定义破折号和空格的数组。 + +**Returns:** +float[] - 指定虚线中交替破折号和间隔长度的实数数组。 +### setDashPattern(float[] value) {#setDashPattern-float---} +``` +public final void setDashPattern(float[] value) +``` + + +获取或设置自定义破折号和空格的数组。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | float[] | | + +### getDashStyle() {#getDashStyle--} +``` +public final int getDashStyle() +``` + + +获取或设置使用此 [Pen](../../com.aspose.drawing/pen) 绘制的虚线的样式。 + +**Returns:** +int - 一个 `DashStyle`([.getDashStyle](../../null/\#getDashStyle)/[.setDashStyle(int)](../../null/\#setDashStyle-int-)),表示使用此 [Pen](../../com.aspose.drawing/pen) 绘制的虚线的样式。 +### setDashStyle(int value) {#setDashStyle-int-} +``` +public final void setDashStyle(int value) +``` + + +获取或设置使用此 [Pen](../../com.aspose.drawing/pen) 绘制的虚线的样式。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | | + +### getPenType() {#getPenType--} +``` +public final int getPenType() +``` + + +获取使用此 Pen 绘制的线条样式。 + +Value: 一个 `PenType`([.getPenType](../../null/\#getPenType)) 枚举,指定使用此 [Pen](../../com.aspose.drawing/pen) 绘制的线条样式。 + +**Returns:** +int +### dispose() {#dispose--} +``` +public final void dispose() +``` + + +释放此 Pen 使用的所有资源。 + +-------------------- + +此方法实际上不执行任何操作。它仅用于与 System.Drawing API 的兼容性。 + +### deepClone() {#deepClone--} +``` +public final Object deepClone() +``` + + +创建此 [Pen](../../com.aspose.drawing/pen) 的精确副本。 + +**Returns:** +java.lang.Object - 一个可以强制转换为 [Pen](../../com.aspose.drawing/pen) 的对象。 +### setLineCap(int startCap, int endCap, int dashCap) {#setLineCap-int-int-int-} +``` +public final void setLineCap(int startCap, int endCap, int dashCap) +``` + + +设置决定此 [Pen](../../com.aspose.drawing/pen) 绘制的线条结束时帽子样式的值。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| startCap | int | 一个 [LineCap](../../com.aspose.drawing.drawing2d/linecap),表示使用此 [Pen](../../com.aspose.drawing/pen) 绘制的线条起始端的帽子样式。 | +| endCap | int | 一个 [LineCap](../../com.aspose.drawing.drawing2d/linecap),表示使用此 [Pen](../../com.aspose.drawing/pen) 绘制的线条末端的帽子样式。 | +| dashCap | int | 一个 [LineCap](../../com.aspose.drawing.drawing2d/linecap),表示使用此 [Pen](../../com.aspose.drawing/pen) 绘制的虚线的起始或结束端的帽子样式。 | + +### scaleTransform(float sx, float sy) {#scaleTransform-float-float-} +``` +public final void scaleTransform(float sx, float sy) +``` + + +按指定因子缩放局部几何变换。此方法将在变换前预置缩放矩阵。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| sx | 浮点数 | 在 x 轴方向上用于缩放变换的因子。 | +| sy | 浮点数 | 在 y 轴方向上用于缩放变换的因子。 | + +### scaleTransform(float sx, float sy, int order) {#scaleTransform-float-float-int-} +``` +public final void scaleTransform(float sx, float sy, int order) +``` + + +按指定顺序使用指定因子缩放局部几何变换。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| sx | 浮点数 | 在 x 轴方向上用于缩放变换的因子。 | +| sy | 浮点数 | 在 y 轴方向上用于缩放变换的因子。 | +| order | int | 一个 [MatrixOrder](../../com.aspose.drawing.drawing2d/matrixorder),用于指定是追加还是预置缩放矩阵。 | + +### translateTransform(float dx, float dy) {#translateTransform-float-float-} +``` +public final void translateTransform(float dx, float dy) +``` + + +按指定尺寸平移局部几何变换。此方法将在变换前预置平移。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| dx | 浮点数 | x 方向的平移值。 | +| dy | 浮点数 | y 方向的平移值。 | + +### translateTransform(float dx, float dy, int order) {#translateTransform-float-float-int-} +``` +public final void translateTransform(float dx, float dy, int order) +``` + + +按指定顺序使用指定尺寸平移局部几何变换。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| dx | 浮点数 | x 方向的平移值。 | +| dy | 浮点数 | y 方向的平移值。 | +| 顺序 | int | 应用平移的顺序(预先或追加)。 | + +### rotateTransform(float angle) {#rotateTransform-float-} +``` +public final void rotateTransform(float angle) +``` + + +按指定角度旋转局部几何变换。此方法将在变换前预置旋转。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 角度 | 浮点数 | 旋转角度。 | + +### rotateTransform(float angle, int order) {#rotateTransform-float-int-} +``` +public final void rotateTransform(float angle, int order) +``` + + +按指定顺序使用指定角度旋转局部几何变换。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 角度 | 浮点数 | 旋转角度。 | +| order | int | 一个 [MatrixOrder](../../com.aspose.drawing.drawing2d/matrixorder),用于指定是追加还是预置旋转矩阵。 | + +### resetTransform() {#resetTransform--} +``` +public final void resetTransform() +``` + + +将此 [Pen](../../com.aspose.drawing/pen) 的几何变换矩阵重置为单位矩阵。 + +### multiplyTransform(Matrix matrix) {#multiplyTransform-com.aspose.drawing.drawing2d.Matrix-} +``` +public final void multiplyTransform(Matrix matrix) +``` + + +将此 [Pen](../../com.aspose.drawing/pen) 的变换矩阵乘以指定的 [Matrix](../../com.aspose.drawing.drawing2d/matrix)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| matrix | [Matrix](../../com.aspose.drawing.drawing2d/matrix) | 用于乘以变换矩阵的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 对象。 | + +### multiplyTransform(Matrix matrix, int order) {#multiplyTransform-com.aspose.drawing.drawing2d.Matrix-int-} +``` +public final void multiplyTransform(Matrix matrix, int order) +``` + + +按指定顺序将此 [Pen](../../com.aspose.drawing/pen) 的变换矩阵乘以指定的 [Matrix](../../com.aspose.drawing.drawing2d/matrix)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| matrix | [Matrix](../../com.aspose.drawing.drawing2d/matrix) | 用于乘以变换矩阵的 java.awt.geom.AffineTransform。 | +| 顺序 | int | 执行乘法操作的顺序。 | + diff --git a/chinese/java/com.aspose.drawing/pens/_index.md b/chinese/java/com.aspose.drawing/pens/_index.md new file mode 100644 index 000000000..b17ac7716 --- /dev/null +++ b/chinese/java/com.aspose.drawing/pens/_index.md @@ -0,0 +1,1852 @@ +--- +title: Pens +second_title: Aspose.Drawing for Java API 参考 +description: 用于所有标准颜色的画笔。 +type: docs +weight: 35 +url: /zh/java/com.aspose.drawing/pens/ +--- +**Inheritance:** +java.lang.Object +``` +public final class Pens +``` + +用于所有标准颜色的笔。此类不可被继承。 +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getAliceBlue()](#getAliceBlue--) | 获取 爱丽丝蓝 [Pen](../../com.aspose.drawing/pen). | +| [getAntiqueWhite()](#getAntiqueWhite--) | 获取 古董白 [Pen](../../com.aspose.drawing/pen). | +| [getAqua()](#getAqua--) | 获取 水绿色 [Pen](../../com.aspose.drawing/pen). | +| [getAquamarine()](#getAquamarine--) | 获取 海蓝宝石 [Pen](../../com.aspose.drawing/pen). | +| [getAzure()](#getAzure--) | 获取 蔚蓝 [Pen](../../com.aspose.drawing/pen). | +| [getBeige()](#getBeige--) | 获取 米色 [Pen](../../com.aspose.drawing/pen). | +| [getBisque()](#getBisque--) | 获取 陶土色 [Pen](../../com.aspose.drawing/pen). | +| [getBlack()](#getBlack--) | 获取 黑色 [Pen](../../com.aspose.drawing/pen). | +| [getBlanchedAlmond()](#getBlanchedAlmond--) | 获取 漂白杏仁色 [Pen](../../com.aspose.drawing/pen). | +| [getBlue()](#getBlue--) | 获取 蓝色 [Pen](../../com.aspose.drawing/pen). | +| [getBlueViolet()](#getBlueViolet--) | 获取 蓝紫色 [Pen](../../com.aspose.drawing/pen). | +| [getBrown()](#getBrown--) | 获取 棕色 [Pen](../../com.aspose.drawing/pen). | +| [getBurlyWood()](#getBurlyWood--) | 获取 原木色 [Pen](../../com.aspose.drawing/pen). | +| [getCadetBlue()](#getCadetBlue--) | 获取 军装蓝 [Pen](../../com.aspose.drawing/pen). | +| [getChartreuse()](#getChartreuse--) | 获取 黄绿色 [Pen](../../com.aspose.drawing/pen). | +| [getChocolate()](#getChocolate--) | 获取 巧克力色 [Pen](../../com.aspose.drawing/pen). | +| [getCoral()](#getCoral--) | 获取 珊瑚色 [Pen](../../com.aspose.drawing/pen). | +| [getCornflowerBlue()](#getCornflowerBlue--) | 获取 矢车菊蓝 [Pen](../../com.aspose.drawing/pen). | +| [getCornsilk()](#getCornsilk--) | 获取 玉米丝色 [Pen](../../com.aspose.drawing/pen). | +| [getCrimson()](#getCrimson--) | 获取 深红色 [Pen](../../com.aspose.drawing/pen). | +| [getCyan()](#getCyan--) | 获取 青色 [Pen](../../com.aspose.drawing/pen). | +| [getDarkBlue()](#getDarkBlue--) | 获取 深蓝色 [Pen](../../com.aspose.drawing/pen). | +| [getDarkCyan()](#getDarkCyan--) | 获取 深青色 [Pen](../../com.aspose.drawing/pen). | +| [getDarkGoldenrod()](#getDarkGoldenrod--) | 获取 深金菊色 [Pen](../../com.aspose.drawing/pen). | +| [getDarkGray()](#getDarkGray--) | 获取 深灰色 [Pen](../../com.aspose.drawing/pen). | +| [getDarkGreen()](#getDarkGreen--) | 获取深绿色的 [Pen](../../com.aspose.drawing/pen). | +| [getDarkKhaki()](#getDarkKhaki--) | 获取深卡其色的 [Pen](../../com.aspose.drawing/pen). | +| [getDarkMagenta()](#getDarkMagenta--) | 获取深洋红色的 [Pen](../../com.aspose.drawing/pen). | +| [getDarkOliveGreen()](#getDarkOliveGreen--) | 获取深橄榄绿的 [Pen](../../com.aspose.drawing/pen). | +| [getDarkOrange()](#getDarkOrange--) | 获取深橙色的 [Pen](../../com.aspose.drawing/pen). | +| [getDarkOrchid()](#getDarkOrchid--) | 获取深兰花紫的 [Pen](../../com.aspose.drawing/pen). | +| [getDarkRed()](#getDarkRed--) | 获取深红色的 [Pen](../../com.aspose.drawing/pen). | +| [getDarkSalmon()](#getDarkSalmon--) | 获取深鲑鱼色的 [Pen](../../com.aspose.drawing/pen). | +| [getDarkSeaGreen()](#getDarkSeaGreen--) | 获取深海绿色的 [Pen](../../com.aspose.drawing/pen). | +| [getDarkSlateBlue()](#getDarkSlateBlue--) | 获取深板岩蓝的 [Pen](../../com.aspose.drawing/pen). | +| [getDarkSlateGray()](#getDarkSlateGray--) | 获取深板岩灰的 [Pen](../../com.aspose.drawing/pen). | +| [getDarkTurquoise()](#getDarkTurquoise--) | 获取深绿松石色的 [Pen](../../com.aspose.drawing/pen). | +| [getDarkViolet()](#getDarkViolet--) | 获取深紫罗兰色的 [Pen](../../com.aspose.drawing/pen). | +| [getDeepPink()](#getDeepPink--) | 获取深粉红色的 [Pen](../../com.aspose.drawing/pen). | +| [getDeepSkyBlue()](#getDeepSkyBlue--) | 获取深天蓝色的 [Pen](../../com.aspose.drawing/pen). | +| [getDimGray()](#getDimGray--) | 获取暗灰色的 [Pen](../../com.aspose.drawing/pen). | +| [getDodgerBlue()](#getDodgerBlue--) | 获取道奇蓝的 [Pen](../../com.aspose.drawing/pen). | +| [getFirebrick()](#getFirebrick--) | 获取砖红色的 [Pen](../../com.aspose.drawing/pen). | +| [getFloralWhite()](#getFloralWhite--) | 获取花卉白的 [Pen](../../com.aspose.drawing/pen). | +| [getForestGreen()](#getForestGreen--) | 获取森林绿的 [Pen](../../com.aspose.drawing/pen). | +| [getFuchsia()](#getFuchsia--) | 获取紫红色的 [Pen](../../com.aspose.drawing/pen). | +| [getGainsboro()](#getGainsboro--) | 获取淡灰色的 [Pen](../../com.aspose.drawing/pen). | +| [getGhostWhite()](#getGhostWhite--) | 获取幽灵白的 [Pen](../../com.aspose.drawing/pen). | +| [getGold()](#getGold--) | 获取金色的 [Pen](../../com.aspose.drawing/pen). | +| [getGoldenrod()](#getGoldenrod--) | 获取金菊色的 [Pen](../../com.aspose.drawing/pen). | +| [getGray()](#getGray--) | 获取灰色的 [Pen](../../com.aspose.drawing/pen). | +| [getGreen()](#getGreen--) | 获取绿色的 [Pen](../../com.aspose.drawing/pen). | +| [getGreenYellow()](#getGreenYellow--) | 获取黄绿色的 [Pen](../../com.aspose.drawing/pen). | +| [getHoneydew()](#getHoneydew--) | 获取蜜瓜色的 [Pen](../../com.aspose.drawing/pen). | +| [getHotPink()](#getHotPink--) | 获取热粉色的 [Pen](../../com.aspose.drawing/pen). | +| [getIndianRed()](#getIndianRed--) | 获取印度红的 [Pen](../../com.aspose.drawing/pen). | +| [getIndigo()](#getIndigo--) | 获取靛蓝的 [Pen](../../com.aspose.drawing/pen). | +| [getIvory()](#getIvory--) | 获取象牙色的 [Pen](../../com.aspose.drawing/pen). | +| [getKhaki()](#getKhaki--) | 获取卡其色的 [Pen](../../com.aspose.drawing/pen). | +| [getLavender()](#getLavender--) | 获取薰衣草色的 [Pen](../../com.aspose.drawing/pen). | +| [getLavenderBlush()](#getLavenderBlush--) | 获取薰衣草腮红色的 [Pen](../../com.aspose.drawing/pen). | +| [getLawnGreen()](#getLawnGreen--) | 获取草绿色的 [Pen](../../com.aspose.drawing/pen). | +| [getLemonChiffon()](#getLemonChiffon--) | 获取柠檬绸色的 [Pen](../../com.aspose.drawing/pen). | +| [getLightBlue()](#getLightBlue--) | 获取浅蓝色的 [Pen](../../com.aspose.drawing/pen). | +| [getLightCoral()](#getLightCoral--) | 获取浅珊瑚色的 [Pen](../../com.aspose.drawing/pen). | +| [getLightCyan()](#getLightCyan--) | 获取浅青色的 [Pen](../../com.aspose.drawing/pen). | +| [getLightGoldenrodYellow()](#getLightGoldenrodYellow--) | 获取浅金菊黄的 [Pen](../../com.aspose.drawing/pen). | +| [getLightGray()](#getLightGray--) | 获取浅灰色的 [Pen](../../com.aspose.drawing/pen). | +| [getLightGreen()](#getLightGreen--) | 获取浅绿色的 [Pen](../../com.aspose.drawing/pen). | +| [getLightPink()](#getLightPink--) | 获取浅粉色的 [Pen](../../com.aspose.drawing/pen). | +| [getLightSalmon()](#getLightSalmon--) | 获取浅鲑色的 [Pen](../../com.aspose.drawing/pen). | +| [getLightSeaGreen()](#getLightSeaGreen--) | 获取浅海绿色的 [Pen](../../com.aspose.drawing/pen). | +| [getLightSkyBlue()](#getLightSkyBlue--) | 获取浅天空蓝色的 [Pen](../../com.aspose.drawing/pen). | +| [getLightSlateGray()](#getLightSlateGray--) | 获取浅石板灰的 [Pen](../../com.aspose.drawing/pen). | +| [getLightSteelBlue()](#getLightSteelBlue--) | 获取浅钢蓝色的 [Pen](../../com.aspose.drawing/pen). | +| [getLightYellow()](#getLightYellow--) | 获取浅黄色的 [Pen](../../com.aspose.drawing/pen). | +| [getLime()](#getLime--) | 获取酸橙色的 [Pen](../../com.aspose.drawing/pen). | +| [getLimeGreen()](#getLimeGreen--) | 获取酸橙绿色的 [Pen](../../com.aspose.drawing/pen). | +| [getLinen()](#getLinen--) | 获取亚麻色的 [Pen](../../com.aspose.drawing/pen). | +| [getMagenta()](#getMagenta--) | 获取品红色的 [Pen](../../com.aspose.drawing/pen). | +| [getMaroon()](#getMaroon--) | 获取栗色的 [Pen](../../com.aspose.drawing/pen). | +| [getMediumAquamarine()](#getMediumAquamarine--) | 获取中等海蓝宝石色的 [Pen](../../com.aspose.drawing/pen). | +| [getMediumBlue()](#getMediumBlue--) | 获取中等蓝色的 [Pen](../../com.aspose.drawing/pen). | +| [getMediumOrchid()](#getMediumOrchid--) | 获取中等兰花紫的 [Pen](../../com.aspose.drawing/pen). | +| [getMediumPurple()](#getMediumPurple--) | 获取中等紫色的 [Pen](../../com.aspose.drawing/pen). | +| [getMediumSeaGreen()](#getMediumSeaGreen--) | 获取中等海绿色的 [Pen](../../com.aspose.drawing/pen). | +| [getMediumSlateBlue()](#getMediumSlateBlue--) | 获取中等板岩蓝的 [Pen](../../com.aspose.drawing/pen). | +| [getMediumSpringGreen()](#getMediumSpringGreen--) | 获取中等春绿色的 [Pen](../../com.aspose.drawing/pen). | +| [getMediumTurquoise()](#getMediumTurquoise--) | 获取中等绿松石色的 [Pen](../../com.aspose.drawing/pen). | +| [getMediumVioletRed()](#getMediumVioletRed--) | 获取中等紫罗兰红的 [Pen](../../com.aspose.drawing/pen). | +| [getMidnightBlue()](#getMidnightBlue--) | 获取午夜蓝的 [Pen](../../com.aspose.drawing/pen). | +| [getMintCream()](#getMintCream--) | 获取薄荷奶油色的 [Pen](../../com.aspose.drawing/pen). | +| [getMistyRose()](#getMistyRose--) | 获取雾玫瑰色的 [Pen](../../com.aspose.drawing/pen). | +| [getMoccasin()](#getMoccasin--) | 获取鹿皮色的 [Pen](../../com.aspose.drawing/pen). | +| [getNavajoWhite()](#getNavajoWhite--) | 获取纳瓦霍白的 [Pen](../../com.aspose.drawing/pen). | +| [getNavy()](#getNavy--) | 获取海军蓝的 [Pen](../../com.aspose.drawing/pen). | +| [getOldLace()](#getOldLace--) | 获取旧蕾丝色的 [Pen](../../com.aspose.drawing/pen). | +| [getOlive()](#getOlive--) | 获取橄榄色的 [Pen](../../com.aspose.drawing/pen). | +| [getOliveDrab()](#getOliveDrab--) | 获取橄榄暗绿的 [Pen](../../com.aspose.drawing/pen). | +| [getOrange()](#getOrange--) | 获取橙色的 [Pen](../../com.aspose.drawing/pen). | +| [getOrangeRed()](#getOrangeRed--) | 获取橙红色的 [Pen](../../com.aspose.drawing/pen). | +| [getOrchid()](#getOrchid--) | 获取兰花紫的 [Pen](../../com.aspose.drawing/pen). | +| [getPaleGoldenrod()](#getPaleGoldenrod--) | 获取淡金菊色的 [Pen](../../com.aspose.drawing/pen). | +| [getPaleGreen()](#getPaleGreen--) | 获取淡绿色的 [Pen](../../com.aspose.drawing/pen). | +| [getPaleTurquoise()](#getPaleTurquoise--) | 获取淡绿松石色的 [Pen](../../com.aspose.drawing/pen). | +| [getPaleVioletRed()](#getPaleVioletRed--) | 获取淡紫红色的 [Pen](../../com.aspose.drawing/pen). | +| [getPapayaWhip()](#getPapayaWhip--) | 获取木瓜色的 [Pen](../../com.aspose.drawing/pen). | +| [getPeachPuff()](#getPeachPuff--) | 获取桃肉色的 [Pen](../../com.aspose.drawing/pen). | +| [getPeru()](#getPeru--) | 获取秘鲁棕色的 [Pen](../../com.aspose.drawing/pen). | +| [getPink()](#getPink--) | 获取粉色的 [Pen](../../com.aspose.drawing/pen). | +| [getPlum()](#getPlum--) | 获取李子色的 [Pen](../../com.aspose.drawing/pen). | +| [getPowderBlue()](#getPowderBlue--) | 获取粉蓝色的 [Pen](../../com.aspose.drawing/pen). | +| [getPurple()](#getPurple--) | 获取紫色的 [Pen](../../com.aspose.drawing/pen). | +| [getRed()](#getRed--) | 获取红色的 [Pen](../../com.aspose.drawing/pen). | +| [getRosyBrown()](#getRosyBrown--) | 获取玫瑰棕色的 [Pen](../../com.aspose.drawing/pen). | +| [getRoyalBlue()](#getRoyalBlue--) | 获取皇家蓝色的 [Pen](../../com.aspose.drawing/pen). | +| [getSaddleBrown()](#getSaddleBrown--) | 获取鞍棕色的 [Pen](../../com.aspose.drawing/pen). | +| [getSalmon()](#getSalmon--) | 获取鲑鱼色的 [Pen](../../com.aspose.drawing/pen). | +| [getSandyBrown()](#getSandyBrown--) | 获取沙棕色的 [Pen](../../com.aspose.drawing/pen). | +| [getSeaGreen()](#getSeaGreen--) | 获取海绿色的 [Pen](../../com.aspose.drawing/pen). | +| [getSeaShell()](#getSeaShell--) | 获取海贝色的 [Pen](../../com.aspose.drawing/pen). | +| [getSienna()](#getSienna--) | 获取赭色的 [Pen](../../com.aspose.drawing/pen). | +| [getSilver()](#getSilver--) | 获取银色的 [Pen](../../com.aspose.drawing/pen). | +| [getSkyBlue()](#getSkyBlue--) | 获取天蓝色的 [Pen](../../com.aspose.drawing/pen). | +| [getSlateBlue()](#getSlateBlue--) | 获取石板蓝色的 [Pen](../../com.aspose.drawing/pen). | +| [getSlateGray()](#getSlateGray--) | 获取 板岩灰 [Pen](../../com.aspose.drawing/pen). | +| [getSnow()](#getSnow--) | 获取 雪白 [Pen](../../com.aspose.drawing/pen). | +| [getSpringGreen()](#getSpringGreen--) | 获取 春绿 [Pen](../../com.aspose.drawing/pen). | +| [getSteelBlue()](#getSteelBlue--) | 获取 钢蓝 [Pen](../../com.aspose.drawing/pen). | +| [getTan()](#getTan--) | 获取 黄褐色 [Pen](../../com.aspose.drawing/pen). | +| [getTeal()](#getTeal--) | 获取 青色 [Pen](../../com.aspose.drawing/pen). | +| [getThistle()](#getThistle--) | 获取 蓟紫 [Pen](../../com.aspose.drawing/pen). | +| [getTomato()](#getTomato--) | 获取 番茄红 [Pen](../../com.aspose.drawing/pen). | +| [getTransparent()](#getTransparent--) | 获取 透明 [Pen](../../com.aspose.drawing/pen). | +| [getTurquoise()](#getTurquoise--) | 获取 绿松石色 [Pen](../../com.aspose.drawing/pen). | +| [getViolet()](#getViolet--) | 获取 紫罗兰 [Pen](../../com.aspose.drawing/pen). | +| [getWheat()](#getWheat--) | 获取 小麦色 [Pen](../../com.aspose.drawing/pen). | +| [getWhite()](#getWhite--) | 获取 白色 [Pen](../../com.aspose.drawing/pen). | +| [getWhiteSmoke()](#getWhiteSmoke--) | 获取 烟白色 [Pen](../../com.aspose.drawing/pen). | +| [getYellow()](#getYellow--) | 获取 黄色 [Pen](../../com.aspose.drawing/pen). | +| [getYellowGreen()](#getYellowGreen--) | 获取 黄绿色 [Pen](../../com.aspose.drawing/pen). | +### getAliceBlue() {#getAliceBlue--} +``` +public static Pen getAliceBlue() +``` + + +获取 爱丽丝蓝 [Pen](../../com.aspose.drawing/pen). + +值:爱丽丝蓝 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the alice blue [Pen](../../com.aspose.drawing/pen). +### getAntiqueWhite() {#getAntiqueWhite--} +``` +public static Pen getAntiqueWhite() +``` + + +获取 古董白 [Pen](../../com.aspose.drawing/pen). + +值:古董白 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the antique white [Pen](../../com.aspose.drawing/pen). +### getAqua() {#getAqua--} +``` +public static Pen getAqua() +``` + + +获取 水绿色 [Pen](../../com.aspose.drawing/pen). + +值:水色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the aqua [Pen](../../com.aspose.drawing/pen). +### getAquamarine() {#getAquamarine--} +``` +public static Pen getAquamarine() +``` + + +获取 海蓝宝石 [Pen](../../com.aspose.drawing/pen). + +值:海蓝宝石色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the aquamarine [Pen](../../com.aspose.drawing/pen). +### getAzure() {#getAzure--} +``` +public static Pen getAzure() +``` + + +获取 蔚蓝 [Pen](../../com.aspose.drawing/pen). + +值:蔚蓝 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the azure [Pen](../../com.aspose.drawing/pen). +### getBeige() {#getBeige--} +``` +public static Pen getBeige() +``` + + +获取 米色 [Pen](../../com.aspose.drawing/pen). + +值:米色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the beige [Pen](../../com.aspose.drawing/pen). +### getBisque() {#getBisque--} +``` +public static Pen getBisque() +``` + + +获取 陶土色 [Pen](../../com.aspose.drawing/pen). + +值:陶坯色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the bisque [Pen](../../com.aspose.drawing/pen). +### getBlack() {#getBlack--} +``` +public static Pen getBlack() +``` + + +获取 黑色 [Pen](../../com.aspose.drawing/pen). + +值:黑色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the black [Pen](../../com.aspose.drawing/pen). +### getBlanchedAlmond() {#getBlanchedAlmond--} +``` +public static Pen getBlanchedAlmond() +``` + + +获取 漂白杏仁色 [Pen](../../com.aspose.drawing/pen). + +值:漂白杏仁色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the blanched almond [Pen](../../com.aspose.drawing/pen). +### getBlue() {#getBlue--} +``` +public static Pen getBlue() +``` + + +获取 蓝色 [Pen](../../com.aspose.drawing/pen). + +值:蓝色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the blue [Pen](../../com.aspose.drawing/pen). +### getBlueViolet() {#getBlueViolet--} +``` +public static Pen getBlueViolet() +``` + + +获取 蓝紫色 [Pen](../../com.aspose.drawing/pen). + +值:蓝紫色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the blue violet [Pen](../../com.aspose.drawing/pen). +### getBrown() {#getBrown--} +``` +public static Pen getBrown() +``` + + +获取 棕色 [Pen](../../com.aspose.drawing/pen). + +值:棕色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the brown [Pen](../../com.aspose.drawing/pen). +### getBurlyWood() {#getBurlyWood--} +``` +public static Pen getBurlyWood() +``` + + +获取 原木色 [Pen](../../com.aspose.drawing/pen). + +值:粗木色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the burly wood [Pen](../../com.aspose.drawing/pen). +### getCadetBlue() {#getCadetBlue--} +``` +public static Pen getCadetBlue() +``` + + +获取 军装蓝 [Pen](../../com.aspose.drawing/pen). + +值:军装蓝 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the cadet blue [Pen](../../com.aspose.drawing/pen). +### getChartreuse() {#getChartreuse--} +``` +public static Pen getChartreuse() +``` + + +获取 黄绿色 [Pen](../../com.aspose.drawing/pen). + +值:黄绿色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the chartreuse [Pen](../../com.aspose.drawing/pen). +### getChocolate() {#getChocolate--} +``` +public static Pen getChocolate() +``` + + +获取 巧克力色 [Pen](../../com.aspose.drawing/pen). + +值:巧克力色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the chocolate [Pen](../../com.aspose.drawing/pen). +### getCoral() {#getCoral--} +``` +public static Pen getCoral() +``` + + +获取 珊瑚色 [Pen](../../com.aspose.drawing/pen). + +值:珊瑚色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the coral [Pen](../../com.aspose.drawing/pen). +### getCornflowerBlue() {#getCornflowerBlue--} +``` +public static Pen getCornflowerBlue() +``` + + +获取 矢车菊蓝 [Pen](../../com.aspose.drawing/pen). + +值:矢车菊蓝 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the cornflower blue [Pen](../../com.aspose.drawing/pen). +### getCornsilk() {#getCornsilk--} +``` +public static Pen getCornsilk() +``` + + +获取 玉米丝色 [Pen](../../com.aspose.drawing/pen). + +值:玉米绸色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the cornsilk [Pen](../../com.aspose.drawing/pen). +### getCrimson() {#getCrimson--} +``` +public static Pen getCrimson() +``` + + +获取 深红色 [Pen](../../com.aspose.drawing/pen). + +值:深红色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the crimson [Pen](../../com.aspose.drawing/pen). +### getCyan() {#getCyan--} +``` +public static Pen getCyan() +``` + + +获取 青色 [Pen](../../com.aspose.drawing/pen). + +值:青色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the cyan [Pen](../../com.aspose.drawing/pen). +### getDarkBlue() {#getDarkBlue--} +``` +public static Pen getDarkBlue() +``` + + +获取 深蓝色 [Pen](../../com.aspose.drawing/pen). + +值:深蓝色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the dark blue [Pen](../../com.aspose.drawing/pen). +### getDarkCyan() {#getDarkCyan--} +``` +public static Pen getDarkCyan() +``` + + +获取 深青色 [Pen](../../com.aspose.drawing/pen). + +值:深青色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the dark cyan [Pen](../../com.aspose.drawing/pen). +### getDarkGoldenrod() {#getDarkGoldenrod--} +``` +public static Pen getDarkGoldenrod() +``` + + +获取 深金菊色 [Pen](../../com.aspose.drawing/pen). + +值:深金菊色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the dark goldenrod [Pen](../../com.aspose.drawing/pen). +### getDarkGray() {#getDarkGray--} +``` +public static Pen getDarkGray() +``` + + +获取 深灰色 [Pen](../../com.aspose.drawing/pen). + +值:深灰色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the dark gray [Pen](../../com.aspose.drawing/pen). +### getDarkGreen() {#getDarkGreen--} +``` +public static Pen getDarkGreen() +``` + + +获取深绿色的 [Pen](../../com.aspose.drawing/pen). + +值:深绿色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the dark green [Pen](../../com.aspose.drawing/pen). +### getDarkKhaki() {#getDarkKhaki--} +``` +public static Pen getDarkKhaki() +``` + + +获取深卡其色的 [Pen](../../com.aspose.drawing/pen). + +值:深卡其色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the dark khaki [Pen](../../com.aspose.drawing/pen). +### getDarkMagenta() {#getDarkMagenta--} +``` +public static Pen getDarkMagenta() +``` + + +获取深洋红色的 [Pen](../../com.aspose.drawing/pen). + +值:深洋红色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the dark magenta [Pen](../../com.aspose.drawing/pen). +### getDarkOliveGreen() {#getDarkOliveGreen--} +``` +public static Pen getDarkOliveGreen() +``` + + +获取深橄榄绿的 [Pen](../../com.aspose.drawing/pen). + +值:深橄榄绿 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the dark olive green [Pen](../../com.aspose.drawing/pen). +### getDarkOrange() {#getDarkOrange--} +``` +public static Pen getDarkOrange() +``` + + +获取深橙色的 [Pen](../../com.aspose.drawing/pen). + +值:深橙色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the dark orange [Pen](../../com.aspose.drawing/pen). +### getDarkOrchid() {#getDarkOrchid--} +``` +public static Pen getDarkOrchid() +``` + + +获取深兰花紫的 [Pen](../../com.aspose.drawing/pen). + +值:深兰花紫 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the dark orchid [Pen](../../com.aspose.drawing/pen). +### getDarkRed() {#getDarkRed--} +``` +public static Pen getDarkRed() +``` + + +获取深红色的 [Pen](../../com.aspose.drawing/pen). + +值:深红色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the dark red [Pen](../../com.aspose.drawing/pen). +### getDarkSalmon() {#getDarkSalmon--} +``` +public static Pen getDarkSalmon() +``` + + +获取深鲑鱼色的 [Pen](../../com.aspose.drawing/pen). + +值:深鲑色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the dark salmon [Pen](../../com.aspose.drawing/pen). +### getDarkSeaGreen() {#getDarkSeaGreen--} +``` +public static Pen getDarkSeaGreen() +``` + + +获取深海绿色的 [Pen](../../com.aspose.drawing/pen). + +值:深海绿色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the dark sea green [Pen](../../com.aspose.drawing/pen). +### getDarkSlateBlue() {#getDarkSlateBlue--} +``` +public static Pen getDarkSlateBlue() +``` + + +获取深板岩蓝的 [Pen](../../com.aspose.drawing/pen). + +值:暗石板蓝 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the dark slate blue [Pen](../../com.aspose.drawing/pen). +### getDarkSlateGray() {#getDarkSlateGray--} +``` +public static Pen getDarkSlateGray() +``` + + +获取深板岩灰的 [Pen](../../com.aspose.drawing/pen). + +值:暗石板灰 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the dark slate gray [Pen](../../com.aspose.drawing/pen). +### getDarkTurquoise() {#getDarkTurquoise--} +``` +public static Pen getDarkTurquoise() +``` + + +获取深绿松石色的 [Pen](../../com.aspose.drawing/pen). + +值:暗绿松石 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the dark turquoise [Pen](../../com.aspose.drawing/pen). +### getDarkViolet() {#getDarkViolet--} +``` +public static Pen getDarkViolet() +``` + + +获取深紫罗兰色的 [Pen](../../com.aspose.drawing/pen). + +值:暗紫罗兰 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the dark violet [Pen](../../com.aspose.drawing/pen). +### getDeepPink() {#getDeepPink--} +``` +public static Pen getDeepPink() +``` + + +获取深粉红色的 [Pen](../../com.aspose.drawing/pen). + +值:深粉红 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the deep pink [Pen](../../com.aspose.drawing/pen). +### getDeepSkyBlue() {#getDeepSkyBlue--} +``` +public static Pen getDeepSkyBlue() +``` + + +获取深天蓝色的 [Pen](../../com.aspose.drawing/pen). + +值:深天蓝 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the deep sky blue [Pen](../../com.aspose.drawing/pen). +### getDimGray() {#getDimGray--} +``` +public static Pen getDimGray() +``` + + +获取暗灰色的 [Pen](../../com.aspose.drawing/pen). + +值:暗淡灰 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the dim gray [Pen](../../com.aspose.drawing/pen). +### getDodgerBlue() {#getDodgerBlue--} +``` +public static Pen getDodgerBlue() +``` + + +获取道奇蓝的 [Pen](../../com.aspose.drawing/pen). + +值:道奇蓝 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the dodger blue [Pen](../../com.aspose.drawing/pen). +### getFirebrick() {#getFirebrick--} +``` +public static Pen getFirebrick() +``` + + +获取砖红色的 [Pen](../../com.aspose.drawing/pen). + +值:砖红 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the firebrick [Pen](../../com.aspose.drawing/pen). +### getFloralWhite() {#getFloralWhite--} +``` +public static Pen getFloralWhite() +``` + + +获取花卉白的 [Pen](../../com.aspose.drawing/pen). + +值:花卉白 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the floral white [Pen](../../com.aspose.drawing/pen). +### getForestGreen() {#getForestGreen--} +``` +public static Pen getForestGreen() +``` + + +获取森林绿的 [Pen](../../com.aspose.drawing/pen). + +值:森林绿 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the forest green [Pen](../../com.aspose.drawing/pen). +### getFuchsia() {#getFuchsia--} +``` +public static Pen getFuchsia() +``` + + +获取紫红色的 [Pen](../../com.aspose.drawing/pen). + +值:紫红 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the fuchsia [Pen](../../com.aspose.drawing/pen). +### getGainsboro() {#getGainsboro--} +``` +public static Pen getGainsboro() +``` + + +获取淡灰色的 [Pen](../../com.aspose.drawing/pen). + +值:淡灰色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the gainsboro [Pen](../../com.aspose.drawing/pen). +### getGhostWhite() {#getGhostWhite--} +``` +public static Pen getGhostWhite() +``` + + +获取幽灵白的 [Pen](../../com.aspose.drawing/pen). + +值:幽灵白 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the ghost white [Pen](../../com.aspose.drawing/pen). +### getGold() {#getGold--} +``` +public static Pen getGold() +``` + + +获取金色的 [Pen](../../com.aspose.drawing/pen). + +值:金色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the gold [Pen](../../com.aspose.drawing/pen). +### getGoldenrod() {#getGoldenrod--} +``` +public static Pen getGoldenrod() +``` + + +获取金菊色的 [Pen](../../com.aspose.drawing/pen). + +值:金菊黄 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the goldenrod [Pen](../../com.aspose.drawing/pen). +### getGray() {#getGray--} +``` +public static Pen getGray() +``` + + +获取灰色的 [Pen](../../com.aspose.drawing/pen). + +值:灰色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the gray [Pen](../../com.aspose.drawing/pen). +### getGreen() {#getGreen--} +``` +public static Pen getGreen() +``` + + +获取绿色的 [Pen](../../com.aspose.drawing/pen). + +值:绿色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the green [Pen](../../com.aspose.drawing/pen). +### getGreenYellow() {#getGreenYellow--} +``` +public static Pen getGreenYellow() +``` + + +获取黄绿色的 [Pen](../../com.aspose.drawing/pen). + +值:绿黄色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the green yellow [Pen](../../com.aspose.drawing/pen). +### getHoneydew() {#getHoneydew--} +``` +public static Pen getHoneydew() +``` + + +获取蜜瓜色的 [Pen](../../com.aspose.drawing/pen). + +值:蜜露色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the honeydew [Pen](../../com.aspose.drawing/pen). +### getHotPink() {#getHotPink--} +``` +public static Pen getHotPink() +``` + + +获取热粉色的 [Pen](../../com.aspose.drawing/pen). + +值:热粉红 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the hot pink [Pen](../../com.aspose.drawing/pen). +### getIndianRed() {#getIndianRed--} +``` +public static Pen getIndianRed() +``` + + +获取印度红的 [Pen](../../com.aspose.drawing/pen). + +值:印度红 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the indian red [Pen](../../com.aspose.drawing/pen). +### getIndigo() {#getIndigo--} +``` +public static Pen getIndigo() +``` + + +获取靛蓝的 [Pen](../../com.aspose.drawing/pen). + +值:靛蓝 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the indigo [Pen](../../com.aspose.drawing/pen). +### getIvory() {#getIvory--} +``` +public static Pen getIvory() +``` + + +获取象牙色的 [Pen](../../com.aspose.drawing/pen). + +值:象牙色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the ivory [Pen](../../com.aspose.drawing/pen). +### getKhaki() {#getKhaki--} +``` +public static Pen getKhaki() +``` + + +获取卡其色的 [Pen](../../com.aspose.drawing/pen). + +值:卡其色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the khaki [Pen](../../com.aspose.drawing/pen). +### getLavender() {#getLavender--} +``` +public static Pen getLavender() +``` + + +获取薰衣草色的 [Pen](../../com.aspose.drawing/pen). + +值: 薰衣草色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the lavender [Pen](../../com.aspose.drawing/pen). +### getLavenderBlush() {#getLavenderBlush--} +``` +public static Pen getLavenderBlush() +``` + + +获取薰衣草腮红色的 [Pen](../../com.aspose.drawing/pen). + +值: 淡薰衣草色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the lavender blush [Pen](../../com.aspose.drawing/pen). +### getLawnGreen() {#getLawnGreen--} +``` +public static Pen getLawnGreen() +``` + + +获取草绿色的 [Pen](../../com.aspose.drawing/pen). + +值: 草坪绿 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the lawn green [Pen](../../com.aspose.drawing/pen). +### getLemonChiffon() {#getLemonChiffon--} +``` +public static Pen getLemonChiffon() +``` + + +获取柠檬绸色的 [Pen](../../com.aspose.drawing/pen). + +值: 柠檬绸色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the lemon chiffon [Pen](../../com.aspose.drawing/pen). +### getLightBlue() {#getLightBlue--} +``` +public static Pen getLightBlue() +``` + + +获取浅蓝色的 [Pen](../../com.aspose.drawing/pen). + +值: 浅蓝色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the light blue [Pen](../../com.aspose.drawing/pen). +### getLightCoral() {#getLightCoral--} +``` +public static Pen getLightCoral() +``` + + +获取浅珊瑚色的 [Pen](../../com.aspose.drawing/pen). + +值: 浅珊瑚色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the light coral [Pen](../../com.aspose.drawing/pen). +### getLightCyan() {#getLightCyan--} +``` +public static Pen getLightCyan() +``` + + +获取浅青色的 [Pen](../../com.aspose.drawing/pen). + +值: 浅青色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the light cyan [Pen](../../com.aspose.drawing/pen). +### getLightGoldenrodYellow() {#getLightGoldenrodYellow--} +``` +public static Pen getLightGoldenrodYellow() +``` + + +获取浅金菊黄的 [Pen](../../com.aspose.drawing/pen). + +值: 浅金菊黄 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the light goldenrod yellow [Pen](../../com.aspose.drawing/pen). +### getLightGray() {#getLightGray--} +``` +public static Pen getLightGray() +``` + + +获取浅灰色的 [Pen](../../com.aspose.drawing/pen). + +值: 浅灰色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the light gray [Pen](../../com.aspose.drawing/pen). +### getLightGreen() {#getLightGreen--} +``` +public static Pen getLightGreen() +``` + + +获取浅绿色的 [Pen](../../com.aspose.drawing/pen). + +值: 浅绿色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the light green [Pen](../../com.aspose.drawing/pen). +### getLightPink() {#getLightPink--} +``` +public static Pen getLightPink() +``` + + +获取浅粉色的 [Pen](../../com.aspose.drawing/pen). + +值: 浅粉色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the light pink [Pen](../../com.aspose.drawing/pen). +### getLightSalmon() {#getLightSalmon--} +``` +public static Pen getLightSalmon() +``` + + +获取浅鲑色的 [Pen](../../com.aspose.drawing/pen). + +值: 浅鲑鱼色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the light salmon [Pen](../../com.aspose.drawing/pen). +### getLightSeaGreen() {#getLightSeaGreen--} +``` +public static Pen getLightSeaGreen() +``` + + +获取浅海绿色的 [Pen](../../com.aspose.drawing/pen). + +值: 浅海绿色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the light sea green [Pen](../../com.aspose.drawing/pen). +### getLightSkyBlue() {#getLightSkyBlue--} +``` +public static Pen getLightSkyBlue() +``` + + +获取浅天空蓝色的 [Pen](../../com.aspose.drawing/pen). + +值: 浅天空蓝色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the light sky blue [Pen](../../com.aspose.drawing/pen). +### getLightSlateGray() {#getLightSlateGray--} +``` +public static Pen getLightSlateGray() +``` + + +获取浅石板灰的 [Pen](../../com.aspose.drawing/pen). + +值: 浅石板灰色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the light slate gray [Pen](../../com.aspose.drawing/pen). +### getLightSteelBlue() {#getLightSteelBlue--} +``` +public static Pen getLightSteelBlue() +``` + + +获取浅钢蓝色的 [Pen](../../com.aspose.drawing/pen). + +值: 浅钢蓝色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the light steel blue [Pen](../../com.aspose.drawing/pen). +### getLightYellow() {#getLightYellow--} +``` +public static Pen getLightYellow() +``` + + +获取浅黄色的 [Pen](../../com.aspose.drawing/pen). + +值: 浅黄色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the light yellow [Pen](../../com.aspose.drawing/pen). +### getLime() {#getLime--} +``` +public static Pen getLime() +``` + + +获取酸橙色的 [Pen](../../com.aspose.drawing/pen). + +值: 酸橙色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the lime [Pen](../../com.aspose.drawing/pen). +### getLimeGreen() {#getLimeGreen--} +``` +public static Pen getLimeGreen() +``` + + +获取酸橙绿色的 [Pen](../../com.aspose.drawing/pen). + +值: 酸橙绿 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the lime green [Pen](../../com.aspose.drawing/pen). +### getLinen() {#getLinen--} +``` +public static Pen getLinen() +``` + + +获取亚麻色的 [Pen](../../com.aspose.drawing/pen). + +值: 亚麻色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the linen [Pen](../../com.aspose.drawing/pen). +### getMagenta() {#getMagenta--} +``` +public static Pen getMagenta() +``` + + +获取品红色的 [Pen](../../com.aspose.drawing/pen). + +值: 品红色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the magenta [Pen](../../com.aspose.drawing/pen). +### getMaroon() {#getMaroon--} +``` +public static Pen getMaroon() +``` + + +获取栗色的 [Pen](../../com.aspose.drawing/pen). + +值: 栗色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the maroon [Pen](../../com.aspose.drawing/pen). +### getMediumAquamarine() {#getMediumAquamarine--} +``` +public static Pen getMediumAquamarine() +``` + + +获取中等海蓝宝石色的 [Pen](../../com.aspose.drawing/pen). + +值: 中等海蓝宝石色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the medium aquamarine [Pen](../../com.aspose.drawing/pen). +### getMediumBlue() {#getMediumBlue--} +``` +public static Pen getMediumBlue() +``` + + +获取中等蓝色的 [Pen](../../com.aspose.drawing/pen). + +值: 中等蓝色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the medium blue [Pen](../../com.aspose.drawing/pen). +### getMediumOrchid() {#getMediumOrchid--} +``` +public static Pen getMediumOrchid() +``` + + +获取中等兰花紫的 [Pen](../../com.aspose.drawing/pen). + +值: 中等兰花紫色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the medium orchid [Pen](../../com.aspose.drawing/pen). +### getMediumPurple() {#getMediumPurple--} +``` +public static Pen getMediumPurple() +``` + + +获取中等紫色的 [Pen](../../com.aspose.drawing/pen). + +值:中等紫色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the medium purple [Pen](../../com.aspose.drawing/pen). +### getMediumSeaGreen() {#getMediumSeaGreen--} +``` +public static Pen getMediumSeaGreen() +``` + + +获取中等海绿色的 [Pen](../../com.aspose.drawing/pen). + +值:中等海绿色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the medium sea green [Pen](../../com.aspose.drawing/pen). +### getMediumSlateBlue() {#getMediumSlateBlue--} +``` +public static Pen getMediumSlateBlue() +``` + + +获取中等板岩蓝的 [Pen](../../com.aspose.drawing/pen). + +值:中等板岩蓝色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the medium slate blue [Pen](../../com.aspose.drawing/pen). +### getMediumSpringGreen() {#getMediumSpringGreen--} +``` +public static Pen getMediumSpringGreen() +``` + + +获取中等春绿色的 [Pen](../../com.aspose.drawing/pen). + +值:中等春绿色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the medium spring green [Pen](../../com.aspose.drawing/pen). +### getMediumTurquoise() {#getMediumTurquoise--} +``` +public static Pen getMediumTurquoise() +``` + + +获取中等绿松石色的 [Pen](../../com.aspose.drawing/pen). + +值:中等绿松石色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the medium turquoise [Pen](../../com.aspose.drawing/pen). +### getMediumVioletRed() {#getMediumVioletRed--} +``` +public static Pen getMediumVioletRed() +``` + + +获取中等紫罗兰红的 [Pen](../../com.aspose.drawing/pen). + +值:中等紫红色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the medium violet red [Pen](../../com.aspose.drawing/pen). +### getMidnightBlue() {#getMidnightBlue--} +``` +public static Pen getMidnightBlue() +``` + + +获取午夜蓝的 [Pen](../../com.aspose.drawing/pen). + +值:午夜蓝色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the midnight blue [Pen](../../com.aspose.drawing/pen). +### getMintCream() {#getMintCream--} +``` +public static Pen getMintCream() +``` + + +获取薄荷奶油色的 [Pen](../../com.aspose.drawing/pen). + +值:薄荷奶油色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the mint cream [Pen](../../com.aspose.drawing/pen). +### getMistyRose() {#getMistyRose--} +``` +public static Pen getMistyRose() +``` + + +获取雾玫瑰色的 [Pen](../../com.aspose.drawing/pen). + +值:雾玫瑰色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the misty rose [Pen](../../com.aspose.drawing/pen). +### getMoccasin() {#getMoccasin--} +``` +public static Pen getMoccasin() +``` + + +获取鹿皮色的 [Pen](../../com.aspose.drawing/pen). + +值:鹿皮色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the moccasin [Pen](../../com.aspose.drawing/pen). +### getNavajoWhite() {#getNavajoWhite--} +``` +public static Pen getNavajoWhite() +``` + + +获取纳瓦霍白的 [Pen](../../com.aspose.drawing/pen). + +值:纳瓦霍白色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the navajo white [Pen](../../com.aspose.drawing/pen). +### getNavy() {#getNavy--} +``` +public static Pen getNavy() +``` + + +获取海军蓝的 [Pen](../../com.aspose.drawing/pen). + +值:海军蓝色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the navy [Pen](../../com.aspose.drawing/pen). +### getOldLace() {#getOldLace--} +``` +public static Pen getOldLace() +``` + + +获取旧蕾丝色的 [Pen](../../com.aspose.drawing/pen). + +值:旧蕾丝色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the old lace [Pen](../../com.aspose.drawing/pen). +### getOlive() {#getOlive--} +``` +public static Pen getOlive() +``` + + +获取橄榄色的 [Pen](../../com.aspose.drawing/pen). + +值:橄榄色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the olive [Pen](../../com.aspose.drawing/pen). +### getOliveDrab() {#getOliveDrab--} +``` +public static Pen getOliveDrab() +``` + + +获取橄榄暗绿的 [Pen](../../com.aspose.drawing/pen). + +值:橄榄暗绿 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the olive drab [Pen](../../com.aspose.drawing/pen). +### getOrange() {#getOrange--} +``` +public static Pen getOrange() +``` + + +获取橙色的 [Pen](../../com.aspose.drawing/pen). + +值:橙色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the orange [Pen](../../com.aspose.drawing/pen). +### getOrangeRed() {#getOrangeRed--} +``` +public static Pen getOrangeRed() +``` + + +获取橙红色的 [Pen](../../com.aspose.drawing/pen). + +值:橙红色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the orange red [Pen](../../com.aspose.drawing/pen). +### getOrchid() {#getOrchid--} +``` +public static Pen getOrchid() +``` + + +获取兰花紫的 [Pen](../../com.aspose.drawing/pen). + +值:兰花色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the orchid [Pen](../../com.aspose.drawing/pen). +### getPaleGoldenrod() {#getPaleGoldenrod--} +``` +public static Pen getPaleGoldenrod() +``` + + +获取淡金菊色的 [Pen](../../com.aspose.drawing/pen). + +值:淡金菊色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the pale goldenrod [Pen](../../com.aspose.drawing/pen). +### getPaleGreen() {#getPaleGreen--} +``` +public static Pen getPaleGreen() +``` + + +获取淡绿色的 [Pen](../../com.aspose.drawing/pen). + +值:淡绿色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the pale green [Pen](../../com.aspose.drawing/pen). +### getPaleTurquoise() {#getPaleTurquoise--} +``` +public static Pen getPaleTurquoise() +``` + + +获取淡绿松石色的 [Pen](../../com.aspose.drawing/pen). + +值:淡绿松石色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the pale turquoise [Pen](../../com.aspose.drawing/pen). +### getPaleVioletRed() {#getPaleVioletRed--} +``` +public static Pen getPaleVioletRed() +``` + + +获取淡紫红色的 [Pen](../../com.aspose.drawing/pen). + +值:淡紫红色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the pale violet red [Pen](../../com.aspose.drawing/pen). +### getPapayaWhip() {#getPapayaWhip--} +``` +public static Pen getPapayaWhip() +``` + + +获取木瓜色的 [Pen](../../com.aspose.drawing/pen). + +值:木瓜色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the papaya whip [Pen](../../com.aspose.drawing/pen). +### getPeachPuff() {#getPeachPuff--} +``` +public static Pen getPeachPuff() +``` + + +获取桃肉色的 [Pen](../../com.aspose.drawing/pen). + +值:桃色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the peach puff [Pen](../../com.aspose.drawing/pen). +### getPeru() {#getPeru--} +``` +public static Pen getPeru() +``` + + +获取秘鲁棕色的 [Pen](../../com.aspose.drawing/pen). + +值:秘鲁棕色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the peru [Pen](../../com.aspose.drawing/pen). +### getPink() {#getPink--} +``` +public static Pen getPink() +``` + + +获取粉色的 [Pen](../../com.aspose.drawing/pen). + +值:粉红色的 [Pen](../../com.aspose.drawing/pen)。 + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the pink [Pen](../../com.aspose.drawing/pen). +### getPlum() {#getPlum--} +``` +public static Pen getPlum() +``` + + +获取李子色的 [Pen](../../com.aspose.drawing/pen). + +值:李子色的 [Pen](../../com.aspose.drawing/pen)。 + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the plum [Pen](../../com.aspose.drawing/pen). +### getPowderBlue() {#getPowderBlue--} +``` +public static Pen getPowderBlue() +``` + + +获取粉蓝色的 [Pen](../../com.aspose.drawing/pen). + +值:粉蓝色的 [Pen](../../com.aspose.drawing/pen)。 + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the powder blue [Pen](../../com.aspose.drawing/pen). +### getPurple() {#getPurple--} +``` +public static Pen getPurple() +``` + + +获取紫色的 [Pen](../../com.aspose.drawing/pen). + +值:紫色的 [Pen](../../com.aspose.drawing/pen)。 + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the purple [Pen](../../com.aspose.drawing/pen). +### getRed() {#getRed--} +``` +public static Pen getRed() +``` + + +获取红色的 [Pen](../../com.aspose.drawing/pen). + +值:红色的 [Pen](../../com.aspose.drawing/pen)。 + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the red [Pen](../../com.aspose.drawing/pen). +### getRosyBrown() {#getRosyBrown--} +``` +public static Pen getRosyBrown() +``` + + +获取玫瑰棕色的 [Pen](../../com.aspose.drawing/pen). + +值:玫瑰棕色的 [Pen](../../com.aspose.drawing/pen)。 + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the rosy brown [Pen](../../com.aspose.drawing/pen). +### getRoyalBlue() {#getRoyalBlue--} +``` +public static Pen getRoyalBlue() +``` + + +获取皇家蓝色的 [Pen](../../com.aspose.drawing/pen). + +值:皇家蓝色的 [Pen](../../com.aspose.drawing/pen)。 + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the royal blue [Pen](../../com.aspose.drawing/pen). +### getSaddleBrown() {#getSaddleBrown--} +``` +public static Pen getSaddleBrown() +``` + + +获取鞍棕色的 [Pen](../../com.aspose.drawing/pen). + +值:鞍棕色的 [Pen](../../com.aspose.drawing/pen)。 + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the saddle brown [Pen](../../com.aspose.drawing/pen). +### getSalmon() {#getSalmon--} +``` +public static Pen getSalmon() +``` + + +获取鲑鱼色的 [Pen](../../com.aspose.drawing/pen). + +值:鲑鱼色的 [Pen](../../com.aspose.drawing/pen)。 + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the salmon [Pen](../../com.aspose.drawing/pen). +### getSandyBrown() {#getSandyBrown--} +``` +public static Pen getSandyBrown() +``` + + +获取沙棕色的 [Pen](../../com.aspose.drawing/pen). + +值:沙棕色的 [Pen](../../com.aspose.drawing/pen)。 + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the sandy brown [Pen](../../com.aspose.drawing/pen). +### getSeaGreen() {#getSeaGreen--} +``` +public static Pen getSeaGreen() +``` + + +获取海绿色的 [Pen](../../com.aspose.drawing/pen). + +值:海绿色的 [Pen](../../com.aspose.drawing/pen)。 + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the sea green [Pen](../../com.aspose.drawing/pen). +### getSeaShell() {#getSeaShell--} +``` +public static Pen getSeaShell() +``` + + +获取海贝色的 [Pen](../../com.aspose.drawing/pen). + +值:海贝色的 [Pen](../../com.aspose.drawing/pen)。 + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the sea shell [Pen](../../com.aspose.drawing/pen). +### getSienna() {#getSienna--} +``` +public static Pen getSienna() +``` + + +获取赭色的 [Pen](../../com.aspose.drawing/pen). + +值:赭色的 [Pen](../../com.aspose.drawing/pen)。 + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the sienna [Pen](../../com.aspose.drawing/pen). +### getSilver() {#getSilver--} +``` +public static Pen getSilver() +``` + + +获取银色的 [Pen](../../com.aspose.drawing/pen). + +值:银色的 [Pen](../../com.aspose.drawing/pen)。 + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the silver [Pen](../../com.aspose.drawing/pen). +### getSkyBlue() {#getSkyBlue--} +``` +public static Pen getSkyBlue() +``` + + +获取天蓝色的 [Pen](../../com.aspose.drawing/pen). + +值:天蓝色的 [Pen](../../com.aspose.drawing/pen)。 + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the sky blue [Pen](../../com.aspose.drawing/pen). +### getSlateBlue() {#getSlateBlue--} +``` +public static Pen getSlateBlue() +``` + + +获取石板蓝色的 [Pen](../../com.aspose.drawing/pen). + +值:石板蓝色的 [Pen](../../com.aspose.drawing/pen)。 + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the slate blue [Pen](../../com.aspose.drawing/pen). +### getSlateGray() {#getSlateGray--} +``` +public static Pen getSlateGray() +``` + + +获取 板岩灰 [Pen](../../com.aspose.drawing/pen). + +值:石板灰色的 [Pen](../../com.aspose.drawing/pen)。 + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the slate gray [Pen](../../com.aspose.drawing/pen). +### getSnow() {#getSnow--} +``` +public static Pen getSnow() +``` + + +获取 雪白 [Pen](../../com.aspose.drawing/pen). + +值:雪白色的 [Pen](../../com.aspose.drawing/pen)。 + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the snow [Pen](../../com.aspose.drawing/pen). +### getSpringGreen() {#getSpringGreen--} +``` +public static Pen getSpringGreen() +``` + + +获取 春绿 [Pen](../../com.aspose.drawing/pen). + +值:春绿色的 [Pen](../../com.aspose.drawing/pen)。 + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the spring green [Pen](../../com.aspose.drawing/pen). +### getSteelBlue() {#getSteelBlue--} +``` +public static Pen getSteelBlue() +``` + + +获取 钢蓝 [Pen](../../com.aspose.drawing/pen). + +值:钢蓝色的 [Pen](../../com.aspose.drawing/pen)。 + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the steel blue [Pen](../../com.aspose.drawing/pen). +### getTan() {#getTan--} +``` +public static Pen getTan() +``` + + +获取 黄褐色 [Pen](../../com.aspose.drawing/pen). + +值:黄褐色的 [Pen](../../com.aspose.drawing/pen)。 + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the tan [Pen](../../com.aspose.drawing/pen). +### getTeal() {#getTeal--} +``` +public static Pen getTeal() +``` + + +获取 青色 [Pen](../../com.aspose.drawing/pen). + +值:青色的 [Pen](../../com.aspose.drawing/pen)。 + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the teal [Pen](../../com.aspose.drawing/pen). +### getThistle() {#getThistle--} +``` +public static Pen getThistle() +``` + + +获取 蓟紫 [Pen](../../com.aspose.drawing/pen). + +值:蓟色的 [Pen](../../com.aspose.drawing/pen)。 + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the thistle [Pen](../../com.aspose.drawing/pen). +### getTomato() {#getTomato--} +``` +public static Pen getTomato() +``` + + +获取 番茄红 [Pen](../../com.aspose.drawing/pen). + +值:番茄色的 [Pen](../../com.aspose.drawing/pen)。 + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the tomato [Pen](../../com.aspose.drawing/pen). +### getTransparent() {#getTransparent--} +``` +public static Pen getTransparent() +``` + + +获取 透明 [Pen](../../com.aspose.drawing/pen). + +值:透明的 [Pen](../../com.aspose.drawing/pen)。 + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the transparent [Pen](../../com.aspose.drawing/pen). +### getTurquoise() {#getTurquoise--} +``` +public static Pen getTurquoise() +``` + + +获取 绿松石色 [Pen](../../com.aspose.drawing/pen). + +值:青绿色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the turquoise [Pen](../../com.aspose.drawing/pen). +### getViolet() {#getViolet--} +``` +public static Pen getViolet() +``` + + +获取 紫罗兰 [Pen](../../com.aspose.drawing/pen). + +值:紫罗兰色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the violet [Pen](../../com.aspose.drawing/pen). +### getWheat() {#getWheat--} +``` +public static Pen getWheat() +``` + + +获取 小麦色 [Pen](../../com.aspose.drawing/pen). + +值:小麦色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the wheat [Pen](../../com.aspose.drawing/pen). +### getWhite() {#getWhite--} +``` +public static Pen getWhite() +``` + + +获取 白色 [Pen](../../com.aspose.drawing/pen). + +值:白色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the white [Pen](../../com.aspose.drawing/pen). +### getWhiteSmoke() {#getWhiteSmoke--} +``` +public static Pen getWhiteSmoke() +``` + + +获取 烟白色 [Pen](../../com.aspose.drawing/pen). + +值:白烟色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the white smoke [Pen](../../com.aspose.drawing/pen). +### getYellow() {#getYellow--} +``` +public static Pen getYellow() +``` + + +获取 黄色 [Pen](../../com.aspose.drawing/pen). + +值:黄色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the yellow [Pen](../../com.aspose.drawing/pen). +### getYellowGreen() {#getYellowGreen--} +``` +public static Pen getYellowGreen() +``` + + +获取 黄绿色 [Pen](../../com.aspose.drawing/pen). + +值:黄绿色 [Pen](../../com.aspose.drawing/pen). + +**Returns:** +[Pen](../../com.aspose.drawing/pen) - the yellow green [Pen](../../com.aspose.drawing/pen). diff --git a/chinese/java/com.aspose.drawing/point/_index.md b/chinese/java/com.aspose.drawing/point/_index.md new file mode 100644 index 000000000..6b1b63014 --- /dev/null +++ b/chinese/java/com.aspose.drawing/point/_index.md @@ -0,0 +1,479 @@ +--- +title: Point +second_title: Aspose.Drawing for Java API 参考 +description: 表示一对整数 x 和 y 坐标,定义二维平面中的一个点。 +type: docs +weight: 36 +url: /zh/java/com.aspose.drawing/point/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.lang.Struct + +**All Implemented Interfaces:** +com.aspose.ms.System.IEquatable, java.lang.Cloneable +``` +public class Point extends Struct implements System.IEquatable, Cloneable +``` + +表示一对整数 x 和 y 坐标,定义二维平面中的一个点。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [Point()](#Point--) | | +| [Point(int x, int y)](#Point-int-int-) | 使用指定坐标初始化 [Point](../../com.aspose.drawing/point) 结构的新实例。 | +| [Point(Size sz)](#Point-com.aspose.drawing.Size-) | | +| [Point(int dw)](#Point-int-) | 使用整数值指定的坐标初始化 [Point](../../com.aspose.drawing/point) 结构的新实例。 | +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [EMPTY](#EMPTY) | 表示一个 `Point.X` 和 `Point.Y` 值均为零的 [Point](../../com.aspose.drawing/point)。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [to_PointF(Point p)](#to-PointF-com.aspose.drawing.Point-) | 将指定的 [Point](../../com.aspose.drawing/point) 结构转换为 [PointF](../../com.aspose.drawing/pointf) 结构。 | +| [to_Size(Point p)](#to-Size-com.aspose.drawing.Point-) | | +| [op_Addition(Point pt, Size sz)](#op-Addition-com.aspose.drawing.Point-com.aspose.drawing.Size-) | | +| [op_Subtraction(Point pt, Size sz)](#op-Subtraction-com.aspose.drawing.Point-com.aspose.drawing.Size-) | | +| [op_Equality(Point left, Point right)](#op-Equality-com.aspose.drawing.Point-com.aspose.drawing.Point-) | 比较两个 [Point](../../com.aspose.drawing/point) 对象。 | +| [op_Inequality(Point left, Point right)](#op-Inequality-com.aspose.drawing.Point-com.aspose.drawing.Point-) | 比较两个 [Point](../../com.aspose.drawing/point) 对象。 | +| [add(Point pt, Size sz)](#add-com.aspose.drawing.Point-com.aspose.drawing.Size-) | 将指定的 [Size](../../com.aspose.drawing/size) 添加到指定的 [Point](../../com.aspose.drawing/point) 中。 | +| [subtract(Point pt, Size sz)](#subtract-com.aspose.drawing.Point-com.aspose.drawing.Size-) | | +| [ceiling(PointF value)](#ceiling-com.aspose.drawing.PointF-) | | +| [truncate(PointF value)](#truncate-com.aspose.drawing.PointF-) | 通过对所有坐标执行截断操作,将 PointF 转换为 Point。 | +| [round(PointF value)](#round-com.aspose.drawing.PointF-) | 通过将 [Point](../../com.aspose.drawing/point) 值四舍五入到最近的整数,将指定的 [PointF](../../com.aspose.drawing/pointf) 转换为 Point 对象。 | +| [isEquals(Point obj1, Point obj2)](#isEquals-com.aspose.drawing.Point-com.aspose.drawing.Point-) | | +| [getEmpty()](#getEmpty--) | | +| [getX()](#getX--) | 获取此 Point 的 x 坐标。 | +| [setX(int value)](#setX-int-) | 设置此 Point 的 x 坐标。 | +| [getY()](#getY--) | 获取此 Point 的 y 坐标。 | +| [setY(int value)](#setY-int-) | 设置此 Point 的 y 坐标。 | +| [isEmpty()](#isEmpty--) | 获取一个值,指示此 [Point](../../com.aspose.drawing/point) 是否为空。 | +| [hashCode()](#hashCode--) | 返回此 [Point](../../com.aspose.drawing/point) 的哈希码。 | +| [toString()](#toString--) | | +| [equals(Object obj)](#equals-java.lang.Object-) | 指定此 [Point](../../com.aspose.drawing/point) 是否包含与指定对象相同的坐标。 | +| [offset(int dx, int dy)](#offset-int-int-) | 按指定的量平移此 [Point](../../com.aspose.drawing/point)。 | +| [offset(Point p)](#offset-com.aspose.drawing.Point-) | 按指定的 [Point](../../com.aspose.drawing/point) 平移此 [Point](../../com.aspose.drawing/point)。 | +| [equals(Point other)](#equals-com.aspose.drawing.Point-) | 测试另一个 [Point](../../com.aspose.drawing/point) 结构是否具有与此 [Point](../../com.aspose.drawing/point) 结构相同的位置。 | +| [CloneTo(Point that)](#CloneTo-com.aspose.drawing.Point-) | | +| [Clone()](#Clone--) | | +| [clone()](#clone--) | | +### Point() {#Point--} +``` +public Point() +``` + + +### Point(int x, int y) {#Point-int-int-} +``` +public Point(int x, int y) +``` + + +使用指定坐标初始化 [Point](../../com.aspose.drawing/point) 结构的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| x | int | 点的水平位置。 | +| y | int | 点的垂直位置。 | + +### Point(Size sz) {#Point-com.aspose.drawing.Size-} +``` +public Point(Size sz) +``` + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| sz | [Size](../../com.aspose.drawing/size) | | + +### Point(int dw) {#Point-int-} +``` +public Point(int dw) +``` + + +使用整数值指定的坐标初始化 [Point](../../com.aspose.drawing/point) 结构的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| dw | int | 整数值。 | + +### EMPTY {#EMPTY} +``` +public static final Point EMPTY +``` + + +表示一个 `Point.X` 和 `Point.Y` 值均为零的 [Point](../../com.aspose.drawing/point)。 + +### to_PointF(Point p) {#to-PointF-com.aspose.drawing.Point-} +``` +public static PointF to_PointF(Point p) +``` + + +将指定的 [Point](../../com.aspose.drawing/point) 结构转换为 [PointF](../../com.aspose.drawing/pointf) 结构。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| p | [Point](../../com.aspose.drawing/point) | 要转换的 [Point](../../com.aspose.drawing/point)。 | + +**Returns:** +[PointF](../../com.aspose.drawing/pointf) - The [PointF](../../com.aspose.drawing/pointf) that results from the conversion. +### to_Size(Point p) {#to-Size-com.aspose.drawing.Point-} +``` +public static Size to_Size(Point p) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| p | [Point](../../com.aspose.drawing/point) | | + +**Returns:** +[Size](../../com.aspose.drawing/size) +### op_Addition(Point pt, Size sz) {#op-Addition-com.aspose.drawing.Point-com.aspose.drawing.Size-} +``` +public static Point op_Addition(Point pt, Size sz) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| pt | [Point](../../com.aspose.drawing/point) | | +| sz | [Size](../../com.aspose.drawing/size) | | + +**Returns:** +[Point](../../com.aspose.drawing/point) +### op_Subtraction(Point pt, Size sz) {#op-Subtraction-com.aspose.drawing.Point-com.aspose.drawing.Size-} +``` +public static Point op_Subtraction(Point pt, Size sz) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| pt | [Point](../../com.aspose.drawing/point) | | +| sz | [Size](../../com.aspose.drawing/size) | | + +**Returns:** +[Point](../../com.aspose.drawing/point) +### op_Equality(Point left, Point right) {#op-Equality-com.aspose.drawing.Point-com.aspose.drawing.Point-} +``` +public static boolean op_Equality(Point left, Point right) +``` + + +比较两个[Point](../../com.aspose.drawing/point)对象。结果指定这两个[Point](../../com.aspose.drawing/point)对象的 `Point.X` 和 `Point.Y` 属性的值是否相等。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| left | [Point](../../com.aspose.drawing/point) | 第一个要比较的[Point](../../com.aspose.drawing/point)。 | +| right | [Point](../../com.aspose.drawing/point) | 第二个要比较的[Point](../../com.aspose.drawing/point)。 | + +**Returns:** +boolean - 如果 `left` 和 `right` 的 `Point.X` 与 `Point.Y` 值相等则为 true;否则为 false。 +### op_Inequality(Point left, Point right) {#op-Inequality-com.aspose.drawing.Point-com.aspose.drawing.Point-} +``` +public static boolean op_Inequality(Point left, Point right) +``` + + +比较两个[Point](../../com.aspose.drawing/point)对象。结果指定这两个[Point](../../com.aspose.drawing/point)对象的 `Point.X` 或 `Point.Y` 属性的值是否不相等。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| left | [Point](../../com.aspose.drawing/point) | 第一个要比较的[Point](../../com.aspose.drawing/point)。 | +| right | [Point](../../com.aspose.drawing/point) | 第二个要比较的[Point](../../com.aspose.drawing/point)。 | + +**Returns:** +boolean - 如果 `left` 和 `right` 的 `Point.X` 属性或 `Point.Y` 属性的值任一不同则为 true;否则为 false。 +### add(Point pt, Size sz) {#add-com.aspose.drawing.Point-com.aspose.drawing.Size-} +``` +public static Point add(Point pt, Size sz) +``` + + +将指定的 [Size](../../com.aspose.drawing/size) 添加到指定的 [Point](../../com.aspose.drawing/point) 中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| pt | [Point](../../com.aspose.drawing/point) | 要添加的[Point](../../com.aspose.drawing/point)。 | +| sz | [Size](../../com.aspose.drawing/size) | 要添加的[Size](../../com.aspose.drawing/size) | + +**Returns:** +[Point](../../com.aspose.drawing/point) - The [Point](../../com.aspose.drawing/point) that is the result of the addition operation. +### subtract(Point pt, Size sz) {#subtract-com.aspose.drawing.Point-com.aspose.drawing.Size-} +``` +public static Point subtract(Point pt, Size sz) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| pt | [Point](../../com.aspose.drawing/point) | | +| sz | [Size](../../com.aspose.drawing/size) | | + +**Returns:** +[Point](../../com.aspose.drawing/point) +### ceiling(PointF value) {#ceiling-com.aspose.drawing.PointF-} +``` +public static Point ceiling(PointF value) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [PointF](../../com.aspose.drawing/pointf) | | + +**Returns:** +[Point](../../com.aspose.drawing/point) +### truncate(PointF value) {#truncate-com.aspose.drawing.PointF-} +``` +public static Point truncate(PointF value) +``` + + +通过对所有坐标执行截断操作,将 PointF 转换为 Point。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [PointF](../../com.aspose.drawing/pointf) | 要截断的[PointF](../../com.aspose.drawing/pointf)。 | + +**Returns:** +[Point](../../com.aspose.drawing/point) - The [Point](../../com.aspose.drawing/point) that is the result of the truncate operation. +### round(PointF value) {#round-com.aspose.drawing.PointF-} +``` +public static Point round(PointF value) +``` + + +通过将 [Point](../../com.aspose.drawing/point) 值四舍五入到最近的整数,将指定的 [PointF](../../com.aspose.drawing/pointf) 转换为 Point 对象。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [PointF](../../com.aspose.drawing/pointf) | 要转换的[PointF](../../com.aspose.drawing/pointf)。 | + +**Returns:** +[Point](../../com.aspose.drawing/point) - The [Point](../../com.aspose.drawing/point) this method converts to. +### isEquals(Point obj1, Point obj2) {#isEquals-com.aspose.drawing.Point-com.aspose.drawing.Point-} +``` +public static boolean isEquals(Point obj1, Point obj2) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| obj1 | [Point](../../com.aspose.drawing/point) | | +| obj2 | [Point](../../com.aspose.drawing/point) | | + +**Returns:** +布尔型 +### getEmpty() {#getEmpty--} +``` +public static Point getEmpty() +``` + + + + +**Returns:** +[Point](../../com.aspose.drawing/point) +### getX() {#getX--} +``` +public final int getX() +``` + + +获取此 Point 的 x 坐标。 + +**Returns:** +int - 此 Point 的 x 坐标。 +### setX(int value) {#setX-int-} +``` +public final void setX(int value) +``` + + +设置此 Point 的 x 坐标。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | 此 Point 的 x 坐标。 | + +### getY() {#getY--} +``` +public final int getY() +``` + + +获取此 Point 的 y 坐标。 + +**Returns:** +int - 此 Point 的 y 坐标。 +### setY(int value) {#setY-int-} +``` +public final void setY(int value) +``` + + +设置此 Point 的 y 坐标。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | 此 Point 的 y 坐标。 | + +### isEmpty() {#isEmpty--} +``` +public final boolean isEmpty() +``` + + +获取一个值,指示此 [Point](../../com.aspose.drawing/point) 是否为空。 + +值:如果 X 和 Y 均为 0 则为 `true`;否则为 `false`。 + +**Returns:** +boolean - 指示此此[Point](../../com.aspose.drawing/point)是否为空的值。 +### hashCode() {#hashCode--} +``` +public int hashCode() +``` + + +返回此 [Point](../../com.aspose.drawing/point) 的哈希码。 + +**Returns:** +int - 指定此[Point](../../com.aspose.drawing/point)的哈希值的整数。 +### toString() {#toString--} +``` +public String toString() +``` + + + + +**Returns:** +java.lang.String +### equals(Object obj) {#equals-java.lang.Object-} +``` +public boolean equals(Object obj) +``` + + +指定此 [Point](../../com.aspose.drawing/point) 是否包含与指定对象相同的坐标。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| obj | java.lang.Object | 要测试的对象。 | + +**Returns:** +boolean - 如果 obj 是 Point 并且其坐标与此[Point](../../com.aspose.drawing/point)相同则为 `true`。 +### offset(int dx, int dy) {#offset-int-int-} +``` +public final void offset(int dx, int dy) +``` + + +按指定的量平移此 [Point](../../com.aspose.drawing/point)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| dx | int | 用于偏移 x 坐标的量。 | +| dy | int | 用于偏移 y 坐标的量。 | + +### offset(Point p) {#offset-com.aspose.drawing.Point-} +``` +public final void offset(Point p) +``` + + +按指定的 [Point](../../com.aspose.drawing/point) 平移此 [Point](../../com.aspose.drawing/point)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| p | [Point](../../com.aspose.drawing/point) | 用于偏移此[Point](../../com.aspose.drawing/point)的[Point](../../com.aspose.drawing/point)。 | + +### equals(Point other) {#equals-com.aspose.drawing.Point-} +``` +public final boolean equals(Point other) +``` + + +测试另一个 [Point](../../com.aspose.drawing/point) 结构是否具有与此 [Point](../../com.aspose.drawing/point) 结构相同的位置。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| other | [Point](../../com.aspose.drawing/point) | 其他要测试的点 | + +**Returns:** +boolean - 如果其他[Point](../../com.aspose.drawing/point)结构及其 X 和 Y 属性等于此[Point](../../com.aspose.drawing/point)结构的相应属性,则此方法返回 `true`;否则返回 `false`。 +### CloneTo(Point that) {#CloneTo-com.aspose.drawing.Point-} +``` +public void CloneTo(Point that) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| that | [Point](../../com.aspose.drawing/point) | | + +### Clone() {#Clone--} +``` +public Point Clone() +``` + + + + +**Returns:** +[Point](../../com.aspose.drawing/point) +### clone() {#clone--} +``` +public Object clone() +``` + + + + +**Returns:** +java.lang.Object diff --git a/chinese/java/com.aspose.drawing/pointf/_index.md b/chinese/java/com.aspose.drawing/pointf/_index.md new file mode 100644 index 000000000..a4b800e40 --- /dev/null +++ b/chinese/java/com.aspose.drawing/pointf/_index.md @@ -0,0 +1,397 @@ +--- +title: PointF +second_title: Aspose.Drawing for Java API 参考 +description: 表示一对浮点数 x 和 y 坐标,定义二维平面中的一个点。 +type: docs +weight: 37 +url: /zh/java/com.aspose.drawing/pointf/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.lang.Struct + +**All Implemented Interfaces:** +com.aspose.ms.System.IEquatable, java.lang.Cloneable +``` +public class PointF extends Struct implements System.IEquatable, Cloneable +``` + +表示一对浮点数 x 和 y 坐标,定义二维平面中的一个点。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [PointF()](#PointF--) | | +| [PointF(float x, float y)](#PointF-float-float-) | 使用指定坐标初始化 PointF 结构的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [op_Addition(PointF pt, Size sz)](#op-Addition-com.aspose.drawing.PointF-com.aspose.drawing.Size-) | | +| [op_Subtraction(PointF pt, Size sz)](#op-Subtraction-com.aspose.drawing.PointF-com.aspose.drawing.Size-) | | +| [op_Addition(PointF pt, SizeF sz)](#op-Addition-com.aspose.drawing.PointF-com.aspose.drawing.SizeF-) | | +| [op_Subtraction(PointF pt, SizeF sz)](#op-Subtraction-com.aspose.drawing.PointF-com.aspose.drawing.SizeF-) | | +| [op_Equality(PointF left, PointF right)](#op-Equality-com.aspose.drawing.PointF-com.aspose.drawing.PointF-) | 比较两个 [PointF](../../com.aspose.drawing/pointf) 结构。 | +| [op_Inequality(PointF left, PointF right)](#op-Inequality-com.aspose.drawing.PointF-com.aspose.drawing.PointF-) | 确定指定点的坐标是否不相等。 | +| [add(PointF orig, Size size)](#add-com.aspose.drawing.PointF-com.aspose.drawing.Size-) | 按指定的 [SizeF](../../com.aspose.drawing/sizef) 平移给定的 [PointF](../../com.aspose.drawing/pointf)。 | +| [subtract(PointF pt, Size sz)](#subtract-com.aspose.drawing.PointF-com.aspose.drawing.Size-) | | +| [add(PointF orig, SizeF sizeF)](#add-com.aspose.drawing.PointF-com.aspose.drawing.SizeF-) | 按指定的 [SizeF](../../com.aspose.drawing/sizef) 平移给定的 [PointF](../../com.aspose.drawing/pointf)。 | +| [subtract(PointF pt, SizeF sz)](#subtract-com.aspose.drawing.PointF-com.aspose.drawing.SizeF-) | | +| [isEquals(PointF obj1, PointF obj2)](#isEquals-com.aspose.drawing.PointF-com.aspose.drawing.PointF-) | | +| [getEmpty()](#getEmpty--) | | +| [isEmpty()](#isEmpty--) | 获取一个值,指示此 [PointF](../../com.aspose.drawing/pointf) 是否为空。 | +| [getX()](#getX--) | 获取此 PointF 的 x 坐标。 | +| [setX(float value)](#setX-float-) | 设置此 PointF 的 x 坐标。 | +| [getY()](#getY--) | 获取此 PointF 的 y 坐标。 | +| [setY(float value)](#setY-float-) | 设置此 PointF 的 y 坐标。 | +| [equals(Object obj)](#equals-java.lang.Object-) | 指定此 [PointF](../../com.aspose.drawing/pointf) 是否包含与指定对象相同的坐标。 | +| [hashCode()](#hashCode--) | 返回此实例的哈希码。 | +| [toString()](#toString--) | | +| [equals(PointF other)](#equals-com.aspose.drawing.PointF-) | 测试另一个 [PointF](../../com.aspose.drawing/pointf) 结构是否具有与此 [PointF](../../com.aspose.drawing/pointf) 结构相同的位置。 | +| [CloneTo(PointF that)](#CloneTo-com.aspose.drawing.PointF-) | | +| [Clone()](#Clone--) | | +| [clone()](#clone--) | | +### PointF() {#PointF--} +``` +public PointF() +``` + + +### PointF(float x, float y) {#PointF-float-float-} +``` +public PointF(float x, float y) +``` + + +使用指定坐标初始化 PointF 结构的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| x | 浮点数 | 点的水平位置。 | +| y | 浮点数 | 点的垂直位置。 | + +### op_Addition(PointF pt, Size sz) {#op-Addition-com.aspose.drawing.PointF-com.aspose.drawing.Size-} +``` +public static PointF op_Addition(PointF pt, Size sz) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| pt | [PointF](../../com.aspose.drawing/pointf) | | +| sz | [Size](../../com.aspose.drawing/size) | | + +**Returns:** +[PointF](../../com.aspose.drawing/pointf) +### op_Subtraction(PointF pt, Size sz) {#op-Subtraction-com.aspose.drawing.PointF-com.aspose.drawing.Size-} +``` +public static PointF op_Subtraction(PointF pt, Size sz) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| pt | [PointF](../../com.aspose.drawing/pointf) | | +| sz | [Size](../../com.aspose.drawing/size) | | + +**Returns:** +[PointF](../../com.aspose.drawing/pointf) +### op_Addition(PointF pt, SizeF sz) {#op-Addition-com.aspose.drawing.PointF-com.aspose.drawing.SizeF-} +``` +public static PointF op_Addition(PointF pt, SizeF sz) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| pt | [PointF](../../com.aspose.drawing/pointf) | | +| sz | [SizeF](../../com.aspose.drawing/sizef) | | + +**Returns:** +[PointF](../../com.aspose.drawing/pointf) +### op_Subtraction(PointF pt, SizeF sz) {#op-Subtraction-com.aspose.drawing.PointF-com.aspose.drawing.SizeF-} +``` +public static PointF op_Subtraction(PointF pt, SizeF sz) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| pt | [PointF](../../com.aspose.drawing/pointf) | | +| sz | [SizeF](../../com.aspose.drawing/sizef) | | + +**Returns:** +[PointF](../../com.aspose.drawing/pointf) +### op_Equality(PointF left, PointF right) {#op-Equality-com.aspose.drawing.PointF-com.aspose.drawing.PointF-} +``` +public static boolean op_Equality(PointF left, PointF right) +``` + + +比较两个 [PointF](../../com.aspose.drawing/pointf) 结构。结果指定两个 [PointF](../../com.aspose.drawing/pointf) 结构的 `PointF.X` 和 `PointF.Y` 属性值是否相等。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| left | [PointF](../../com.aspose.drawing/pointf) | 要比较的第一个 [PointF](../../com.aspose.drawing/pointf)。 | +| right | [PointF](../../com.aspose.drawing/pointf) | 要比较的第二个 [PointF](../../com.aspose.drawing/pointf)。 | + +**Returns:** +boolean - 如果左侧和右侧 [PointF](../../com.aspose.drawing/pointf) 结构的 `PointF.X` 和 `PointF.Y` 值相等,则为 true;否则为 false。 +### op_Inequality(PointF left, PointF right) {#op-Inequality-com.aspose.drawing.PointF-com.aspose.drawing.PointF-} +``` +public static boolean op_Inequality(PointF left, PointF right) +``` + + +确定指定点的坐标是否不相等。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| left | [PointF](../../com.aspose.drawing/pointf) | 要比较的第一个 [PointF](../../com.aspose.drawing/pointf)。 | +| right | [PointF](../../com.aspose.drawing/pointf) | 要比较的第二个 [PointF](../../com.aspose.drawing/pointf)。 | + +**Returns:** +boolean - true 表示 `left` 和 `right` 的 `PointF.X` 与 `PointF.Y` 值不相等;否则为 false。 +### add(PointF orig, Size size) {#add-com.aspose.drawing.PointF-com.aspose.drawing.Size-} +``` +public static PointF add(PointF orig, Size size) +``` + + +按指定的 [SizeF](../../com.aspose.drawing/sizef) 平移给定的 [PointF](../../com.aspose.drawing/pointf)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| orig | [PointF](../../com.aspose.drawing/pointf) | 要平移的 [PointF](../../com.aspose.drawing/pointf)。 | +| size | [Size](../../com.aspose.drawing/size) | 指定要添加到 `orig` 坐标的数值的 [Size](../../com.aspose.drawing/size)。 | + +**Returns:** +[PointF](../../com.aspose.drawing/pointf) - The translated [PointF](../../com.aspose.drawing/pointf). +### subtract(PointF pt, Size sz) {#subtract-com.aspose.drawing.PointF-com.aspose.drawing.Size-} +``` +public static PointF subtract(PointF pt, Size sz) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| pt | [PointF](../../com.aspose.drawing/pointf) | | +| sz | [Size](../../com.aspose.drawing/size) | | + +**Returns:** +[PointF](../../com.aspose.drawing/pointf) +### add(PointF orig, SizeF sizeF) {#add-com.aspose.drawing.PointF-com.aspose.drawing.SizeF-} +``` +public static PointF add(PointF orig, SizeF sizeF) +``` + + +按指定的 [SizeF](../../com.aspose.drawing/sizef) 平移给定的 [PointF](../../com.aspose.drawing/pointf)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| orig | [PointF](../../com.aspose.drawing/pointf) | 要平移的 [PointF](../../com.aspose.drawing/pointf)。 | +| sizeF | [SizeF](../../com.aspose.drawing/sizef) | 指定要添加到 `orig` 坐标的数值的 [SizeF](../../com.aspose.drawing/sizef)。 | + +**Returns:** +[PointF](../../com.aspose.drawing/pointf) - The translated [PointF](../../com.aspose.drawing/pointf). +### subtract(PointF pt, SizeF sz) {#subtract-com.aspose.drawing.PointF-com.aspose.drawing.SizeF-} +``` +public static PointF subtract(PointF pt, SizeF sz) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| pt | [PointF](../../com.aspose.drawing/pointf) | | +| sz | [SizeF](../../com.aspose.drawing/sizef) | | + +**Returns:** +[PointF](../../com.aspose.drawing/pointf) +### isEquals(PointF obj1, PointF obj2) {#isEquals-com.aspose.drawing.PointF-com.aspose.drawing.PointF-} +``` +public static boolean isEquals(PointF obj1, PointF obj2) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| obj1 | [PointF](../../com.aspose.drawing/pointf) | | +| obj2 | [PointF](../../com.aspose.drawing/pointf) | | + +**Returns:** +布尔型 +### getEmpty() {#getEmpty--} +``` +public static PointF getEmpty() +``` + + + + +**Returns:** +[PointF](../../com.aspose.drawing/pointf) +### isEmpty() {#isEmpty--} +``` +public final boolean isEmpty() +``` + + +获取一个值,指示此 [PointF](../../com.aspose.drawing/pointf) 是否为空。 + +**Returns:** +boolean - 一个指示此 [PointF](../../com.aspose.drawing/pointf) 是否为空的值。 +### getX() {#getX--} +``` +public final float getX() +``` + + +获取此 PointF 的 x 坐标。 + +**Returns:** +float - 此 PointF 的 x 坐标。 +### setX(float value) {#setX-float-} +``` +public final void setX(float value) +``` + + +设置此 PointF 的 x 坐标。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | 浮点数 | 此 PointF 的 x 坐标。 | + +### getY() {#getY--} +``` +public final float getY() +``` + + +获取此 PointF 的 y 坐标。 + +**Returns:** +float - 此 PointF 的 y 坐标。 +### setY(float value) {#setY-float-} +``` +public final void setY(float value) +``` + + +设置此 PointF 的 y 坐标。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | 浮点数 | 此 PointF 的 y 坐标。 | + +### equals(Object obj) {#equals-java.lang.Object-} +``` +public boolean equals(Object obj) +``` + + +指定此 [PointF](../../com.aspose.drawing/pointf) 是否包含与指定对象相同的坐标。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| obj | java.lang.Object | 要测试的对象。 | + +**Returns:** +boolean - 如果 `obj` 是一个 [PointF](../../com.aspose.drawing/pointf) 并且坐标与此 [Point](../../com.aspose.drawing/point) 相同,则此方法返回 true。 +### hashCode() {#hashCode--} +``` +public int hashCode() +``` + + +返回此实例的哈希码。 + +**Returns:** +int - 此实例的哈希码,适用于哈希算法和哈希表等数据结构。 +### toString() {#toString--} +``` +public String toString() +``` + + + + +**Returns:** +java.lang.String +### equals(PointF other) {#equals-com.aspose.drawing.PointF-} +``` +public final boolean equals(PointF other) +``` + + +测试另一个 [PointF](../../com.aspose.drawing/pointf) 结构是否具有与此 [PointF](../../com.aspose.drawing/pointf) 结构相同的位置。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| other | [PointF](../../com.aspose.drawing/pointf) | 其他要测试的点 | + +**Returns:** +boolean - 如果其他 [PointF](../../com.aspose.drawing/pointf) 结构及其 X 和 Y 属性等于此 [PointF](../../com.aspose.drawing/pointf) 结构的对应属性,则此方法返回 `true`;否则返回 `false`。 +### CloneTo(PointF that) {#CloneTo-com.aspose.drawing.PointF-} +``` +public void CloneTo(PointF that) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| that | [PointF](../../com.aspose.drawing/pointf) | | + +### Clone() {#Clone--} +``` +public PointF Clone() +``` + + + + +**Returns:** +[PointF](../../com.aspose.drawing/pointf) +### clone() {#clone--} +``` +public Object clone() +``` + + + + +**Returns:** +java.lang.Object diff --git a/chinese/java/com.aspose.drawing/rectangle/_index.md b/chinese/java/com.aspose.drawing/rectangle/_index.md new file mode 100644 index 000000000..edbd4847a --- /dev/null +++ b/chinese/java/com.aspose.drawing/rectangle/_index.md @@ -0,0 +1,704 @@ +--- +title: 矩形 +second_title: Aspose.Drawing for Java API 参考 +description: 存储一组四个整数,表示矩形的位置和大小。 +type: docs +weight: 38 +url: /zh/java/com.aspose.drawing/rectangle/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.lang.Struct + +**All Implemented Interfaces:** +com.aspose.ms.System.IEquatable, java.lang.Cloneable +``` +public class Rectangle extends Struct implements System.IEquatable, Cloneable +``` + +存储一组四个整数,表示矩形的位置和大小。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [Rectangle()](#Rectangle--) | | +| [Rectangle(int x, int y, int width, int height)](#Rectangle-int-int-int-int-) | 使用指定的位置和大小初始化 Rectangle 结构的新实例。 | +| [Rectangle(Point location, Size size)](#Rectangle-com.aspose.drawing.Point-com.aspose.drawing.Size-) | 使用指定的位置和大小初始化 [Rectangle](../../com.aspose.drawing/rectangle) 结构的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [fromLTRB(int left, int top, int right, int bottom)](#fromLTRB-int-int-int-int-) | 使用指定的边缘位置创建一个 [Rectangle](../../com.aspose.drawing/rectangle) 结构。 | +| [intersect(Rectangle a, Rectangle b)](#intersect-com.aspose.drawing.Rectangle-com.aspose.drawing.Rectangle-) | 返回第三个 [Rectangle](../../com.aspose.drawing/rectangle) 结构,表示两个其他 [Rectangle](../../com.aspose.drawing/rectangle) 结构的交集。 | +| [op_Equality(Rectangle left, Rectangle right)](#op-Equality-com.aspose.drawing.Rectangle-com.aspose.drawing.Rectangle-) | 测试两个 [Rectangle](../../com.aspose.drawing/rectangle) 结构的位置和大小是否相等。 | +| [op_Inequality(Rectangle left, Rectangle right)](#op-Inequality-com.aspose.drawing.Rectangle-com.aspose.drawing.Rectangle-) | 测试两个 [Rectangle](../../com.aspose.drawing/rectangle) 结构的位置或大小是否不同。 | +| [ceiling(RectangleF value)](#ceiling-com.aspose.drawing.RectangleF-) | 通过将指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 值向上取整到下一个更高的整数,将其转换为 [Rectangle](../../com.aspose.drawing/rectangle) 结构。 | +| [truncate(RectangleF value)](#truncate-com.aspose.drawing.RectangleF-) | 通过截断指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 值,将其转换为 [Rectangle](../../com.aspose.drawing/rectangle)。 | +| [round(RectangleF value)](#round-com.aspose.drawing.RectangleF-) | 通过将指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 值四舍五入到最近的整数,将其转换为 [Rectangle](../../com.aspose.drawing/rectangle)。 | +| [union(Rectangle a, Rectangle b)](#union-com.aspose.drawing.Rectangle-com.aspose.drawing.Rectangle-) | 获取一个包含两个 [Rectangle](../../com.aspose.drawing/rectangle) 结构并集的 [Rectangle](../../com.aspose.drawing/rectangle) 结构。 | +| [inflate(Rectangle rect, int x, int y)](#inflate-com.aspose.drawing.Rectangle-int-int-) | | +| [isEquals(Rectangle obj1, Rectangle obj2)](#isEquals-com.aspose.drawing.Rectangle-com.aspose.drawing.Rectangle-) | | +| [fromPoints(Point point1, Point point2)](#fromPoints-com.aspose.drawing.Point-com.aspose.drawing.Point-) | 从两个点创建一个新矩形。 | +| [getEmpty()](#getEmpty--) | 获取一个新的 `Rectangle` 结构实例,其 `Rectangle.X`、`Rectangle.Y`、`Rectangle.Width` 和 `Rectangle.Height` 值均设为零。 | +| [getX()](#getX--) | 获取此 Rectangle 结构左上角的 x 坐标。 | +| [setX(int value)](#setX-int-) | 设置此 Rectangle 结构左上角的 x 坐标。 | +| [getY()](#getY--) | 获取此 Rectangle 结构左上角的 y 坐标。 | +| [setY(int value)](#setY-int-) | 设置此 Rectangle 结构左上角的 y 坐标。 | +| [getLocation()](#getLocation--) | 获取此 [Rectangle](../../com.aspose.drawing/rectangle) 结构左上角的坐标。 | +| [setLocation(Point value)](#setLocation-com.aspose.drawing.Point-) | 设置此 [Rectangle](../../com.aspose.drawing/rectangle) 结构左上角的坐标。 | +| [getWidth()](#getWidth--) | 获取此 Rectangle 结构的宽度。 | +| [setWidth(int value)](#setWidth-int-) | 设置此 Rectangle 结构的宽度。 | +| [getHeight()](#getHeight--) | 获取此 Rectangle 结构的高度。 | +| [setHeight(int value)](#setHeight-int-) | 设置此 Rectangle 结构的高度。 | +| [getSize()](#getSize--) | 获取此 [Rectangle](../../com.aspose.drawing/rectangle) 的大小。 | +| [setSize(Size value)](#setSize-com.aspose.drawing.Size-) | 设置此 [Rectangle](../../com.aspose.drawing/rectangle) 的大小。 | +| [getLeft()](#getLeft--) | 获取此 Rectangle 结构左边缘的 x 坐标。 | +| [getTop()](#getTop--) | 获取此 Rectangle 结构顶部边缘的 y 坐标。 | +| [getRight()](#getRight--) | 获取此 Rectangle 结构的 X 和 Width 属性值之和的 x 坐标。 | +| [getBottom()](#getBottom--) | 获取此 Rectangle 结构的 Y 和 Height 属性值之和的 y 坐标。 | +| [isEmpty()](#isEmpty--) | 获取一个值,指示此 [Rectangle](../../com.aspose.drawing/rectangle) 的所有数值属性是否为零。 | +| [equals(Object obj)](#equals-java.lang.Object-) | 测试 obj 是否为具有与此 [Rectangle](../../com.aspose.drawing/rectangle) 结构相同位置和大小的 [Rectangle](../../com.aspose.drawing/rectangle) 结构。 | +| [hashCode()](#hashCode--) | 返回此 [Rectangle](../../com.aspose.drawing/rectangle) 结构的哈希码。 | +| [toString()](#toString--) | | +| [intersect(Rectangle rect)](#intersect-com.aspose.drawing.Rectangle-) | 用此 [Rectangle](../../com.aspose.drawing/rectangle) 与指定的 [Rectangle](../../com.aspose.drawing/rectangle) 的交集替换此 [Rectangle](../../com.aspose.drawing/rectangle)。 | +| [inflate(int width, int height)](#inflate-int-int-) | 按指定的量扩大此 [Rectangle](../../com.aspose.drawing/rectangle)。 | +| [inflate(Size size)](#inflate-com.aspose.drawing.Size-) | 按指定的量扩大此 [Rectangle](../../com.aspose.drawing/rectangle)。 | +| [contains(int x, int y)](#contains-int-int-) | 确定指定的点是否包含在此 [Rectangle](../../com.aspose.drawing/rectangle) 结构中。 | +| [contains(Point pt)](#contains-com.aspose.drawing.Point-) | 确定指定的点是否包含在此 [Rectangle](../../com.aspose.drawing/rectangle) 结构中。 | +| [contains(Rectangle rect)](#contains-com.aspose.drawing.Rectangle-) | | +| [intersectsWith(Rectangle rect)](#intersectsWith-com.aspose.drawing.Rectangle-) | 确定此矩形是否与 `rect` 相交。 | +| [offset(int x, int y)](#offset-int-int-) | 按指定量调整此矩形的位置。 | +| [offset(Point pos)](#offset-com.aspose.drawing.Point-) | 按指定量调整此矩形的位置。 | +| [equals(Rectangle other)](#equals-com.aspose.drawing.Rectangle-) | 测试另一个 [Rectangle](../../com.aspose.drawing/rectangle) 结构是否具有与此 [Rectangle](../../com.aspose.drawing/rectangle) 结构相同的位置和大小。 | +| [CloneTo(Rectangle that)](#CloneTo-com.aspose.drawing.Rectangle-) | | +| [Clone()](#Clone--) | | +| [clone()](#clone--) | | +| [normalize()](#normalize--) | 通过使宽度和高度为正、左侧小于右侧、顶部小于底部来规范化矩形。 | +### Rectangle() {#Rectangle--} +``` +public Rectangle() +``` + + +### Rectangle(int x, int y, int width, int height) {#Rectangle-int-int-int-int-} +``` +public Rectangle(int x, int y, int width, int height) +``` + + +使用指定的位置和大小初始化 Rectangle 结构的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| x | int | 矩形左上角的 x 坐标。 | +| y | int | 矩形左上角的 y 坐标。 | +| 宽度 | int | 矩形的宽度。 | +| 高度 | int | 矩形的高度。 | + +### Rectangle(Point location, Size size) {#Rectangle-com.aspose.drawing.Point-com.aspose.drawing.Size-} +``` +public Rectangle(Point location, Size size) +``` + + +使用指定的位置和大小初始化 [Rectangle](../../com.aspose.drawing/rectangle) 结构的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| location | [Point](../../com.aspose.drawing/point) | 表示矩形区域左上角的 [Point](../../com.aspose.drawing/point)。 | +| size | [Size](../../com.aspose.drawing/size) | 表示矩形区域宽度和高度的 `Size`([.getSize](../../null/\#getSize)/[.setSize(Size)](../../null/\#setSize-Size-))。 | + +### fromLTRB(int left, int top, int right, int bottom) {#fromLTRB-int-int-int-int-} +``` +public static Rectangle fromLTRB(int left, int top, int right, int bottom) +``` + + +使用指定的边缘位置创建一个 [Rectangle](../../com.aspose.drawing/rectangle) 结构。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| left | int | 此 [Rectangle](../../com.aspose.drawing/rectangle) 结构左上角的 x 坐标。 | +| top | int | 此 [Rectangle](../../com.aspose.drawing/rectangle) 结构左上角的 y 坐标。 | +| right | int | 此 [Rectangle](../../com.aspose.drawing/rectangle) 结构右下角的 x 坐标。 | +| bottom | int | 此 [Rectangle](../../com.aspose.drawing/rectangle) 结构右下角的 y 坐标。 | + +**Returns:** +[Rectangle](../../com.aspose.drawing/rectangle) - The new [Rectangle](../../com.aspose.drawing/rectangle) that this method creates. +### intersect(Rectangle a, Rectangle b) {#intersect-com.aspose.drawing.Rectangle-com.aspose.drawing.Rectangle-} +``` +public static Rectangle intersect(Rectangle a, Rectangle b) +``` + + +返回第三个 [Rectangle](../../com.aspose.drawing/rectangle) 结构,表示两个其他 [Rectangle](../../com.aspose.drawing/rectangle) 结构的交集。如果没有交集,则返回一个空的 [Rectangle](../../com.aspose.drawing/rectangle)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| a | [Rectangle](../../com.aspose.drawing/rectangle) | 第一个要相交的矩形。 | +| b | [Rectangle](../../com.aspose.drawing/rectangle) | 第二个要相交的矩形。 | + +**Returns:** +[Rectangle](../../com.aspose.drawing/rectangle) - A [Rectangle](../../com.aspose.drawing/rectangle) that represents the intersection of `a` and `b`. +### op_Equality(Rectangle left, Rectangle right) {#op-Equality-com.aspose.drawing.Rectangle-com.aspose.drawing.Rectangle-} +``` +public static boolean op_Equality(Rectangle left, Rectangle right) +``` + + +测试两个 [Rectangle](../../com.aspose.drawing/rectangle) 结构的位置和大小是否相等。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| left | [Rectangle](../../com.aspose.drawing/rectangle) | 等号运算符左侧的 [Rectangle](../../com.aspose.drawing/rectangle) 结构。 | +| right | [Rectangle](../../com.aspose.drawing/rectangle) | 等号运算符右侧的 [Rectangle](../../com.aspose.drawing/rectangle) 结构。 | + +**Returns:** +boolean - 如果两个 [Rectangle](../../com.aspose.drawing/rectangle) 结构的 X、Y、Width 和 Height 属性相等,则此运算符返回 `true`。 +### op_Inequality(Rectangle left, Rectangle right) {#op-Inequality-com.aspose.drawing.Rectangle-com.aspose.drawing.Rectangle-} +``` +public static boolean op_Inequality(Rectangle left, Rectangle right) +``` + + +测试两个 [Rectangle](../../com.aspose.drawing/rectangle) 结构的位置或大小是否不同。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| left | [Rectangle](../../com.aspose.drawing/rectangle) | 不等号运算符左侧的 [Rectangle](../../com.aspose.drawing/rectangle) 结构。 | +| right | [Rectangle](../../com.aspose.drawing/rectangle) | 不等号运算符右侧的 [Rectangle](../../com.aspose.drawing/rectangle) 结构。 | + +**Returns:** +boolean - 如果两个 [Rectangle](../../com.aspose.drawing/rectangle) 结构的 X、Y、Width 或 Height 属性中有任意不相等,则此运算符返回 `true`;否则返回 `false`。 +### ceiling(RectangleF value) {#ceiling-com.aspose.drawing.RectangleF-} +``` +public static Rectangle ceiling(RectangleF value) +``` + + +通过将指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 值向上取整到下一个更高的整数,将其转换为 [Rectangle](../../com.aspose.drawing/rectangle) 结构。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [RectangleF](../../com.aspose.drawing/rectanglef) | 待转换的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构。 | + +**Returns:** +[Rectangle](../../com.aspose.drawing/rectangle) - Returns a [Rectangle](../../com.aspose.drawing/rectangle). +### truncate(RectangleF value) {#truncate-com.aspose.drawing.RectangleF-} +``` +public static Rectangle truncate(RectangleF value) +``` + + +通过截断指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 值,将其转换为 [Rectangle](../../com.aspose.drawing/rectangle)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [RectangleF](../../com.aspose.drawing/rectanglef) | 待转换的 [RectangleF](../../com.aspose.drawing/rectanglef)。 | + +**Returns:** +[Rectangle](../../com.aspose.drawing/rectangle) - The truncated value of the [Rectangle](../../com.aspose.drawing/rectangle). +### round(RectangleF value) {#round-com.aspose.drawing.RectangleF-} +``` +public static Rectangle round(RectangleF value) +``` + + +通过将指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 值四舍五入到最近的整数,将其转换为 [Rectangle](../../com.aspose.drawing/rectangle)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [RectangleF](../../com.aspose.drawing/rectanglef) | 待转换的 [RectangleF](../../com.aspose.drawing/rectanglef)。 | + +**Returns:** +[Rectangle](../../com.aspose.drawing/rectangle) - A [Rectangle](../../com.aspose.drawing/rectangle). +### union(Rectangle a, Rectangle b) {#union-com.aspose.drawing.Rectangle-com.aspose.drawing.Rectangle-} +``` +public static Rectangle union(Rectangle a, Rectangle b) +``` + + +获取一个包含两个 [Rectangle](../../com.aspose.drawing/rectangle) 结构并集的 [Rectangle](../../com.aspose.drawing/rectangle) 结构。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| a | [Rectangle](../../com.aspose.drawing/rectangle) | 第一个要合并的矩形。 | +| b | [Rectangle](../../com.aspose.drawing/rectangle) | 第二个要合并的矩形。 | + +**Returns:** +[Rectangle](../../com.aspose.drawing/rectangle) - A [Rectangle](../../com.aspose.drawing/rectangle) structure that bounds the union of the two [Rectangle](../../com.aspose.drawing/rectangle) structures. +### inflate(Rectangle rect, int x, int y) {#inflate-com.aspose.drawing.Rectangle-int-int-} +``` +public static Rectangle inflate(Rectangle rect, int x, int y) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [Rectangle](../../com.aspose.drawing/rectangle) | | +| x | int | | +| y | int | | + +**Returns:** +[Rectangle](../../com.aspose.drawing/rectangle) +### isEquals(Rectangle obj1, Rectangle obj2) {#isEquals-com.aspose.drawing.Rectangle-com.aspose.drawing.Rectangle-} +``` +public static boolean isEquals(Rectangle obj1, Rectangle obj2) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| obj1 | [Rectangle](../../com.aspose.drawing/rectangle) | | +| obj2 | [Rectangle](../../com.aspose.drawing/rectangle) | | + +**Returns:** +布尔型 +### fromPoints(Point point1, Point point2) {#fromPoints-com.aspose.drawing.Point-com.aspose.drawing.Point-} +``` +public static Rectangle fromPoints(Point point1, Point point2) +``` + + +从两个点创建一个新矩形。创建的矩形将被标准化,使 (left,top) 小于 (right,bottom)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| point1 | [Point](../../com.aspose.drawing/point) | 第一个点。 | +| point2 | [Point](../../com.aspose.drawing/point) | 第二个点。 | + +**Returns:** +[Rectangle](../../com.aspose.drawing/rectangle) - A newly created rectangle. +### getEmpty() {#getEmpty--} +``` +public static Rectangle getEmpty() +``` + + +获取一个新的 `Rectangle` 结构实例,其 `Rectangle.X`、`Rectangle.Y`、`Rectangle.Width` 和 `Rectangle.Height` 值均设为零。 + +**Returns:** +[Rectangle](../../com.aspose.drawing/rectangle) +### getX() {#getX--} +``` +public final int getX() +``` + + +获取此 Rectangle 结构左上角的 x 坐标。 + +**Returns:** +int - 此 Rectangle 结构左上角的 x 坐标。 +### setX(int value) {#setX-int-} +``` +public final void setX(int value) +``` + + +设置此 Rectangle 结构左上角的 x 坐标。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | 此 Rectangle 结构左上角的 x 坐标。 | + +### getY() {#getY--} +``` +public final int getY() +``` + + +获取此 Rectangle 结构左上角的 y 坐标。 + +**Returns:** +int - 此 Rectangle 结构左上角的 y 坐标。 +### setY(int value) {#setY-int-} +``` +public final void setY(int value) +``` + + +设置此 Rectangle 结构左上角的 y 坐标。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | 此 Rectangle 结构左上角的 y 坐标。 | + +### getLocation() {#getLocation--} +``` +public final Point getLocation() +``` + + +获取此 [Rectangle](../../com.aspose.drawing/rectangle) 结构左上角的坐标。 + +**Returns:** +[Point](../../com.aspose.drawing/point) - the coordinates of the upper-left corner of this [Rectangle](../../com.aspose.drawing/rectangle) structure. +### setLocation(Point value) {#setLocation-com.aspose.drawing.Point-} +``` +public final void setLocation(Point value) +``` + + +设置此 [Rectangle](../../com.aspose.drawing/rectangle) 结构左上角的坐标。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [Point](../../com.aspose.drawing/point) | 此 [Rectangle](../../com.aspose.drawing/rectangle) 结构左上角的坐标。 | + +### getWidth() {#getWidth--} +``` +public final int getWidth() +``` + + +获取此 Rectangle 结构的宽度。 + +**Returns:** +int - 此 Rectangle 结构的宽度。 +### setWidth(int value) {#setWidth-int-} +``` +public final void setWidth(int value) +``` + + +设置此 Rectangle 结构的宽度。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | 此 Rectangle 结构的宽度。 | + +### getHeight() {#getHeight--} +``` +public final int getHeight() +``` + + +获取此 Rectangle 结构的高度。 + +**Returns:** +int - 此 Rectangle 结构的高度。 +### setHeight(int value) {#setHeight-int-} +``` +public final void setHeight(int value) +``` + + +设置此 Rectangle 结构的高度。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | 此 Rectangle 结构的高度。 | + +### getSize() {#getSize--} +``` +public final Size getSize() +``` + + +获取此 [Rectangle](../../com.aspose.drawing/rectangle) 的大小。 + +**Returns:** +[Size](../../com.aspose.drawing/size) - the size of this [Rectangle](../../com.aspose.drawing/rectangle). +### setSize(Size value) {#setSize-com.aspose.drawing.Size-} +``` +public final void setSize(Size value) +``` + + +设置此 [Rectangle](../../com.aspose.drawing/rectangle) 的大小。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [Size](../../com.aspose.drawing/size) | 此 [Rectangle](../../com.aspose.drawing/rectangle) 的大小。 | + +### getLeft() {#getLeft--} +``` +public final int getLeft() +``` + + +获取此 Rectangle 结构左边缘的 x 坐标。 + +**Returns:** +int - 此 Rectangle 结构左边缘的 x 坐标。 +### getTop() {#getTop--} +``` +public final int getTop() +``` + + +获取此 Rectangle 结构顶部边缘的 y 坐标。 + +**Returns:** +int - 此 Rectangle 结构上边缘的 y 坐标。 +### getRight() {#getRight--} +``` +public final int getRight() +``` + + +获取此 Rectangle 结构的 X 和 Width 属性值之和的 x 坐标。 + +**Returns:** +int - 此 Rectangle 结构的 X 与 Width 属性值之和的 x 坐标。 +### getBottom() {#getBottom--} +``` +public final int getBottom() +``` + + +获取此 Rectangle 结构的 Y 和 Height 属性值之和的 y 坐标。 + +**Returns:** +int - 此 Rectangle 结构的 Y 与 Height 属性值之和的 y 坐标。 +### isEmpty() {#isEmpty--} +``` +public final boolean isEmpty() +``` + + +获取一个值,指示此 [Rectangle](../../com.aspose.drawing/rectangle) 的所有数值属性是否为零。 + +**Returns:** +boolean - 如果此 [Rectangle](../../com.aspose.drawing/rectangle) 的 `Rectangle.Width`、`Rectangle.Height`、`Rectangle.X` 和 `Rectangle.Y` 属性全部为零,则此属性返回 `true`;否则返回 `false`。 +### equals(Object obj) {#equals-java.lang.Object-} +``` +public boolean equals(Object obj) +``` + + +测试 obj 是否为具有与此 [Rectangle](../../com.aspose.drawing/rectangle) 结构相同位置和大小的 [Rectangle](../../com.aspose.drawing/rectangle) 结构。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| obj | java.lang.Object | 要测试的对象。 | + +**Returns:** +boolean - 如果 obj 是一个 [Rectangle](../../com.aspose.drawing/rectangle) 结构且其 X、Y、Width 和 Height 属性等于此 [Rectangle](../../com.aspose.drawing/rectangle) 结构的相应属性,则此方法返回 `true`;否则返回 `false`。 +### hashCode() {#hashCode--} +``` +public int hashCode() +``` + + +返回此 [Rectangle](../../com.aspose.drawing/rectangle) 结构的哈希码。有关哈希码使用的说明,请参阅 GetHashCode。 + +**Returns:** +int - 表示此矩形哈希码的整数。 +### toString() {#toString--} +``` +public String toString() +``` + + + + +**Returns:** +java.lang.String +### intersect(Rectangle rect) {#intersect-com.aspose.drawing.Rectangle-} +``` +public final void intersect(Rectangle rect) +``` + + +用此 [Rectangle](../../com.aspose.drawing/rectangle) 与指定的 [Rectangle](../../com.aspose.drawing/rectangle) 的交集替换此 [Rectangle](../../com.aspose.drawing/rectangle)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [Rectangle](../../com.aspose.drawing/rectangle) | 用于相交的 [Rectangle](../../com.aspose.drawing/rectangle)。 | + +### inflate(int width, int height) {#inflate-int-int-} +``` +public final void inflate(int width, int height) +``` + + +按指定的量扩大此 [Rectangle](../../com.aspose.drawing/rectangle)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| width | int | 水平膨胀此 [Rectangle](../../com.aspose.drawing/rectangle) 的量。 | +| height | int | 垂直膨胀此 [Rectangle](../../com.aspose.drawing/rectangle) 的量。 | + +### inflate(Size size) {#inflate-com.aspose.drawing.Size-} +``` +public final void inflate(Size size) +``` + + +按指定的量扩大此 [Rectangle](../../com.aspose.drawing/rectangle)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| size | [Size](../../com.aspose.drawing/size) | 膨胀此 [Rectangle](../../com.aspose.drawing/rectangle) 的尺寸。 | + +### contains(int x, int y) {#contains-int-int-} +``` +public final boolean contains(int x, int y) +``` + + +确定指定的点是否包含在此 [Rectangle](../../com.aspose.drawing/rectangle) 结构中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| x | int | 要测试的点的 x 坐标。 | +| y | int | 要测试的点的 y 坐标。 | + +**Returns:** +boolean - 如果由 `x` 和 `y` 定义的点位于此 [Rectangle](../../com.aspose.drawing/rectangle) 结构内部,则此方法返回 `true`;否则返回 `false`。 +### contains(Point pt) {#contains-com.aspose.drawing.Point-} +``` +public final boolean contains(Point pt) +``` + + +确定指定的点是否包含在此 [Rectangle](../../com.aspose.drawing/rectangle) 结构中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| pt | [Point](../../com.aspose.drawing/point) | 要测试的 [Point](../../com.aspose.drawing/point)。 | + +**Returns:** +boolean - 如果由 `pt` 表示的点位于此 [Rectangle](../../com.aspose.drawing/rectangle) 结构内部,则此方法返回 `true`;否则返回 `false`。 +### contains(Rectangle rect) {#contains-com.aspose.drawing.Rectangle-} +``` +public final boolean contains(Rectangle rect) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [Rectangle](../../com.aspose.drawing/rectangle) | | + +**Returns:** +布尔型 +### intersectsWith(Rectangle rect) {#intersectsWith-com.aspose.drawing.Rectangle-} +``` +public final boolean intersectsWith(Rectangle rect) +``` + + +确定此矩形是否与 `rect` 相交。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [Rectangle](../../com.aspose.drawing/rectangle) | 要测试的矩形。 | + +**Returns:** +boolean - 如果存在任何相交,则此方法返回 true;否则返回 false。 +### offset(int x, int y) {#offset-int-int-} +``` +public final void offset(int x, int y) +``` + + +按指定量调整此矩形的位置。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| x | int | 水平偏移量。 | +| y | int | 垂直偏移量。 | + +### offset(Point pos) {#offset-com.aspose.drawing.Point-} +``` +public final void offset(Point pos) +``` + + +按指定量调整此矩形的位置。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| pos | [Point](../../com.aspose.drawing/point) | 偏移量。 | + +### equals(Rectangle other) {#equals-com.aspose.drawing.Rectangle-} +``` +public final boolean equals(Rectangle other) +``` + + +测试另一个 [Rectangle](../../com.aspose.drawing/rectangle) 结构是否具有与此 [Rectangle](../../com.aspose.drawing/rectangle) 结构相同的位置和大小。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| other | [Rectangle](../../com.aspose.drawing/rectangle) | 要测试的其他矩形 | + +**Returns:** +boolean - 如果另一个 [Rectangle](../../com.aspose.drawing/rectangle) 结构及其 X、Y、Width 和 Height 属性等于此 [Rectangle](../../com.aspose.drawing/rectangle) 结构的相应属性,则此方法返回 `true`;否则返回 `false`。 +### CloneTo(Rectangle that) {#CloneTo-com.aspose.drawing.Rectangle-} +``` +public void CloneTo(Rectangle that) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| that | [Rectangle](../../com.aspose.drawing/rectangle) | | + +### Clone() {#Clone--} +``` +public Rectangle Clone() +``` + + + + +**Returns:** +[Rectangle](../../com.aspose.drawing/rectangle) +### clone() {#clone--} +``` +public Object clone() +``` + + + + +**Returns:** +java.lang.Object +### normalize() {#normalize--} +``` +public void normalize() +``` + + +通过使宽度和高度为正、左侧小于右侧、顶部小于底部来规范化矩形。 + diff --git a/chinese/java/com.aspose.drawing/rectanglef/_index.md b/chinese/java/com.aspose.drawing/rectanglef/_index.md new file mode 100644 index 000000000..ae7d13791 --- /dev/null +++ b/chinese/java/com.aspose.drawing/rectanglef/_index.md @@ -0,0 +1,663 @@ +--- +title: RectangleF +second_title: Aspose.Drawing for Java API 参考 +description: 存储一组四个浮点数,表示矩形的位置和大小。 +type: docs +weight: 39 +url: /zh/java/com.aspose.drawing/rectanglef/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.lang.Struct + +**All Implemented Interfaces:** +com.aspose.ms.System.IEquatable, java.lang.Cloneable +``` +public class RectangleF extends Struct implements System.IEquatable, Cloneable +``` + +存储一组四个浮点数,表示矩形的位置和大小。对于更高级的区域功能,请使用 Region 对象。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [RectangleF()](#RectangleF--) | | +| [RectangleF(PointF location, SizeF size)](#RectangleF-com.aspose.drawing.PointF-com.aspose.drawing.SizeF-) | 使用指定的位置和大小初始化 RectangleF 结构的新实例。 | +| [RectangleF(float x, float y, float width, float height)](#RectangleF-float-float-float-float-) | 使用指定的位置和大小初始化 RectangleF 结构的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [fromPoints(PointF point1, PointF point2)](#fromPoints-com.aspose.drawing.PointF-com.aspose.drawing.PointF-) | 从两个点创建一个新矩形。 | +| [to_RectangleF(Rectangle r)](#to-RectangleF-com.aspose.drawing.Rectangle-) | 将指定的 Rectangle 结构转换为 RectangleF 结构。 | +| [op_Equality(RectangleF left, RectangleF right)](#op-Equality-com.aspose.drawing.RectangleF-com.aspose.drawing.RectangleF-) | 测试两个 [RectangleF](../../com.aspose.drawing/rectanglef) 结构的位置和大小是否相等。 | +| [op_Inequality(RectangleF left, RectangleF right)](#op-Inequality-com.aspose.drawing.RectangleF-com.aspose.drawing.RectangleF-) | 测试两个 [RectangleF](../../com.aspose.drawing/rectanglef) 结构的位置或大小是否不同。 | +| [fromLTRB(float left, float top, float right, float bottom)](#fromLTRB-float-float-float-float-) | 使用指定的位置创建一个左上角和右下角位于指定位置的 RectangleF 结构。 | +| [inflate(RectangleF rect, float x, float y)](#inflate-com.aspose.drawing.RectangleF-float-float-) | 创建并返回指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构的膨胀副本。 | +| [intersect(RectangleF a, RectangleF b)](#intersect-com.aspose.drawing.RectangleF-com.aspose.drawing.RectangleF-) | 返回一个表示两个矩形交集的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构。 | +| [union(RectangleF a, RectangleF b)](#union-com.aspose.drawing.RectangleF-com.aspose.drawing.RectangleF-) | 创建能够容纳两个矩形并形成并集的最小可能的第三个矩形。 | +| [isEquals(RectangleF obj1, RectangleF obj2)](#isEquals-com.aspose.drawing.RectangleF-com.aspose.drawing.RectangleF-) | | +| [getEmpty()](#getEmpty--) | | +| [isEmpty()](#isEmpty--) | 获取一个值,指示此 [RectangleF](../../com.aspose.drawing/rectanglef) 的 `RectangleF.Width` 或 `RectangleF.Height` 属性是否为零。 | +| [getX()](#getX--) | 获取此 RectangleF 结构左上角的 x 坐标。 | +| [setX(float value)](#setX-float-) | 设置此 RectangleF 结构左上角的 x 坐标。 | +| [getY()](#getY--) | 获取此 RectangleF 结构左上角的 x 坐标。 | +| [setY(float value)](#setY-float-) | 设置此 RectangleF 结构左上角的 x 坐标。 | +| [getLocation()](#getLocation--) | 获取此 [RectangleF](../../com.aspose.drawing/rectanglef) 结构左上角的坐标。 | +| [setLocation(PointF value)](#setLocation-com.aspose.drawing.PointF-) | 设置此 [RectangleF](../../com.aspose.drawing/rectanglef) 结构的左上角坐标。 | +| [getWidth()](#getWidth--) | 获取此 RectangleF 结构的宽度。 | +| [setWidth(float value)](#setWidth-float-) | 设置此 RectangleF 结构的宽度。 | +| [getHeight()](#getHeight--) | 获取此 RectangleF 结构的高度。 | +| [setHeight(float value)](#setHeight-float-) | 设置此 RectangleF 结构的高度。 | +| [getSize()](#getSize--) | 获取此 [RectangleF](../../com.aspose.drawing/rectanglef) 的大小。 | +| [setSize(SizeF value)](#setSize-com.aspose.drawing.SizeF-) | 设置此 [RectangleF](../../com.aspose.drawing/rectanglef) 的大小。 | +| [getLeft()](#getLeft--) | 获取此 RectangleF 结构左边缘的 x 坐标。 | +| [getTop()](#getTop--) | 获取此 RectangleF 结构上边缘的 y 坐标。 | +| [getRight()](#getRight--) | 获取此 RectangleF 结构的 X 与 Width 相加后的 x 坐标。 | +| [getBottom()](#getBottom--) | 获取此 RectangleF 结构的 Y 与 Height 相加后的 y 坐标。 | +| [toString()](#toString--) | | +| [inflate(float x, float y)](#inflate-float-float-) | 按指定量膨胀此 [RectangleF](../../com.aspose.drawing/rectanglef) 结构。 | +| [inflate(SizeF size)](#inflate-com.aspose.drawing.SizeF-) | 按指定量膨胀此 [RectangleF](../../com.aspose.drawing/rectanglef)。 | +| [intersect(RectangleF rect)](#intersect-com.aspose.drawing.RectangleF-) | 用自身与指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构的交集替换此 [RectangleF](../../com.aspose.drawing/rectanglef) 结构。 | +| [intersectsWith(RectangleF rect)](#intersectsWith-com.aspose.drawing.RectangleF-) | 确定此矩形是否与 `rect` 相交。 | +| [offset(PointF pos)](#offset-com.aspose.drawing.PointF-) | 按指定量调整此矩形的位置。 | +| [offset(float x, float y)](#offset-float-float-) | 按指定量调整此矩形的位置。 | +| [contains(float x, float y)](#contains-float-float-) | 确定指定的点是否包含在此 [RectangleF](../../com.aspose.drawing/rectanglef) 结构中。 | +| [contains(PointF pt)](#contains-com.aspose.drawing.PointF-) | 确定指定的点是否包含在此 [RectangleF](../../com.aspose.drawing/rectanglef) 结构中。 | +| [contains(RectangleF rect)](#contains-com.aspose.drawing.RectangleF-) | 确定由 `rect` 表示的矩形区域是否完全包含在此 [RectangleF](../../com.aspose.drawing/rectanglef) 结构中。 | +| [equals(Object obj)](#equals-java.lang.Object-) | 确定指定的对象是否等于此实例。 | +| [hashCode()](#hashCode--) | 返回此实例的哈希码。 | +| [equals(RectangleF other)](#equals-com.aspose.drawing.RectangleF-) | 测试另一个 [RectangleF](../../com.aspose.drawing/rectanglef) 结构是否具有与此 [RectangleF](../../com.aspose.drawing/rectanglef) 结构相同的位置和大小。 | +| [CloneTo(RectangleF that)](#CloneTo-com.aspose.drawing.RectangleF-) | | +| [Clone()](#Clone--) | | +| [clone()](#clone--) | | +### RectangleF() {#RectangleF--} +``` +public RectangleF() +``` + + +### RectangleF(PointF location, SizeF size) {#RectangleF-com.aspose.drawing.PointF-com.aspose.drawing.SizeF-} +``` +public RectangleF(PointF location, SizeF size) +``` + + +使用指定的位置和大小初始化 RectangleF 结构的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| location | [PointF](../../com.aspose.drawing/pointf) | 表示矩形区域左上角的 PointF。 | +| size | [SizeF](../../com.aspose.drawing/sizef) | 表示矩形区域宽度和高度的 SizeF。 | + +### RectangleF(float x, float y, float width, float height) {#RectangleF-float-float-float-float-} +``` +public RectangleF(float x, float y, float width, float height) +``` + + +使用指定的位置和大小初始化 RectangleF 结构的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| x | 浮点数 | 矩形左上角的 x 坐标。 | +| y | 浮点数 | 矩形左上角的 y 坐标。 | +| 宽度 | 浮点数 | 矩形的宽度。 | +| 高度 | 浮点数 | 矩形的高度。 | + +### fromPoints(PointF point1, PointF point2) {#fromPoints-com.aspose.drawing.PointF-com.aspose.drawing.PointF-} +``` +public static RectangleF fromPoints(PointF point1, PointF point2) +``` + + +从两个点创建一个新矩形。创建的矩形将被标准化,使 (left,top) 小于 (right,bottom)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| point1 | [PointF](../../com.aspose.drawing/pointf) | 第一个点。 | +| point2 | [PointF](../../com.aspose.drawing/pointf) | 第二个点。 | + +**Returns:** +[RectangleF](../../com.aspose.drawing/rectanglef) - A newly created rectangle. +### to_RectangleF(Rectangle r) {#to-RectangleF-com.aspose.drawing.Rectangle-} +``` +public static RectangleF to_RectangleF(Rectangle r) +``` + + +将指定的 Rectangle 结构转换为 RectangleF 结构。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| r | [Rectangle](../../com.aspose.drawing/rectangle) | 要转换的 Rectangle 结构。 | + +**Returns:** +[RectangleF](../../com.aspose.drawing/rectanglef) - The RectangleF structure that is converted from the specified Rectangle structure. +### op_Equality(RectangleF left, RectangleF right) {#op-Equality-com.aspose.drawing.RectangleF-com.aspose.drawing.RectangleF-} +``` +public static boolean op_Equality(RectangleF left, RectangleF right) +``` + + +测试两个 [RectangleF](../../com.aspose.drawing/rectanglef) 结构的位置和大小是否相等。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| left | [RectangleF](../../com.aspose.drawing/rectanglef) | 等于运算符左侧的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构。 | +| right | [RectangleF](../../com.aspose.drawing/rectanglef) | 等于运算符右侧的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构。 | + +**Returns:** +boolean - 如果两个指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构的 `RectangleF.X`、`RectangleF.Y`、`RectangleF.Width` 和 `RectangleF.Height` 属性相等,则此运算符返回 true。 +### op_Inequality(RectangleF left, RectangleF right) {#op-Inequality-com.aspose.drawing.RectangleF-com.aspose.drawing.RectangleF-} +``` +public static boolean op_Inequality(RectangleF left, RectangleF right) +``` + + +测试两个 [RectangleF](../../com.aspose.drawing/rectanglef) 结构的位置或大小是否不同。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| left | [RectangleF](../../com.aspose.drawing/rectanglef) | 不等于运算符左侧的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构。 | +| right | [RectangleF](../../com.aspose.drawing/rectanglef) | 不等于运算符右侧的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构。 | + +**Returns:** +boolean - 如果两个 [Rectangle](../../com.aspose.drawing/rectangle) 结构的 `RectangleF.X`、`RectangleF.Y`、`RectangleF.Width` 或 `RectangleF.Height` 属性中任意一个不相等,则此运算符返回 true;否则返回 false。 +### fromLTRB(float left, float top, float right, float bottom) {#fromLTRB-float-float-float-float-} +``` +public static RectangleF fromLTRB(float left, float top, float right, float bottom) +``` + + +使用指定的位置创建一个左上角和右下角位于指定位置的 RectangleF 结构。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 左 | 浮点数 | 矩形区域左上角的 x 坐标。 | +| 上 | 浮点数 | 矩形区域左上角的 y 坐标。 | +| 右 | 浮点数 | 矩形区域右下角的 x 坐标。 | +| 下 | 浮点数 | 矩形区域右下角的 y 坐标。 | + +**Returns:** +[RectangleF](../../com.aspose.drawing/rectanglef) - The new RectangleF that this method creates. +### inflate(RectangleF rect, float x, float y) {#inflate-com.aspose.drawing.RectangleF-float-float-} +``` +public static RectangleF inflate(RectangleF rect, float x, float y) +``` + + +创建并返回指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构的膨胀副本。该副本按指定的量进行膨胀。原始矩形保持不变。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [RectangleF](../../com.aspose.drawing/rectanglef) | 要复制的 [RectangleF](../../com.aspose.drawing/rectanglef)。此矩形未被修改。 | +| x | 浮点数 | 水平膨胀矩形副本的量。 | +| y | 浮点数 | 垂直膨胀矩形副本的量。 | + +**Returns:** +[RectangleF](../../com.aspose.drawing/rectanglef) - The inflated [RectangleF](../../com.aspose.drawing/rectanglef). +### intersect(RectangleF a, RectangleF b) {#intersect-com.aspose.drawing.RectangleF-com.aspose.drawing.RectangleF-} +``` +public static RectangleF intersect(RectangleF a, RectangleF b) +``` + + +返回一个表示两个矩形交集的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构。如果没有交集,则返回一个空的 [RectangleF](../../com.aspose.drawing/rectanglef)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| a | [RectangleF](../../com.aspose.drawing/rectanglef) | 第一个要相交的矩形。 | +| b | [RectangleF](../../com.aspose.drawing/rectanglef) | 第二个要相交的矩形。 | + +**Returns:** +[RectangleF](../../com.aspose.drawing/rectanglef) - A third [RectangleF](../../com.aspose.drawing/rectanglef) structure the size of which represents the overlapped area of the two specified rectangles. +### union(RectangleF a, RectangleF b) {#union-com.aspose.drawing.RectangleF-com.aspose.drawing.RectangleF-} +``` +public static RectangleF union(RectangleF a, RectangleF b) +``` + + +创建能够容纳两个矩形并形成并集的最小可能的第三个矩形。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| a | [RectangleF](../../com.aspose.drawing/rectanglef) | 第一个要合并的矩形。 | +| b | [RectangleF](../../com.aspose.drawing/rectanglef) | 第二个要合并的矩形。 | + +**Returns:** +[RectangleF](../../com.aspose.drawing/rectanglef) - A third [RectangleF](../../com.aspose.drawing/rectanglef) structure that contains both of the two rectangles that form the union. +### isEquals(RectangleF obj1, RectangleF obj2) {#isEquals-com.aspose.drawing.RectangleF-com.aspose.drawing.RectangleF-} +``` +public static boolean isEquals(RectangleF obj1, RectangleF obj2) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| obj1 | [RectangleF](../../com.aspose.drawing/rectanglef) | | +| obj2 | [RectangleF](../../com.aspose.drawing/rectanglef) | | + +**Returns:** +布尔型 +### getEmpty() {#getEmpty--} +``` +public static RectangleF getEmpty() +``` + + + + +**Returns:** +[RectangleF](../../com.aspose.drawing/rectanglef) +### isEmpty() {#isEmpty--} +``` +public final boolean isEmpty() +``` + + +获取一个值,指示此 [RectangleF](../../com.aspose.drawing/rectanglef) 的 `RectangleF.Width` 或 `RectangleF.Height` 属性是否为零。 + +**Returns:** +boolean - 如果此 [RectangleF](../../com.aspose.drawing/rectanglef) 的 `RectangleF.Width` 或 `P:RectangleF.Height` 属性的值为零,则此属性返回 true;否则返回 false。 +### getX() {#getX--} +``` +public final float getX() +``` + + +获取此 RectangleF 结构左上角的 x 坐标。 + +**Returns:** +float - 此 RectangleF 结构左上角的 x 坐标。 +### setX(float value) {#setX-float-} +``` +public final void setX(float value) +``` + + +设置此 RectangleF 结构左上角的 x 坐标。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | 浮点数 | 此 RectangleF 结构左上角的 x 坐标。 | + +### getY() {#getY--} +``` +public final float getY() +``` + + +获取此 RectangleF 结构左上角的 x 坐标。 + +**Returns:** +float - 此 RectangleF 结构左上角的 x 坐标。 +### setY(float value) {#setY-float-} +``` +public final void setY(float value) +``` + + +设置此 RectangleF 结构左上角的 x 坐标。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | 浮点数 | 此 RectangleF 结构左上角的 x 坐标。 | + +### getLocation() {#getLocation--} +``` +public final PointF getLocation() +``` + + +获取此 [RectangleF](../../com.aspose.drawing/rectanglef) 结构左上角的坐标。 + +**Returns:** +[PointF](../../com.aspose.drawing/pointf) - A [PointF](../../com.aspose.drawing/pointf) that represents the upper-left corner of this [RectangleF](../../com.aspose.drawing/rectanglef) structure. +### setLocation(PointF value) {#setLocation-com.aspose.drawing.PointF-} +``` +public final void setLocation(PointF value) +``` + + +设置此 [RectangleF](../../com.aspose.drawing/rectanglef) 结构的左上角坐标。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [PointF](../../com.aspose.drawing/pointf) | 此 [RectangleF](../../com.aspose.drawing/rectanglef) 结构左上角的坐标。 | + +### getWidth() {#getWidth--} +``` +public final float getWidth() +``` + + +获取此 RectangleF 结构的宽度。 + +**Returns:** +float - 此 RectangleF 结构的宽度。 +### setWidth(float value) {#setWidth-float-} +``` +public final void setWidth(float value) +``` + + +设置此 RectangleF 结构的宽度。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | 浮点数 | 此 RectangleF 结构的宽度。 | + +### getHeight() {#getHeight--} +``` +public final float getHeight() +``` + + +获取此 RectangleF 结构的高度。 + +**Returns:** +float - 此 RectangleF 结构的高度。 +### setHeight(float value) {#setHeight-float-} +``` +public final void setHeight(float value) +``` + + +设置此 RectangleF 结构的高度。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | 浮点数 | 此 RectangleF 结构的高度。 | + +### getSize() {#getSize--} +``` +public final SizeF getSize() +``` + + +获取此 [RectangleF](../../com.aspose.drawing/rectanglef) 的大小。 + +**Returns:** +[SizeF](../../com.aspose.drawing/sizef) - A [SizeF](../../com.aspose.drawing/sizef) that represents the width and height of this [RectangleF](../../com.aspose.drawing/rectanglef) structure. +### setSize(SizeF value) {#setSize-com.aspose.drawing.SizeF-} +``` +public final void setSize(SizeF value) +``` + + +设置此 [RectangleF](../../com.aspose.drawing/rectanglef) 的大小。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [SizeF](../../com.aspose.drawing/sizef) | 此 [RectangleF](../../com.aspose.drawing/rectanglef) 的大小。 | + +### getLeft() {#getLeft--} +``` +public final float getLeft() +``` + + +获取此 RectangleF 结构左边缘的 x 坐标。 + +**Returns:** +float - 此 RectangleF 结构左边缘的 x 坐标。 +### getTop() {#getTop--} +``` +public final float getTop() +``` + + +获取此 RectangleF 结构上边缘的 y 坐标。 + +**Returns:** +float - 此 RectangleF 结构上边缘的 y 坐标。 +### getRight() {#getRight--} +``` +public final float getRight() +``` + + +获取此 RectangleF 结构的 X 与 Width 相加后的 x 坐标。 + +**Returns:** +float - 此 RectangleF 结构的 X 与 Width 相加得到的 x 坐标。 +### getBottom() {#getBottom--} +``` +public final float getBottom() +``` + + +获取此 RectangleF 结构的 Y 与 Height 相加后的 y 坐标。 + +**Returns:** +float - 此 RectangleF 结构的 Y 与 Height 相加得到的 y 坐标。 +### toString() {#toString--} +``` +public String toString() +``` + + + + +**Returns:** +java.lang.String +### inflate(float x, float y) {#inflate-float-float-} +``` +public final void inflate(float x, float y) +``` + + +按指定量膨胀此 [RectangleF](../../com.aspose.drawing/rectanglef) 结构。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| x | float | 水平膨胀此 [RectangleF](../../com.aspose.drawing/rectanglef) 结构的量。 | +| y | float | 垂直膨胀此 [RectangleF](../../com.aspose.drawing/rectanglef) 结构的量。 | + +### inflate(SizeF size) {#inflate-com.aspose.drawing.SizeF-} +``` +public final void inflate(SizeF size) +``` + + +按指定量膨胀此 [RectangleF](../../com.aspose.drawing/rectanglef)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| size | [SizeF](../../com.aspose.drawing/sizef) | 膨胀此矩形的量。 | + +### intersect(RectangleF rect) {#intersect-com.aspose.drawing.RectangleF-} +``` +public final void intersect(RectangleF rect) +``` + + +用自身与指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构的交集替换此 [RectangleF](../../com.aspose.drawing/rectanglef) 结构。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [RectangleF](../../com.aspose.drawing/rectanglef) | 要相交的矩形。 | + +### intersectsWith(RectangleF rect) {#intersectsWith-com.aspose.drawing.RectangleF-} +``` +public final boolean intersectsWith(RectangleF rect) +``` + + +确定此矩形是否与 `rect` 相交。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [RectangleF](../../com.aspose.drawing/rectanglef) | 要测试的矩形。 | + +**Returns:** +boolean - 如果存在任何交集,此方法返回 true。 +### offset(PointF pos) {#offset-com.aspose.drawing.PointF-} +``` +public final void offset(PointF pos) +``` + + +按指定量调整此矩形的位置。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| pos | [PointF](../../com.aspose.drawing/pointf) | 用于偏移位置的量。 | + +### offset(float x, float y) {#offset-float-float-} +``` +public final void offset(float x, float y) +``` + + +按指定量调整此矩形的位置。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| x | 浮点数 | 用于水平偏移位置的量。 | +| y | 浮点数 | 用于垂直偏移位置的量。 | + +### contains(float x, float y) {#contains-float-float-} +``` +public final boolean contains(float x, float y) +``` + + +确定指定的点是否包含在此 [RectangleF](../../com.aspose.drawing/rectanglef) 结构中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| x | 浮点数 | 要测试的点的 x 坐标。 | +| y | 浮点数 | 要测试的点的 y 坐标。 | + +**Returns:** +boolean - 如果由 x 和 y 定义的点位于此 [RectangleF](../../com.aspose.drawing/rectanglef) 结构中,则此方法返回 `true`;否则返回 `false`。 +### contains(PointF pt) {#contains-com.aspose.drawing.PointF-} +``` +public final boolean contains(PointF pt) +``` + + +确定指定的点是否包含在此 [RectangleF](../../com.aspose.drawing/rectanglef) 结构中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| pt | [PointF](../../com.aspose.drawing/pointf) | 要测试的 [PointF](../../com.aspose.drawing/pointf)。 | + +**Returns:** +boolean - 如果由 pt 参数表示的点位于此 [RectangleF](../../com.aspose.drawing/rectanglef) 结构中,则此方法返回 `true`;否则返回 `false`。 +### contains(RectangleF rect) {#contains-com.aspose.drawing.RectangleF-} +``` +public final boolean contains(RectangleF rect) +``` + + +确定由 `rect` 表示的矩形区域是否完全包含在此 [RectangleF](../../com.aspose.drawing/rectanglef) 结构中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [RectangleF](../../com.aspose.drawing/rectanglef) | 要测试的 [RectangleF](../../com.aspose.drawing/rectanglef)。 | + +**Returns:** +boolean - 如果由 `rect` 表示的矩形区域完全包含在此 [RectangleF](../../com.aspose.drawing/rectanglef) 表示的矩形区域中,则此方法返回 `true`;否则返回 `false`。 +### equals(Object obj) {#equals-java.lang.Object-} +``` +public boolean equals(Object obj) +``` + + +确定指定的对象是否等于此实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| obj | java.lang.Object | 用于与此实例比较的 Object。 | + +**Returns:** +boolean - 如果指定的 Object 等于此实例,则为 `true`;否则为 `false`。 +### hashCode() {#hashCode--} +``` +public int hashCode() +``` + + +返回此实例的哈希码。 + +**Returns:** +int - 此实例的哈希码,适用于哈希算法和哈希表等数据结构。 +### equals(RectangleF other) {#equals-com.aspose.drawing.RectangleF-} +``` +public final boolean equals(RectangleF other) +``` + + +测试另一个 [RectangleF](../../com.aspose.drawing/rectanglef) 结构是否具有与此 [RectangleF](../../com.aspose.drawing/rectanglef) 结构相同的位置和大小。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| other | [RectangleF](../../com.aspose.drawing/rectanglef) | 要测试的其他矩形 | + +**Returns:** +boolean - 如果其他 [RectangleF](../../com.aspose.drawing/rectanglef) 结构及其 X、Y、Width 和 Height 属性等于此 [RectangleF](../../com.aspose.drawing/rectanglef) 结构的相应属性,则此方法返回 `true`;否则返回 `false`。 +### CloneTo(RectangleF that) {#CloneTo-com.aspose.drawing.RectangleF-} +``` +public void CloneTo(RectangleF that) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| that | [RectangleF](../../com.aspose.drawing/rectanglef) | | + +### Clone() {#Clone--} +``` +public RectangleF Clone() +``` + + + + +**Returns:** +[RectangleF](../../com.aspose.drawing/rectanglef) +### clone() {#clone--} +``` +public Object clone() +``` + + + + +**Returns:** +java.lang.Object diff --git a/chinese/java/com.aspose.drawing/region/_index.md b/chinese/java/com.aspose.drawing/region/_index.md new file mode 100644 index 000000000..b3a6c7aed --- /dev/null +++ b/chinese/java/com.aspose.drawing/region/_index.md @@ -0,0 +1,824 @@ +--- +title: Region +second_title: Aspose.Drawing for Java API 参考 +description: 描述由矩形和路径组成的图形形状的内部。 +type: docs +weight: 40 +url: /zh/java/com.aspose.drawing/region/ +--- +**Inheritance:** +java.lang.Object + +**All Implemented Interfaces:** +com.aspose.ms.System.IDisposable +``` +public final class Region implements System.IDisposable +``` + +描述由矩形和路径组成的图形形状的内部。此类不可被继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [Region()](#Region--) | 初始化 [Region](../../com.aspose.drawing/region) 类的新实例。 | +| [Region(RectangleF rect)](#Region-com.aspose.drawing.RectangleF-) | 从指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构初始化 [Region](../../com.aspose.drawing/region) 类的新实例。 | +| [Region(Rectangle rect)](#Region-com.aspose.drawing.Rectangle-) | 从指定的 [Rectangle](../../com.aspose.drawing/rectangle) 结构初始化 [Region](../../com.aspose.drawing/region) 类的新实例。 | +| [Region(GraphicsPath path)](#Region-com.aspose.drawing.drawing2d.GraphicsPath-) | 使用指定的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 初始化 [Region](../../com.aspose.drawing/region) 类的新实例。 | +| [Region(RegionData rgnData)](#Region-com.aspose.drawing.drawing2d.RegionData-) | 从指定的数据初始化 [Region](../../com.aspose.drawing/region) 类的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [dispose()](#dispose--) | 释放此 [Region](../../com.aspose.drawing/region) 使用的所有资源。 | +| [equals(Region region, Graphics g)](#equals-com.aspose.drawing.Region-com.aspose.drawing.Graphics-) | 测试指定的 [Region](../../com.aspose.drawing/region) 是否在指定的绘图表面上与此 [Region](../../com.aspose.drawing/region) 完全相同。 | +| [deepClone()](#deepClone--) | 创建此 [Region](../../com.aspose.drawing/region) 的精确副本。 | +| [makeInfinite()](#makeInfinite--) | 将此 [Region](../../com.aspose.drawing/region) 对象初始化为无限内部。 | +| [makeEmpty()](#makeEmpty--) | 将此 [Region](../../com.aspose.drawing/region) 初始化为空内部。 | +| [intersect(RectangleF rect)](#intersect-com.aspose.drawing.RectangleF-) | 将此 [Region](../../com.aspose.drawing/region) 更新为其自身与指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构的交集。 | +| [intersect(Rectangle rect)](#intersect-com.aspose.drawing.Rectangle-) | 将此 [Region](../../com.aspose.drawing/region) 更新为其自身与指定的 [Rectangle](../../com.aspose.drawing/rectangle) 结构的交集。 | +| [intersect(GraphicsPath path)](#intersect-com.aspose.drawing.drawing2d.GraphicsPath-) | 将此 [Region](../../com.aspose.drawing/region) 更新为其自身与指定的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 的交集。 | +| [intersect(Region region)](#intersect-com.aspose.drawing.Region-) | 将此 [Region](../../com.aspose.drawing/region) 更新为其自身与指定的 [Region](../../com.aspose.drawing/region) 的交集。 | +| [union(RectangleF rect)](#union-com.aspose.drawing.RectangleF-) | 将此 [Region](../../com.aspose.drawing/region) 更新为其自身与指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构的并集。 | +| [union(Rectangle rect)](#union-com.aspose.drawing.Rectangle-) | 将此 [Region](../../com.aspose.drawing/region) 更新为其自身与指定的 [Rectangle](../../com.aspose.drawing/rectangle) 结构的并集。 | +| [union(GraphicsPath path)](#union-com.aspose.drawing.drawing2d.GraphicsPath-) | 将此 [Region](../../com.aspose.drawing/region) 更新为其自身与指定的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 的并集。 | +| [union(Region region)](#union-com.aspose.drawing.Region-) | 将此 [Region](../../com.aspose.drawing/region) 更新为其自身与指定的 [Region](../../com.aspose.drawing/region) 的并集。 | +| [getRegionData()](#getRegionData--) | 返回一个表示描述此 [Region](../../com.aspose.drawing/region) 信息的 [RegionData](../../com.aspose.drawing.drawing2d/regiondata)。 | +| [xor(RectangleF rect)](#xor-com.aspose.drawing.RectangleF-) | 将此 [Region](../../com.aspose.drawing/region) 更新为其自身与指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构的并集减去交集。 | +| [xor(Rectangle rect)](#xor-com.aspose.drawing.Rectangle-) | 将此 [Region](../../com.aspose.drawing/region) 更新为其自身与指定的 [Rectangle](../../com.aspose.drawing/rectangle) 结构的并集减去交集。 | +| [xor(GraphicsPath path)](#xor-com.aspose.drawing.drawing2d.GraphicsPath-) | 将此 [Region](../../com.aspose.drawing/region) 更新为其自身与指定的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 的并集减去交集。 | +| [xor(Region region)](#xor-com.aspose.drawing.Region-) | 将此 [Region](../../com.aspose.drawing/region) 更新为其自身与指定的 [Region](../../com.aspose.drawing/region) 的并集减去交集。 | +| [exclude(RectangleF rect)](#exclude-com.aspose.drawing.RectangleF-) | 将此 [Region](../../com.aspose.drawing/region) 更新为仅包含其内部中未与指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构相交的部分。 | +| [exclude(Rectangle rect)](#exclude-com.aspose.drawing.Rectangle-) | 将此 [Region](../../com.aspose.drawing/region) 更新为仅包含其内部中未与指定的 [Rectangle](../../com.aspose.drawing/rectangle) 结构相交的部分。 | +| [exclude(GraphicsPath path)](#exclude-com.aspose.drawing.drawing2d.GraphicsPath-) | 将此 [Region](../../com.aspose.drawing/region) 更新为仅包含其内部中未与指定的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 相交的部分。 | +| [exclude(Region region)](#exclude-com.aspose.drawing.Region-) | 将此 [Region](../../com.aspose.drawing/region) 更新为仅包含其内部中未与指定的 [Region](../../com.aspose.drawing/region) 相交的部分。 | +| [complement(RectangleF rect)](#complement-com.aspose.drawing.RectangleF-) | 将此 [Region](../../com.aspose.drawing/region) 更新为包含指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构中未与此 [Region](../../com.aspose.drawing/region) 相交的部分。 | +| [complement(Rectangle rect)](#complement-com.aspose.drawing.Rectangle-) | 将此 [Region](../../com.aspose.drawing/region) 更新为包含指定的 [Rectangle](../../com.aspose.drawing/rectangle) 结构中未与此 [Region](../../com.aspose.drawing/region) 相交的部分。 | +| [complement(GraphicsPath path)](#complement-com.aspose.drawing.drawing2d.GraphicsPath-) | 将此 [Region](../../com.aspose.drawing/region) 更新为包含指定的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 中未与此 [Region](../../com.aspose.drawing/region) 相交的部分。 | +| [complement(Region region)](#complement-com.aspose.drawing.Region-) | 更新此 [Region](../../com.aspose.drawing/region) 以包含指定的 [Region](../../com.aspose.drawing/region) 中未与此 [Region](../../com.aspose.drawing/region) 相交的部分。 | +| [translate(float dx, float dy)](#translate-float-float-) | 按指定的量偏移此 [Region](../../com.aspose.drawing/region) 的坐标。 | +| [translate(int dx, int dy)](#translate-int-int-) | 按指定的量偏移此 [Region](../../com.aspose.drawing/region) 的坐标。 | +| [transform(Matrix matrix)](#transform-com.aspose.drawing.drawing2d.Matrix-) | 使用指定的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 对此 [Region](../../com.aspose.drawing/region) 进行变换。 | +| [getBounds(Graphics g)](#getBounds-com.aspose.drawing.Graphics-) | 获取一个 [RectangleF](../../com.aspose.drawing/rectanglef) 结构,表示在 [Graphics](../../com.aspose.drawing/graphics) 对象的绘图表面上界定此 [Region](../../com.aspose.drawing/region) 的矩形。 | +| [getRegionScans(Matrix matrix)](#getRegionScans-com.aspose.drawing.drawing2d.Matrix-) | 返回一个 [RectangleF](../../com.aspose.drawing/rectanglef) 结构数组,表示在应用指定矩阵变换后近似此 [Region](../../com.aspose.drawing/region) 的形状。 | +| [isEmpty(Graphics g)](#isEmpty-com.aspose.drawing.Graphics-) | 测试此 [Region](../../com.aspose.drawing/region) 在指定的绘图表面上是否具有空的内部。 | +| [isInfinite(Graphics g)](#isInfinite-com.aspose.drawing.Graphics-) | 测试此 [Region](../../com.aspose.drawing/region) 在指定的绘图表面上是否具有无限的内部。 | +| [isVisible(float x, float y)](#isVisible-float-float-) | 测试指定的点是否包含在此 [Region](../../com.aspose.drawing/region) 中。 | +| [isVisible(PointF point)](#isVisible-com.aspose.drawing.PointF-) | 测试指定的 [PointF](../../com.aspose.drawing/pointf) 结构是否包含在此 [Region](../../com.aspose.drawing/region) 中。 | +| [isVisible(float x, float y, Graphics g)](#isVisible-float-float-com.aspose.drawing.Graphics-) | 在使用指定的 [Graphics](../../com.aspose.drawing/graphics) 绘制时,测试指定的点是否包含在此 [Region](../../com.aspose.drawing/region) 中。 | +| [isVisible(PointF point, Graphics g)](#isVisible-com.aspose.drawing.PointF-com.aspose.drawing.Graphics-) | 在使用指定的 [Graphics](../../com.aspose.drawing/graphics) 绘制时,测试指定的 [PointF](../../com.aspose.drawing/pointf) 结构是否包含在此 [Region](../../com.aspose.drawing/region) 中。 | +| [isVisible(float x, float y, float width, float height)](#isVisible-float-float-float-float-) | 测试指定矩形的任何部分是否包含在此 [Region](../../com.aspose.drawing/region) 中。 | +| [isVisible(RectangleF rect)](#isVisible-com.aspose.drawing.RectangleF-) | 测试指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构的任何部分是否包含在此 [Region](../../com.aspose.drawing/region) 中。 | +| [isVisible(float x, float y, float width, float height, Graphics g)](#isVisible-float-float-float-float-com.aspose.drawing.Graphics-) | 在使用指定的 [Graphics](../../com.aspose.drawing/graphics) 绘制时,测试指定矩形的任何部分是否包含在此 [Region](../../com.aspose.drawing/region) 中。 | +| [isVisible(RectangleF rect, Graphics g)](#isVisible-com.aspose.drawing.RectangleF-com.aspose.drawing.Graphics-) | 在使用指定的 [Graphics](../../com.aspose.drawing/graphics) 绘制时,测试指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构的任何部分是否包含在此 [Region](../../com.aspose.drawing/region) 中。 | +| [isVisible(int x, int y, Graphics g)](#isVisible-int-int-com.aspose.drawing.Graphics-) | 在使用指定的 [Graphics](../../com.aspose.drawing/graphics) 对象绘制时,测试指定的点是否包含在此 [Region](../../com.aspose.drawing/region) 对象中。 | +| [isVisible(Point point)](#isVisible-com.aspose.drawing.Point-) | 测试指定的 [Point](../../com.aspose.drawing/point) 结构是否包含在此 [Region](../../com.aspose.drawing/region) 中。 | +| [isVisible(Point point, Graphics g)](#isVisible-com.aspose.drawing.Point-com.aspose.drawing.Graphics-) | 在使用指定的 [Graphics](../../com.aspose.drawing/graphics) 绘制时,测试指定的 [Point](../../com.aspose.drawing/point) 结构是否包含在此 [Region](../../com.aspose.drawing/region) 中。 | +| [isVisible(int x, int y, int width, int height)](#isVisible-int-int-int-int-) | 测试指定矩形的任何部分是否包含在此 [Region](../../com.aspose.drawing/region) 中。 | +| [isVisible(Rectangle rect)](#isVisible-com.aspose.drawing.Rectangle-) | 测试指定的 [Rectangle](../../com.aspose.drawing/rectangle) 结构的任何部分是否包含在此 [Region](../../com.aspose.drawing/region) 中。 | +| [isVisible(int x, int y, int width, int height, Graphics g)](#isVisible-int-int-int-int-com.aspose.drawing.Graphics-) | 在使用指定的 [Graphics](../../com.aspose.drawing/graphics) 绘制时,测试指定矩形的任何部分是否包含在此 [Region](../../com.aspose.drawing/region) 中。 | +| [isVisible(Rectangle rect, Graphics g)](#isVisible-com.aspose.drawing.Rectangle-com.aspose.drawing.Graphics-) | 在使用指定的 [Graphics](../../com.aspose.drawing/graphics) 绘制时,测试指定的 [Rectangle](../../com.aspose.drawing/rectangle) 结构的任何部分是否包含在此 [Region](../../com.aspose.drawing/region) 中。 | +### Region() {#Region--} +``` +public Region() +``` + + +初始化 [Region](../../com.aspose.drawing/region) 类的新实例。 + +### Region(RectangleF rect) {#Region-com.aspose.drawing.RectangleF-} +``` +public Region(RectangleF rect) +``` + + +从指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构初始化 [Region](../../com.aspose.drawing/region) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [RectangleF](../../com.aspose.drawing/rectanglef) | 一个定义新 [Region](../../com.aspose.drawing/region) 内部的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构。 | + +### Region(Rectangle rect) {#Region-com.aspose.drawing.Rectangle-} +``` +public Region(Rectangle rect) +``` + + +从指定的 [Rectangle](../../com.aspose.drawing/rectangle) 结构初始化 [Region](../../com.aspose.drawing/region) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [Rectangle](../../com.aspose.drawing/rectangle) | 一个定义新 [Region](../../com.aspose.drawing/region) 内部的 [Rectangle](../../com.aspose.drawing/rectangle) 结构。 | + +### Region(GraphicsPath path) {#Region-com.aspose.drawing.drawing2d.GraphicsPath-} +``` +public Region(GraphicsPath path) +``` + + +使用指定的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 初始化 [Region](../../com.aspose.drawing/region) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| path | [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) | 一个定义新 [Region](../../com.aspose.drawing/region) 的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath)。 | + +### Region(RegionData rgnData) {#Region-com.aspose.drawing.drawing2d.RegionData-} +``` +public Region(RegionData rgnData) +``` + + +从指定的数据初始化 [Region](../../com.aspose.drawing/region) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rgnData | [RegionData](../../com.aspose.drawing.drawing2d/regiondata) | 一个定义新 [Region](../../com.aspose.drawing/region) 内部的 [RegionData](../../com.aspose.drawing.drawing2d/regiondata)。 | + +### dispose() {#dispose--} +``` +public void dispose() +``` + + +释放此 [Region](../../com.aspose.drawing/region) 使用的所有资源。 + +### equals(Region region, Graphics g) {#equals-com.aspose.drawing.Region-com.aspose.drawing.Graphics-} +``` +public boolean equals(Region region, Graphics g) +``` + + +测试指定的 [Region](../../com.aspose.drawing/region) 是否在指定的绘图表面上与此 [Region](../../com.aspose.drawing/region) 完全相同。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| region | [Region](../../com.aspose.drawing/region) | 要测试的 [Region](../../com.aspose.drawing/region)。 | +| g | [Graphics](../../com.aspose.drawing/graphics) | 一个表示绘图表面的 [Graphics](../../com.aspose.drawing/graphics)。 | + +**Returns:** +布尔值 - 如果在应用与 `g` 参数关联的变换后,区域的内部与此区域的内部相同,则为 true;否则为 false。 +### deepClone() {#deepClone--} +``` +public Region deepClone() +``` + + +创建此 [Region](../../com.aspose.drawing/region) 的精确副本。 + +**Returns:** +[Region](../../com.aspose.drawing/region) - The [Region](../../com.aspose.drawing/region) that this method creates. +### makeInfinite() {#makeInfinite--} +``` +public void makeInfinite() +``` + + +将此 [Region](../../com.aspose.drawing/region) 对象初始化为无限内部。 + +### makeEmpty() {#makeEmpty--} +``` +public void makeEmpty() +``` + + +将此 [Region](../../com.aspose.drawing/region) 初始化为空内部。 + +### intersect(RectangleF rect) {#intersect-com.aspose.drawing.RectangleF-} +``` +public void intersect(RectangleF rect) +``` + + +将此 [Region](../../com.aspose.drawing/region) 更新为其自身与指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构的交集。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [RectangleF](../../com.aspose.drawing/rectanglef) | 用于与此 [Region](../../com.aspose.drawing/region) 相交的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构。 | + +### intersect(Rectangle rect) {#intersect-com.aspose.drawing.Rectangle-} +``` +public void intersect(Rectangle rect) +``` + + +将此 [Region](../../com.aspose.drawing/region) 更新为其自身与指定的 [Rectangle](../../com.aspose.drawing/rectangle) 结构的交集。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [Rectangle](../../com.aspose.drawing/rectangle) | 用于与此 [Region](../../com.aspose.drawing/region) 相交的 [Rectangle](../../com.aspose.drawing/rectangle) 结构。 | + +### intersect(GraphicsPath path) {#intersect-com.aspose.drawing.drawing2d.GraphicsPath-} +``` +public void intersect(GraphicsPath path) +``` + + +将此 [Region](../../com.aspose.drawing/region) 更新为其自身与指定的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 的交集。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| path | [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) | 用于与此 [Region](../../com.aspose.drawing/region) 相交的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 结构。 | + +### intersect(Region region) {#intersect-com.aspose.drawing.Region-} +``` +public void intersect(Region region) +``` + + +将此 [Region](../../com.aspose.drawing/region) 更新为其自身与指定的 [Region](../../com.aspose.drawing/region) 的交集。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| region | [Region](../../com.aspose.drawing/region) | 用于与此 [Region](../../com.aspose.drawing/region) 相交的 [Region](../../com.aspose.drawing/region) 结构。 | + +### union(RectangleF rect) {#union-com.aspose.drawing.RectangleF-} +``` +public void union(RectangleF rect) +``` + + +将此 [Region](../../com.aspose.drawing/region) 更新为其自身与指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构的并集。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| | rect | [RectangleF](../../com.aspose.drawing/rectanglef) | 用于与此 [Region](../../com.aspose.drawing/region) 合并的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构。 | + +-------------------- + +并集会使无限区域保持为无限。 | + +### union(Rectangle rect) {#union-com.aspose.drawing.Rectangle-} +``` +public void union(Rectangle rect) +``` + + +将此 [Region](../../com.aspose.drawing/region) 更新为其自身与指定的 [Rectangle](../../com.aspose.drawing/rectangle) 结构的并集。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| | rect | [Rectangle](../../com.aspose.drawing/rectangle) | 用于与此 [Region](../../com.aspose.drawing/region) 合并的 [Rectangle](../../com.aspose.drawing/rectangle) 结构。 | + +-------------------- + +并集会使无限区域保持为无限。 | + +### union(GraphicsPath path) {#union-com.aspose.drawing.drawing2d.GraphicsPath-} +``` +public void union(GraphicsPath path) +``` + + +将此 [Region](../../com.aspose.drawing/region) 更新为其自身与指定的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 的并集。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| | path | [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) | 用于与此 [Region](../../com.aspose.drawing/region) 合并的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 结构。 | + +-------------------- + +并集会使无限区域保持为无限。 | + +### union(Region region) {#union-com.aspose.drawing.Region-} +``` +public void union(Region region) +``` + + +将此 [Region](../../com.aspose.drawing/region) 更新为其自身与指定的 [Region](../../com.aspose.drawing/region) 的并集。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| | region | [Region](../../com.aspose.drawing/region) | 用于与此 [Region](../../com.aspose.drawing/region) 合并的 [Region](../../com.aspose.drawing/region) 结构。 | + +-------------------- + +并集会使无限区域保持为无限。 | + +### getRegionData() {#getRegionData--} +``` +public RegionData getRegionData() +``` + + +返回一个表示描述此 [Region](../../com.aspose.drawing/region) 信息的 [RegionData](../../com.aspose.drawing.drawing2d/regiondata)。 + +**Returns:** +[RegionData](../../com.aspose.drawing.drawing2d/regiondata) - A [RegionData](../../com.aspose.drawing.drawing2d/regiondata) that represents the information that describes this [Region](../../com.aspose.drawing/region). +### xor(RectangleF rect) {#xor-com.aspose.drawing.RectangleF-} +``` +public void xor(RectangleF rect) +``` + + +将此 [Region](../../com.aspose.drawing/region) 更新为其自身与指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构的并集减去交集。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [RectangleF](../../com.aspose.drawing/rectanglef) | 用于与此 [Region](../../com.aspose.drawing/region) 进行 `M:Region.Xor(Drawing2D.GraphicsPath)` 的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构。 | + +### xor(Rectangle rect) {#xor-com.aspose.drawing.Rectangle-} +``` +public void xor(Rectangle rect) +``` + + +将此 [Region](../../com.aspose.drawing/region) 更新为其自身与指定的 [Rectangle](../../com.aspose.drawing/rectangle) 结构的并集减去交集。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [Rectangle](../../com.aspose.drawing/rectangle) | 用于与此 [Region](../../com.aspose.drawing/region) 进行 `M:Region.Xor(Rectangle)` 的 [Rectangle](../../com.aspose.drawing/rectangle) 结构。 | + +### xor(GraphicsPath path) {#xor-com.aspose.drawing.drawing2d.GraphicsPath-} +``` +public void xor(GraphicsPath path) +``` + + +将此 [Region](../../com.aspose.drawing/region) 更新为其自身与指定的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 的并集减去交集。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| path | [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) | 用于与此 [Region](../../com.aspose.drawing/region) 进行 `M:Region.Xor(GraphicsPath)` 的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 结构。 | + +### xor(Region region) {#xor-com.aspose.drawing.Region-} +``` +public void xor(Region region) +``` + + +将此 [Region](../../com.aspose.drawing/region) 更新为其自身与指定的 [Region](../../com.aspose.drawing/region) 的并集减去交集。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| region | [Region](../../com.aspose.drawing/region) | 用于与此 [Region](../../com.aspose.drawing/region) 进行 `M:Region.Xor(Region)` 的 [Region](../../com.aspose.drawing/region) 结构。 | + +### exclude(RectangleF rect) {#exclude-com.aspose.drawing.RectangleF-} +``` +public void exclude(RectangleF rect) +``` + + +将此 [Region](../../com.aspose.drawing/region) 更新为仅包含其内部中未与指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构相交的部分。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [RectangleF](../../com.aspose.drawing/rectanglef) | 用于从此 [Region](../../com.aspose.drawing/region) 排除的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构。 | + +### exclude(Rectangle rect) {#exclude-com.aspose.drawing.Rectangle-} +``` +public void exclude(Rectangle rect) +``` + + +将此 [Region](../../com.aspose.drawing/region) 更新为仅包含其内部中未与指定的 [Rectangle](../../com.aspose.drawing/rectangle) 结构相交的部分。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [Rectangle](../../com.aspose.drawing/rectangle) | 用于从此 [Region](../../com.aspose.drawing/region) 排除的 [Rectangle](../../com.aspose.drawing/rectangle) 结构。 | + +### exclude(GraphicsPath path) {#exclude-com.aspose.drawing.drawing2d.GraphicsPath-} +``` +public void exclude(GraphicsPath path) +``` + + +将此 [Region](../../com.aspose.drawing/region) 更新为仅包含其内部中未与指定的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 相交的部分。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| path | [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) | 用于从此 [Region](../../com.aspose.drawing/region) 排除的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 结构。 | + +### exclude(Region region) {#exclude-com.aspose.drawing.Region-} +``` +public void exclude(Region region) +``` + + +将此 [Region](../../com.aspose.drawing/region) 更新为仅包含其内部中未与指定的 [Region](../../com.aspose.drawing/region) 相交的部分。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| region | [Region](../../com.aspose.drawing/region) | 用于从此 [Region](../../com.aspose.drawing/region) 排除的 [Region](../../com.aspose.drawing/region) 结构。 | + +### complement(RectangleF rect) {#complement-com.aspose.drawing.RectangleF-} +``` +public void complement(RectangleF rect) +``` + + +将此 [Region](../../com.aspose.drawing/region) 更新为包含指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构中未与此 [Region](../../com.aspose.drawing/region) 相交的部分。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [RectangleF](../../com.aspose.drawing/rectanglef) | 用于补充此 [Region](../../com.aspose.drawing/region) 的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构。 | + +### complement(Rectangle rect) {#complement-com.aspose.drawing.Rectangle-} +``` +public void complement(Rectangle rect) +``` + + +将此 [Region](../../com.aspose.drawing/region) 更新为包含指定的 [Rectangle](../../com.aspose.drawing/rectangle) 结构中未与此 [Region](../../com.aspose.drawing/region) 相交的部分。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [Rectangle](../../com.aspose.drawing/rectangle) | 用于补充此 [Region](../../com.aspose.drawing/region) 的 [Rectangle](../../com.aspose.drawing/rectangle) 结构。 | + +### complement(GraphicsPath path) {#complement-com.aspose.drawing.drawing2d.GraphicsPath-} +``` +public void complement(GraphicsPath path) +``` + + +将此 [Region](../../com.aspose.drawing/region) 更新为包含指定的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 中未与此 [Region](../../com.aspose.drawing/region) 相交的部分。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| path | [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) | 用于补充此 [Region](../../com.aspose.drawing/region) 的 [GraphicsPath](../../com.aspose.drawing.drawing2d/graphicspath) 结构。 | + +### complement(Region region) {#complement-com.aspose.drawing.Region-} +``` +public void complement(Region region) +``` + + +更新此 [Region](../../com.aspose.drawing/region) 以包含指定的 [Region](../../com.aspose.drawing/region) 中未与此 [Region](../../com.aspose.drawing/region) 相交的部分。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| region | [Region](../../com.aspose.drawing/region) | 用于补充此 [Region](../../com.aspose.drawing/region) 对象的 [Region](../../com.aspose.drawing/region) 对象。 | + +### translate(float dx, float dy) {#translate-float-float-} +``` +public void translate(float dx, float dy) +``` + + +按指定的量偏移此 [Region](../../com.aspose.drawing/region) 的坐标。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| dx | float | 此 [Region](../../com.aspose.drawing/region) 水平偏移的量。 | +| dy | float | 此 [Region](../../com.aspose.drawing/region) 垂直偏移的量。 | + +### translate(int dx, int dy) {#translate-int-int-} +``` +public void translate(int dx, int dy) +``` + + +按指定的量偏移此 [Region](../../com.aspose.drawing/region) 的坐标。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| dx | int | 水平偏移此[Region](../../com.aspose.drawing/region)的量. | +| dy | int | 此 [Region](../../com.aspose.drawing/region) 垂直偏移的量。 | + +### transform(Matrix matrix) {#transform-com.aspose.drawing.drawing2d.Matrix-} +``` +public void transform(Matrix matrix) +``` + + +使用指定的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 对此 [Region](../../com.aspose.drawing/region) 进行变换。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| matrix | [Matrix](../../com.aspose.drawing.drawing2d/matrix) | 用于转换此[Region](../../com.aspose.drawing/region)的[Matrix](../../com.aspose.drawing.drawing2d/matrix). | + +### getBounds(Graphics g) {#getBounds-com.aspose.drawing.Graphics-} +``` +public RectangleF getBounds(Graphics g) +``` + + +获取一个 [RectangleF](../../com.aspose.drawing/rectanglef) 结构,表示在 [Graphics](../../com.aspose.drawing/graphics) 对象的绘图表面上界定此 [Region](../../com.aspose.drawing/region) 的矩形。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| g | [Graphics](../../com.aspose.drawing/graphics) | 此[Region](../../com.aspose.drawing/region)被绘制的[Graphics](../../com.aspose.drawing/graphics). | + +**Returns:** +[RectangleF](../../com.aspose.drawing/rectanglef) - A [RectangleF](../../com.aspose.drawing/rectanglef) structure that represents the bounding rectangle for this [Region](../../com.aspose.drawing/region) on the specified drawing surface. +### getRegionScans(Matrix matrix) {#getRegionScans-com.aspose.drawing.drawing2d.Matrix-} +``` +public RectangleF[] getRegionScans(Matrix matrix) +``` + + +返回一个 [RectangleF](../../com.aspose.drawing/rectanglef) 结构数组,表示在应用指定矩阵变换后近似此 [Region](../../com.aspose.drawing/region) 的形状。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| matrix | [Matrix](../../com.aspose.drawing.drawing2d/matrix) | 表示要应用于此[Region](../../com.aspose.drawing/region)的几何变换的[Matrix](../../com.aspose.drawing.drawing2d/matrix). | + +**Returns:** +com.aspose.drawing.RectangleF[] - 在应用指定矩阵变换后近似此[Region](../../com.aspose.drawing/region)的[RectangleF](../../com.aspose.drawing/rectanglef)结构数组. +### isEmpty(Graphics g) {#isEmpty-com.aspose.drawing.Graphics-} +``` +public boolean isEmpty(Graphics g) +``` + + +测试此 [Region](../../com.aspose.drawing/region) 在指定的绘图表面上是否具有空的内部。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| g | [Graphics](../../com.aspose.drawing/graphics) | 一个表示绘图表面的 [Graphics](../../com.aspose.drawing/graphics)。 | + +**Returns:** +boolean - 当对 `g` 关联的变换应用时,如果此[Region](../../com.aspose.drawing/region)的内部为空,则为 true;否则为 false. +### isInfinite(Graphics g) {#isInfinite-com.aspose.drawing.Graphics-} +``` +public boolean isInfinite(Graphics g) +``` + + +测试此 [Region](../../com.aspose.drawing/region) 在指定的绘图表面上是否具有无限的内部。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| g | [Graphics](../../com.aspose.drawing/graphics) | 一个表示绘图表面的 [Graphics](../../com.aspose.drawing/graphics)。 | + +**Returns:** +boolean - 当对 `g` 关联的变换应用时,如果此[Region](../../com.aspose.drawing/region)的内部是无限的,则为 true;否则为 false. +### isVisible(float x, float y) {#isVisible-float-float-} +``` +public boolean isVisible(float x, float y) +``` + + +测试指定的点是否包含在此 [Region](../../com.aspose.drawing/region) 中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| x | 浮点数 | 要测试的点的 x 坐标。 | +| y | 浮点数 | 要测试的点的 y 坐标。 | + +**Returns:** +boolean - 当指定的点位于此[Region](../../com.aspose.drawing/region)内部时为 true;否则为 false. +### isVisible(PointF point) {#isVisible-com.aspose.drawing.PointF-} +``` +public boolean isVisible(PointF point) +``` + + +测试指定的 [PointF](../../com.aspose.drawing/pointf) 结构是否包含在此 [Region](../../com.aspose.drawing/region) 中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| point | [PointF](../../com.aspose.drawing/pointf) | 要测试的[PointF](../../com.aspose.drawing/pointf)结构. | + +**Returns:** +boolean - 当 `point` 位于此[Region](../../com.aspose.drawing/region)内部时为 true;否则为 false. +### isVisible(float x, float y, Graphics g) {#isVisible-float-float-com.aspose.drawing.Graphics-} +``` +public boolean isVisible(float x, float y, Graphics g) +``` + + +在使用指定的 [Graphics](../../com.aspose.drawing/graphics) 绘制时,测试指定的点是否包含在此 [Region](../../com.aspose.drawing/region) 中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| x | 浮点数 | 要测试的点的 x 坐标。 | +| y | 浮点数 | 要测试的点的 y 坐标。 | +| g | [Graphics](../../com.aspose.drawing/graphics) | 表示图形上下文的[Graphics](../../com.aspose.drawing/graphics). | + +**Returns:** +boolean - 当指定的点位于此[Region](../../com.aspose.drawing/region)内部时为 true;否则为 false. +### isVisible(PointF point, Graphics g) {#isVisible-com.aspose.drawing.PointF-com.aspose.drawing.Graphics-} +``` +public boolean isVisible(PointF point, Graphics g) +``` + + +在使用指定的 [Graphics](../../com.aspose.drawing/graphics) 绘制时,测试指定的 [PointF](../../com.aspose.drawing/pointf) 结构是否包含在此 [Region](../../com.aspose.drawing/region) 中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| point | [PointF](../../com.aspose.drawing/pointf) | 要测试的[PointF](../../com.aspose.drawing/pointf)结构. | +| g | [Graphics](../../com.aspose.drawing/graphics) | 表示图形上下文的[Graphics](../../com.aspose.drawing/graphics). | + +**Returns:** +boolean - 当 `point` 位于此[Region](../../com.aspose.drawing/region)内部时为 true;否则为 false. +### isVisible(float x, float y, float width, float height) {#isVisible-float-float-float-float-} +``` +public boolean isVisible(float x, float y, float width, float height) +``` + + +测试指定矩形的任何部分是否包含在此 [Region](../../com.aspose.drawing/region) 中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| x | 浮点数 | 要测试的矩形左上角的 x 坐标. | +| y | 浮点数 | 要测试的矩形左上角的 y 坐标. | +| 宽度 | 浮点数 | 要测试的矩形的宽度. | +| 高度 | 浮点数 | 要测试的矩形的高度. | + +**Returns:** +boolean - 当指定矩形的任何部分位于此[Region](../../com.aspose.drawing/region)对象内部时为 true;否则为 false. +### isVisible(RectangleF rect) {#isVisible-com.aspose.drawing.RectangleF-} +``` +public boolean isVisible(RectangleF rect) +``` + + +测试指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构的任何部分是否包含在此 [Region](../../com.aspose.drawing/region) 中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [RectangleF](../../com.aspose.drawing/rectanglef) | 要测试的[RectangleF](../../com.aspose.drawing/rectanglef)结构. | + +**Returns:** +boolean - 当 `rect` 的任何部分位于此[Region](../../com.aspose.drawing/region)内部时为 true;否则为 false. +### isVisible(float x, float y, float width, float height, Graphics g) {#isVisible-float-float-float-float-com.aspose.drawing.Graphics-} +``` +public boolean isVisible(float x, float y, float width, float height, Graphics g) +``` + + +在使用指定的 [Graphics](../../com.aspose.drawing/graphics) 绘制时,测试指定矩形的任何部分是否包含在此 [Region](../../com.aspose.drawing/region) 中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| x | 浮点数 | 要测试的矩形左上角的 x 坐标. | +| y | 浮点数 | 要测试的矩形左上角的 y 坐标. | +| 宽度 | 浮点数 | 要测试的矩形的宽度. | +| 高度 | 浮点数 | 要测试的矩形的高度. | +| g | [Graphics](../../com.aspose.drawing/graphics) | 表示图形上下文的[Graphics](../../com.aspose.drawing/graphics). | + +**Returns:** +boolean - 当指定矩形的任何部分位于此[Region](../../com.aspose.drawing/region)内部时为 true;否则为 false. +### isVisible(RectangleF rect, Graphics g) {#isVisible-com.aspose.drawing.RectangleF-com.aspose.drawing.Graphics-} +``` +public boolean isVisible(RectangleF rect, Graphics g) +``` + + +在使用指定的 [Graphics](../../com.aspose.drawing/graphics) 绘制时,测试指定的 [RectangleF](../../com.aspose.drawing/rectanglef) 结构的任何部分是否包含在此 [Region](../../com.aspose.drawing/region) 中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [RectangleF](../../com.aspose.drawing/rectanglef) | 要测试的[RectangleF](../../com.aspose.drawing/rectanglef)结构. | +| g | [Graphics](../../com.aspose.drawing/graphics) | 表示图形上下文的[Graphics](../../com.aspose.drawing/graphics). | + +**Returns:** +boolean - 当 `rect` 位于此[Region](../../com.aspose.drawing/region)内部时为 true;否则为 false. +### isVisible(int x, int y, Graphics g) {#isVisible-int-int-com.aspose.drawing.Graphics-} +``` +public boolean isVisible(int x, int y, Graphics g) +``` + + +在使用指定的 [Graphics](../../com.aspose.drawing/graphics) 对象绘制时,测试指定的点是否包含在此 [Region](../../com.aspose.drawing/region) 对象中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| x | int | 要测试的点的 x 坐标。 | +| y | int | 要测试的点的 y 坐标。 | +| g | [Graphics](../../com.aspose.drawing/graphics) | 表示图形上下文的[Graphics](../../com.aspose.drawing/graphics). | + +**Returns:** +boolean - 当指定的点位于此[Region](../../com.aspose.drawing/region)内部时为 true;否则为 false. +### isVisible(Point point) {#isVisible-com.aspose.drawing.Point-} +``` +public boolean isVisible(Point point) +``` + + +测试指定的 [Point](../../com.aspose.drawing/point) 结构是否包含在此 [Region](../../com.aspose.drawing/region) 中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| point | [Point](../../com.aspose.drawing/point) | 要测试的[Point](../../com.aspose.drawing/point)结构. | + +**Returns:** +boolean - 当 `point` 位于此[Region](../../com.aspose.drawing/region)内部时为 true;否则为 false. +### isVisible(Point point, Graphics g) {#isVisible-com.aspose.drawing.Point-com.aspose.drawing.Graphics-} +``` +public boolean isVisible(Point point, Graphics g) +``` + + +在使用指定的 [Graphics](../../com.aspose.drawing/graphics) 绘制时,测试指定的 [Point](../../com.aspose.drawing/point) 结构是否包含在此 [Region](../../com.aspose.drawing/region) 中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| point | [Point](../../com.aspose.drawing/point) | 要测试的[Point](../../com.aspose.drawing/point)结构. | +| g | [Graphics](../../com.aspose.drawing/graphics) | 表示图形上下文的[Graphics](../../com.aspose.drawing/graphics). | + +**Returns:** +boolean - 当 `point` 位于此[Region](../../com.aspose.drawing/region)内部时为 true;否则为 false. +### isVisible(int x, int y, int width, int height) {#isVisible-int-int-int-int-} +``` +public boolean isVisible(int x, int y, int width, int height) +``` + + +测试指定矩形的任何部分是否包含在此 [Region](../../com.aspose.drawing/region) 中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| x | int | 要测试的矩形左上角的 x 坐标. | +| y | int | 要测试的矩形左上角的 y 坐标. | +| 宽度 | int | 要测试的矩形的宽度. | +| 高度 | int | 要测试的矩形的高度. | + +**Returns:** +boolean - 当指定矩形的任何部分位于此[Region](../../com.aspose.drawing/region)内部时为 true;否则为 false. +### isVisible(Rectangle rect) {#isVisible-com.aspose.drawing.Rectangle-} +``` +public boolean isVisible(Rectangle rect) +``` + + +测试指定的 [Rectangle](../../com.aspose.drawing/rectangle) 结构的任何部分是否包含在此 [Region](../../com.aspose.drawing/region) 中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [Rectangle](../../com.aspose.drawing/rectangle) | 要测试的[Rectangle](../../com.aspose.drawing/rectangle)结构. | + +**Returns:** +boolean - 当 `rect` 的任何部分位于此[Region](../../com.aspose.drawing/region)内部时,此方法返回 true;否则返回 false. +### isVisible(int x, int y, int width, int height, Graphics g) {#isVisible-int-int-int-int-com.aspose.drawing.Graphics-} +``` +public boolean isVisible(int x, int y, int width, int height, Graphics g) +``` + + +在使用指定的 [Graphics](../../com.aspose.drawing/graphics) 绘制时,测试指定矩形的任何部分是否包含在此 [Region](../../com.aspose.drawing/region) 中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| x | int | 要测试的矩形左上角的 x 坐标. | +| y | int | 要测试的矩形左上角的 y 坐标. | +| 宽度 | int | 要测试的矩形的宽度. | +| 高度 | int | 要测试的矩形的高度. | +| g | [Graphics](../../com.aspose.drawing/graphics) | 表示图形上下文的[Graphics](../../com.aspose.drawing/graphics). | + +**Returns:** +boolean - 当指定矩形的任何部分位于此[Region](../../com.aspose.drawing/region)内部时为 true;否则为 false. +### isVisible(Rectangle rect, Graphics g) {#isVisible-com.aspose.drawing.Rectangle-com.aspose.drawing.Graphics-} +``` +public boolean isVisible(Rectangle rect, Graphics g) +``` + + +在使用指定的 [Graphics](../../com.aspose.drawing/graphics) 绘制时,测试指定的 [Rectangle](../../com.aspose.drawing/rectangle) 结构的任何部分是否包含在此 [Region](../../com.aspose.drawing/region) 中。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| rect | [Rectangle](../../com.aspose.drawing/rectangle) | 要测试的[Rectangle](../../com.aspose.drawing/rectangle)结构. | +| g | [Graphics](../../com.aspose.drawing/graphics) | 表示图形上下文的[Graphics](../../com.aspose.drawing/graphics). | + +**Returns:** +boolean - 当 `rect` 的任何部分位于此[Region](../../com.aspose.drawing/region)内部时为 true;否则为 false. diff --git a/chinese/java/com.aspose.drawing/rotatefliptype/_index.md b/chinese/java/com.aspose.drawing/rotatefliptype/_index.md new file mode 100644 index 000000000..14734d94b --- /dev/null +++ b/chinese/java/com.aspose.drawing/rotatefliptype/_index.md @@ -0,0 +1,163 @@ +--- +title: RotateFlipType +second_title: Aspose.Drawing for Java API 参考 +description: 指定图像旋转的方向以及用于翻转图像的轴线。 +type: docs +weight: 41 +url: /zh/java/com.aspose.drawing/rotatefliptype/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class RotateFlipType extends System.Enum +``` + +指定图像旋转的方向以及用于翻转图像的轴。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [RotateNoneFlipNone](#RotateNoneFlipNone) | 指定不旋转且不翻转。 | +| [Rotate90FlipNone](#Rotate90FlipNone) | 指定 90 度旋转且不翻转。 | +| [Rotate180FlipNone](#Rotate180FlipNone) | 指定 180 度旋转且不翻转。 | +| [Rotate270FlipNone](#Rotate270FlipNone) | 指定 270 度旋转且不翻转。 | +| [RotateNoneFlipX](#RotateNoneFlipX) | 指定不旋转后进行水平翻转。 | +| [Rotate90FlipX](#Rotate90FlipX) | 指定 90 度旋转后进行水平翻转。 | +| [Rotate180FlipX](#Rotate180FlipX) | 指定 180 度旋转后进行水平翻转。 | +| [Rotate270FlipX](#Rotate270FlipX) | 指定 270 度旋转后进行水平翻转。 | +| [RotateNoneFlipY](#RotateNoneFlipY) | 指定不旋转后进行垂直翻转。 | +| [Rotate90FlipY](#Rotate90FlipY) | 指定 90 度旋转后进行垂直翻转。 | +| [Rotate180FlipY](#Rotate180FlipY) | 指定 180 度旋转后进行垂直翻转。 | +| [Rotate270FlipY](#Rotate270FlipY) | 指定 270 度旋转后进行垂直翻转。 | +| [RotateNoneFlipXY](#RotateNoneFlipXY) | 指定不旋转后进行水平和垂直翻转。 | +| [Rotate90FlipXY](#Rotate90FlipXY) | 指定 90 度旋转后进行水平和垂直翻转。 | +| [Rotate180FlipXY](#Rotate180FlipXY) | 指定 180 度旋转后进行水平和垂直翻转。 | +| [Rotate270FlipXY](#Rotate270FlipXY) | 指定 270 度旋转后进行水平和垂直翻转。 | +### RotateNoneFlipNone {#RotateNoneFlipNone} +``` +public static final int RotateNoneFlipNone +``` + + +指定不旋转且不翻转。 + +### Rotate90FlipNone {#Rotate90FlipNone} +``` +public static final int Rotate90FlipNone +``` + + +指定 90 度旋转且不翻转。 + +### Rotate180FlipNone {#Rotate180FlipNone} +``` +public static final int Rotate180FlipNone +``` + + +指定 180 度旋转且不翻转。 + +### Rotate270FlipNone {#Rotate270FlipNone} +``` +public static final int Rotate270FlipNone +``` + + +指定 270 度旋转且不翻转。 + +### RotateNoneFlipX {#RotateNoneFlipX} +``` +public static final int RotateNoneFlipX +``` + + +指定不旋转后进行水平翻转。 + +### Rotate90FlipX {#Rotate90FlipX} +``` +public static final int Rotate90FlipX +``` + + +指定 90 度旋转后进行水平翻转。 + +### Rotate180FlipX {#Rotate180FlipX} +``` +public static final int Rotate180FlipX +``` + + +指定 180 度旋转后进行水平翻转。 + +### Rotate270FlipX {#Rotate270FlipX} +``` +public static final int Rotate270FlipX +``` + + +指定 270 度旋转后进行水平翻转。 + +### RotateNoneFlipY {#RotateNoneFlipY} +``` +public static final int RotateNoneFlipY +``` + + +指定不旋转后进行垂直翻转。 + +### Rotate90FlipY {#Rotate90FlipY} +``` +public static final int Rotate90FlipY +``` + + +指定 90 度旋转后进行垂直翻转。 + +### Rotate180FlipY {#Rotate180FlipY} +``` +public static final int Rotate180FlipY +``` + + +指定 180 度旋转后进行垂直翻转。 + +### Rotate270FlipY {#Rotate270FlipY} +``` +public static final int Rotate270FlipY +``` + + +指定 270 度旋转后进行垂直翻转。 + +### RotateNoneFlipXY {#RotateNoneFlipXY} +``` +public static final int RotateNoneFlipXY +``` + + +指定不旋转后进行水平和垂直翻转。 + +### Rotate90FlipXY {#Rotate90FlipXY} +``` +public static final int Rotate90FlipXY +``` + + +指定 90 度旋转后进行水平和垂直翻转。 + +### Rotate180FlipXY {#Rotate180FlipXY} +``` +public static final int Rotate180FlipXY +``` + + +指定 180 度旋转后进行水平和垂直翻转。 + +### Rotate270FlipXY {#Rotate270FlipXY} +``` +public static final int Rotate270FlipXY +``` + + +指定 270 度旋转后进行水平和垂直翻转。 + diff --git a/chinese/java/com.aspose.drawing/size/_index.md b/chinese/java/com.aspose.drawing/size/_index.md new file mode 100644 index 000000000..22998c829 --- /dev/null +++ b/chinese/java/com.aspose.drawing/size/_index.md @@ -0,0 +1,525 @@ +--- +title: Size +second_title: Aspose.Drawing for Java API 参考 +description: 存储一对有序整数,通常表示矩形的宽度和高度。 +type: docs +weight: 42 +url: /zh/java/com.aspose.drawing/size/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.lang.Struct + +**All Implemented Interfaces:** +com.aspose.ms.System.IEquatable, java.lang.Cloneable +``` +public class Size extends Struct implements System.IEquatable, Cloneable +``` + +存储一对整数,通常表示矩形的宽度和高度。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [Size()](#Size--) | | +| [Size(Point pt)](#Size-com.aspose.drawing.Point-) | 根据指定的 [Point](../../com.aspose.drawing/point) 初始化一个新的 [Size](../../com.aspose.drawing/size) 结构实例。 | +| [Size(int width, int height)](#Size-int-int-) | 根据指定的尺寸初始化一个新的 [Size](../../com.aspose.drawing/size) 结构实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [to_SizeF(Size p)](#to-SizeF-com.aspose.drawing.Size-) | 将指定的 [Size](../../com.aspose.drawing/size) 转换为 [SizeF](../../com.aspose.drawing/sizef)。 | +| [op_Addition(Size sz1, Size sz2)](#op-Addition-com.aspose.drawing.Size-com.aspose.drawing.Size-) | 将一个 [Size](../../com.aspose.drawing/size) 结构的宽度和高度加到另一个 [Size](../../com.aspose.drawing/size) 结构的宽度和高度上。 | +| [op_Subtraction(Size sz1, Size sz2)](#op-Subtraction-com.aspose.drawing.Size-com.aspose.drawing.Size-) | 从另一个 [Size](../../com.aspose.drawing/size) 结构的宽度和高度中减去一个 [Size](../../com.aspose.drawing/size) 结构的宽度和高度。 | +| [op_Multiply(int left, Size right)](#op-Multiply-int-com.aspose.drawing.Size-) | 将一个 [Size](../../com.aspose.drawing/size) 与 `int` 相乘,生成 [Size](../../com.aspose.drawing/size)。 | +| [op_Multiply(Size left, int right)](#op-Multiply-com.aspose.drawing.Size-int-) | 将 [Size](../../com.aspose.drawing/size) 与 `int` 相乘,生成 [Size](../../com.aspose.drawing/size)。 | +| [op_Division(Size left, int right)](#op-Division-com.aspose.drawing.Size-int-) | 将 [Size](../../com.aspose.drawing/size) 除以 `int`,生成 [Size](../../com.aspose.drawing/size)。 | +| [op_Multiply(float left, Size right)](#op-Multiply-float-com.aspose.drawing.Size-) | 将 [Size](../../com.aspose.drawing/size) 与 `float` 相乘,生成 [SizeF](../../com.aspose.drawing/sizef)。 | +| [op_Multiply(Size left, float right)](#op-Multiply-com.aspose.drawing.Size-float-) | 将 [Size](../../com.aspose.drawing/size) 与 `float` 相乘,生成 [SizeF](../../com.aspose.drawing/sizef)。 | +| [op_Division(Size left, float right)](#op-Division-com.aspose.drawing.Size-float-) | 将 [Size](../../com.aspose.drawing/size) 除以 `float`,生成 [SizeF](../../com.aspose.drawing/sizef)。 | +| [op_Equality(Size sz1, Size sz2)](#op-Equality-com.aspose.drawing.Size-com.aspose.drawing.Size-) | 测试两个 [Size](../../com.aspose.drawing/size) 结构是否相等。 | +| [op_Inequality(Size sz1, Size sz2)](#op-Inequality-com.aspose.drawing.Size-com.aspose.drawing.Size-) | 测试两个 [Size](../../com.aspose.drawing/size) 结构是否不同。 | +| [to_Point(Size size)](#to-Point-com.aspose.drawing.Size-) | 将指定的 [Size](../../com.aspose.drawing/size) 转换为 [Point](../../com.aspose.drawing/point)。 | +| [add(Size sz1, Size sz2)](#add-com.aspose.drawing.Size-com.aspose.drawing.Size-) | 将一个 [Size](../../com.aspose.drawing/size) 结构的宽度和高度加到另一个 [Size](../../com.aspose.drawing/size) 结构的宽度和高度上。 | +| [ceiling(SizeF value)](#ceiling-com.aspose.drawing.SizeF-) | 将指定的 [SizeF](../../com.aspose.drawing/sizef) 结构转换为 [Size](../../com.aspose.drawing/size) 结构,方法是将 [Size](../../com.aspose.drawing/size) 结构的值向上取整到下一个整数。 | +| [subtract(Size sz1, Size sz2)](#subtract-com.aspose.drawing.Size-com.aspose.drawing.Size-) | 从另一个 [Size](../../com.aspose.drawing/size) 结构的宽度和高度中减去一个 [Size](../../com.aspose.drawing/size) 结构的宽度和高度。 | +| [truncate(SizeF value)](#truncate-com.aspose.drawing.SizeF-) | 将指定的 [SizeF](../../com.aspose.drawing/sizef) 结构转换为 [Size](../../com.aspose.drawing/size) 结构,方法是将 [SizeF](../../com.aspose.drawing/sizef) 结构的值截断到下一个较低的整数。 | +| [round(SizeF value)](#round-com.aspose.drawing.SizeF-) | 将指定的 [SizeF](../../com.aspose.drawing/sizef) 结构转换为 [Size](../../com.aspose.drawing/size) 结构,方法是将 [SizeF](../../com.aspose.drawing/sizef) 结构的值四舍五入到最近的整数。 | +| [isEquals(Size obj1, Size obj2)](#isEquals-com.aspose.drawing.Size-com.aspose.drawing.Size-) | | +| [getEmpty()](#getEmpty--) | | +| [isEmpty()](#isEmpty--) | 获取一个值,指示此 [Size](../../com.aspose.drawing/size) 的宽度和高度是否为 0。 | +| [getWidth()](#getWidth--) | 获取此 [Size](../../com.aspose.drawing/size) 的水平分量。 | +| [setWidth(int value)](#setWidth-int-) | 设置此 [Size](../../com.aspose.drawing/size) 的水平分量。 | +| [getHeight()](#getHeight--) | 获取此 [Size](../../com.aspose.drawing/size) 的垂直分量。 | +| [setHeight(int value)](#setHeight-int-) | 设置此 [Size](../../com.aspose.drawing/size) 的垂直分量。 | +| [equals(Object obj)](#equals-java.lang.Object-) | 测试指定的对象是否为具有与此 [Size](../../com.aspose.drawing/size) 相同尺寸的 [Size](../../com.aspose.drawing/size)。 | +| [hashCode()](#hashCode--) | 返回此 [Size](../../com.aspose.drawing/size) 结构的哈希码。 | +| [toString()](#toString--) | | +| [equals(Size other)](#equals-com.aspose.drawing.Size-) | 测试另一个 [Size](../../com.aspose.drawing/size) 结构是否与此 [Size](../../com.aspose.drawing/size) 结构具有相同的大小。 | +| [CloneTo(Size that)](#CloneTo-com.aspose.drawing.Size-) | | +| [Clone()](#Clone--) | | +| [clone()](#clone--) | | +### Size() {#Size--} +``` +public Size() +``` + + +### Size(Point pt) {#Size-com.aspose.drawing.Point-} +``` +public Size(Point pt) +``` + + +根据指定的 [Point](../../com.aspose.drawing/point) 初始化一个新的 [Size](../../com.aspose.drawing/size) 结构实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| pt | [Point](../../com.aspose.drawing/point) | 用于初始化此 [Size](../../com.aspose.drawing/size) 的 [Point](../../com.aspose.drawing/point)。 | + +### Size(int width, int height) {#Size-int-int-} +``` +public Size(int width, int height) +``` + + +根据指定的尺寸初始化一个新的 [Size](../../com.aspose.drawing/size) 结构实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| width | int | 新 [Size](../../com.aspose.drawing/size) 的宽度分量。 | +| height | int | 新 [Size](../../com.aspose.drawing/size) 的高度分量。 | + +### to_SizeF(Size p) {#to-SizeF-com.aspose.drawing.Size-} +``` +public static SizeF to_SizeF(Size p) +``` + + +将指定的 [Size](../../com.aspose.drawing/size) 转换为 [SizeF](../../com.aspose.drawing/sizef)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| p | [Size](../../com.aspose.drawing/size) | 要转换的 [Size](../../com.aspose.drawing/size)。 | + +**Returns:** +[SizeF](../../com.aspose.drawing/sizef) - The [SizeF](../../com.aspose.drawing/sizef) structure to which this operator converts. +### op_Addition(Size sz1, Size sz2) {#op-Addition-com.aspose.drawing.Size-com.aspose.drawing.Size-} +``` +public static Size op_Addition(Size sz1, Size sz2) +``` + + +将一个 [Size](../../com.aspose.drawing/size) 结构的宽度和高度加到另一个 [Size](../../com.aspose.drawing/size) 结构的宽度和高度上。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| sz1 | [Size](../../com.aspose.drawing/size) | 要相加的第一个 [Size](../../com.aspose.drawing/size)。 | +| sz2 | [Size](../../com.aspose.drawing/size) | 要相加的第二个 [Size](../../com.aspose.drawing/size)。 | + +**Returns:** +[Size](../../com.aspose.drawing/size) - A [Size](../../com.aspose.drawing/size) structure that is the result of the addition operation. +### op_Subtraction(Size sz1, Size sz2) {#op-Subtraction-com.aspose.drawing.Size-com.aspose.drawing.Size-} +``` +public static Size op_Subtraction(Size sz1, Size sz2) +``` + + +从另一个 [Size](../../com.aspose.drawing/size) 结构的宽度和高度中减去一个 [Size](../../com.aspose.drawing/size) 结构的宽度和高度。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| sz1 | [Size](../../com.aspose.drawing/size) | 减法运算符左侧的 [Size](../../com.aspose.drawing/size) 结构。 | +| sz2 | [Size](../../com.aspose.drawing/size) | 减法运算符右侧的 [Size](../../com.aspose.drawing/size) 结构。 | + +**Returns:** +[Size](../../com.aspose.drawing/size) - A [Size](../../com.aspose.drawing/size) structure that is the result of the subtraction operation. +### op_Multiply(int left, Size right) {#op-Multiply-int-com.aspose.drawing.Size-} +``` +public static Size op_Multiply(int left, Size right) +``` + + +将一个 [Size](../../com.aspose.drawing/size) 与 `int` 相乘,生成 [Size](../../com.aspose.drawing/size)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 左 | int | 类型为 `int` 的乘数。 | +| right | [Size](../../com.aspose.drawing/size) | 类型为 [Size](../../com.aspose.drawing/size) 的被乘数。 | + +**Returns:** +[Size](../../com.aspose.drawing/size) - Product of type [Size](../../com.aspose.drawing/size). +### op_Multiply(Size left, int right) {#op-Multiply-com.aspose.drawing.Size-int-} +``` +public static Size op_Multiply(Size left, int right) +``` + + +将 [Size](../../com.aspose.drawing/size) 与 `int` 相乘,生成 [Size](../../com.aspose.drawing/size)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| left | [Size](../../com.aspose.drawing/size) | 类型为 [Size](../../com.aspose.drawing/size) 的被乘数。 | +| 右 | int | 类型为 `int` 的乘数。 | + +**Returns:** +[Size](../../com.aspose.drawing/size) - Product of type [Size](../../com.aspose.drawing/size). +### op_Division(Size left, int right) {#op-Division-com.aspose.drawing.Size-int-} +``` +public static Size op_Division(Size left, int right) +``` + + +将 [Size](../../com.aspose.drawing/size) 除以 `int`,生成 [Size](../../com.aspose.drawing/size)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| left | [Size](../../com.aspose.drawing/size) | 被除数的类型为 [Size](../../com.aspose.drawing/size)。 | +| 右 | int | 除数的类型为 `int`。 | + +**Returns:** +[Size](../../com.aspose.drawing/size) - Result of type [Size](../../com.aspose.drawing/size). +### op_Multiply(float left, Size right) {#op-Multiply-float-com.aspose.drawing.Size-} +``` +public static SizeF op_Multiply(float left, Size right) +``` + + +将 [Size](../../com.aspose.drawing/size) 与 `float` 相乘,生成 [SizeF](../../com.aspose.drawing/sizef)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 左 | 浮点数 | 乘数的类型为 `float`。 | +| right | [Size](../../com.aspose.drawing/size) | 类型为 [Size](../../com.aspose.drawing/size) 的被乘数。 | + +**Returns:** +[SizeF](../../com.aspose.drawing/sizef) - Product of type [SizeF](../../com.aspose.drawing/sizef). +### op_Multiply(Size left, float right) {#op-Multiply-com.aspose.drawing.Size-float-} +``` +public static SizeF op_Multiply(Size left, float right) +``` + + +将 [Size](../../com.aspose.drawing/size) 与 `float` 相乘,生成 [SizeF](../../com.aspose.drawing/sizef)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| left | [Size](../../com.aspose.drawing/size) | 类型为 [Size](../../com.aspose.drawing/size) 的被乘数。 | +| 右 | 浮点数 | 乘数的类型为 `float`。 | + +**Returns:** +[SizeF](../../com.aspose.drawing/sizef) - Product of type [SizeF](../../com.aspose.drawing/sizef). +### op_Division(Size left, float right) {#op-Division-com.aspose.drawing.Size-float-} +``` +public static SizeF op_Division(Size left, float right) +``` + + +将 [Size](../../com.aspose.drawing/size) 除以 `float`,生成 [SizeF](../../com.aspose.drawing/sizef)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| left | [Size](../../com.aspose.drawing/size) | 被除数的类型为 [Size](../../com.aspose.drawing/size)。 | +| 右 | 浮点数 | 除数的类型为 `int`。 | + +**Returns:** +[SizeF](../../com.aspose.drawing/sizef) - Result of type [SizeF](../../com.aspose.drawing/sizef). +### op_Equality(Size sz1, Size sz2) {#op-Equality-com.aspose.drawing.Size-com.aspose.drawing.Size-} +``` +public static boolean op_Equality(Size sz1, Size sz2) +``` + + +测试两个 [Size](../../com.aspose.drawing/size) 结构是否相等。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| sz1 | [Size](../../com.aspose.drawing/size) | 等号运算符左侧的 [Size](../../com.aspose.drawing/size) 结构。 | +| sz2 | [Size](../../com.aspose.drawing/size) | 等号运算符右侧的 [Size](../../com.aspose.drawing/size) 结构。 | + +**Returns:** +布尔值 - 如果 `sz1` 和 `sz2` 的宽度和高度相等则为 true;否则为 false。 +### op_Inequality(Size sz1, Size sz2) {#op-Inequality-com.aspose.drawing.Size-com.aspose.drawing.Size-} +``` +public static boolean op_Inequality(Size sz1, Size sz2) +``` + + +测试两个 [Size](../../com.aspose.drawing/size) 结构是否不同。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| sz1 | [Size](../../com.aspose.drawing/size) | 不等号运算符左侧的 [Size](../../com.aspose.drawing/size) 结构。 | +| sz2 | [Size](../../com.aspose.drawing/size) | 不等号运算符右侧的 [Size](../../com.aspose.drawing/size) 结构。 | + +**Returns:** +布尔值 - 如果 `sz1` 和 `sz2` 在宽度或高度任意一项上不同则为 true;如果 `sz1` 和 `sz2` 相等则为 false。 +### to_Point(Size size) {#to-Point-com.aspose.drawing.Size-} +``` +public static Point to_Point(Size size) +``` + + +将指定的 [Size](../../com.aspose.drawing/size) 转换为 [Point](../../com.aspose.drawing/point)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| size | [Size](../../com.aspose.drawing/size) | 要转换的 [Size](../../com.aspose.drawing/size)。 | + +**Returns:** +[Point](../../com.aspose.drawing/point) - The [Point](../../com.aspose.drawing/point) structure to which this operator converts. +### add(Size sz1, Size sz2) {#add-com.aspose.drawing.Size-com.aspose.drawing.Size-} +``` +public static Size add(Size sz1, Size sz2) +``` + + +将一个 [Size](../../com.aspose.drawing/size) 结构的宽度和高度加到另一个 [Size](../../com.aspose.drawing/size) 结构的宽度和高度上。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| sz1 | [Size](../../com.aspose.drawing/size) | 要相加的第一个 [Size](../../com.aspose.drawing/size)。 | +| sz2 | [Size](../../com.aspose.drawing/size) | 要相加的第二个 [Size](../../com.aspose.drawing/size)。 | + +**Returns:** +[Size](../../com.aspose.drawing/size) - A [Size](../../com.aspose.drawing/size) structure that is the result of the addition operation. +### ceiling(SizeF value) {#ceiling-com.aspose.drawing.SizeF-} +``` +public static Size ceiling(SizeF value) +``` + + +将指定的 [SizeF](../../com.aspose.drawing/sizef) 结构转换为 [Size](../../com.aspose.drawing/size) 结构,方法是将 [Size](../../com.aspose.drawing/size) 结构的值向上取整到下一个整数。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [SizeF](../../com.aspose.drawing/sizef) | 要转换的 [SizeF](../../com.aspose.drawing/sizef) 结构。 | + +**Returns:** +[Size](../../com.aspose.drawing/size) - The [Size](../../com.aspose.drawing/size) structure this method converts to. +### subtract(Size sz1, Size sz2) {#subtract-com.aspose.drawing.Size-com.aspose.drawing.Size-} +``` +public static Size subtract(Size sz1, Size sz2) +``` + + +从另一个 [Size](../../com.aspose.drawing/size) 结构的宽度和高度中减去一个 [Size](../../com.aspose.drawing/size) 结构的宽度和高度。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| sz1 | [Size](../../com.aspose.drawing/size) | 减法运算符左侧的 [Size](../../com.aspose.drawing/size) 结构。 | +| sz2 | [Size](../../com.aspose.drawing/size) | 减法运算符右侧的 [Size](../../com.aspose.drawing/size) 结构。 | + +**Returns:** +[Size](../../com.aspose.drawing/size) - The [Size](../../com.aspose.drawing/size) that is a result of the subtraction operation. +### truncate(SizeF value) {#truncate-com.aspose.drawing.SizeF-} +``` +public static Size truncate(SizeF value) +``` + + +将指定的 [SizeF](../../com.aspose.drawing/sizef) 结构转换为 [Size](../../com.aspose.drawing/size) 结构,方法是将 [SizeF](../../com.aspose.drawing/sizef) 结构的值截断到下一个较低的整数。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [SizeF](../../com.aspose.drawing/sizef) | 要转换的 [SizeF](../../com.aspose.drawing/sizef) 结构。 | + +**Returns:** +[Size](../../com.aspose.drawing/size) - The [Size](../../com.aspose.drawing/size) structure this method converts to. +### round(SizeF value) {#round-com.aspose.drawing.SizeF-} +``` +public static Size round(SizeF value) +``` + + +将指定的 [SizeF](../../com.aspose.drawing/sizef) 结构转换为 [Size](../../com.aspose.drawing/size) 结构,方法是将 [SizeF](../../com.aspose.drawing/sizef) 结构的值四舍五入到最近的整数。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [SizeF](../../com.aspose.drawing/sizef) | 要转换的 [SizeF](../../com.aspose.drawing/sizef) 结构。 | + +**Returns:** +[Size](../../com.aspose.drawing/size) - The [Size](../../com.aspose.drawing/size) structure this method converts to. +### isEquals(Size obj1, Size obj2) {#isEquals-com.aspose.drawing.Size-com.aspose.drawing.Size-} +``` +public static boolean isEquals(Size obj1, Size obj2) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| obj1 | [Size](../../com.aspose.drawing/size) | | +| obj2 | [Size](../../com.aspose.drawing/size) | | + +**Returns:** +布尔型 +### getEmpty() {#getEmpty--} +``` +public static Size getEmpty() +``` + + + + +**Returns:** +[Size](../../com.aspose.drawing/size) +### isEmpty() {#isEmpty--} +``` +public final boolean isEmpty() +``` + + +获取一个值,指示此 [Size](../../com.aspose.drawing/size) 的宽度和高度是否为 0。 + +**Returns:** +布尔值 - 指示此 [Size](../../com.aspose.drawing/size) 的宽度和高度是否为 0 的值。 +### getWidth() {#getWidth--} +``` +public final int getWidth() +``` + + +获取此 [Size](../../com.aspose.drawing/size) 的水平分量。 + +**Returns:** +int - 此 [Size](../../com.aspose.drawing/size) 的水平分量。 +### setWidth(int value) {#setWidth-int-} +``` +public final void setWidth(int value) +``` + + +设置此 [Size](../../com.aspose.drawing/size) 的水平分量。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | 此 [Size](../../com.aspose.drawing/size) 的水平分量。 | + +### getHeight() {#getHeight--} +``` +public final int getHeight() +``` + + +获取此 [Size](../../com.aspose.drawing/size) 的垂直分量。 + +**Returns:** +int - 此 [Size](../../com.aspose.drawing/size) 的垂直分量。 +### setHeight(int value) {#setHeight-int-} +``` +public final void setHeight(int value) +``` + + +设置此 [Size](../../com.aspose.drawing/size) 的垂直分量。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | 此 [Size](../../com.aspose.drawing/size) 的垂直分量。 | + +### equals(Object obj) {#equals-java.lang.Object-} +``` +public boolean equals(Object obj) +``` + + +测试指定的对象是否为具有与此 [Size](../../com.aspose.drawing/size) 相同尺寸的 [Size](../../com.aspose.drawing/size)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| obj | java.lang.Object | 要测试的对象。 | + +**Returns:** +布尔值 - 如果 `obj` 是一个 [Size](../../com.aspose.drawing/size) 并且其宽度和高度与此 [Size](../../com.aspose.drawing/size) 相同则为 true;否则为 false。 +### hashCode() {#hashCode--} +``` +public int hashCode() +``` + + +返回此 [Size](../../com.aspose.drawing/size) 结构的哈希码。 + +**Returns:** +int - 指定此 [Size](../../com.aspose.drawing/size) 结构的哈希值的整数。 +### toString() {#toString--} +``` +public String toString() +``` + + + + +**Returns:** +java.lang.String +### equals(Size other) {#equals-com.aspose.drawing.Size-} +``` +public final boolean equals(Size other) +``` + + +测试另一个 [Size](../../com.aspose.drawing/size) 结构是否与此 [Size](../../com.aspose.drawing/size) 结构具有相同的大小。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| other | [Size](../../com.aspose.drawing/size) | 要测试的其他尺寸 | + +**Returns:** +布尔值 - 如果其他 [Size](../../com.aspose.drawing/size) 结构及其 Width 和 Height 属性等于此 [Size](../../com.aspose.drawing/size) 结构的相应属性,则此方法返回 `true`;否则返回 `false`。 +### CloneTo(Size that) {#CloneTo-com.aspose.drawing.Size-} +``` +public void CloneTo(Size that) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| that | [Size](../../com.aspose.drawing/size) | | + +### Clone() {#Clone--} +``` +public Size Clone() +``` + + + + +**Returns:** +[Size](../../com.aspose.drawing/size) +### clone() {#clone--} +``` +public Size clone() +``` + + + + +**Returns:** +[Size](../../com.aspose.drawing/size) diff --git a/chinese/java/com.aspose.drawing/sizef/_index.md b/chinese/java/com.aspose.drawing/sizef/_index.md new file mode 100644 index 000000000..548f9b561 --- /dev/null +++ b/chinese/java/com.aspose.drawing/sizef/_index.md @@ -0,0 +1,446 @@ +--- +title: SizeF +second_title: Aspose.Drawing for Java API 参考 +description: 存储一对有序的浮点数,通常表示矩形的宽度和高度。 +type: docs +weight: 43 +url: /zh/java/com.aspose.drawing/sizef/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.lang.Struct + +**All Implemented Interfaces:** +com.aspose.ms.System.IEquatable, java.lang.Cloneable +``` +public class SizeF extends Struct implements System.IEquatable, Cloneable +``` + +存储一对浮点数,通常表示矩形的宽度和高度。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [SizeF()](#SizeF--) | | +| [SizeF(float width, float height)](#SizeF-float-float-) | 使用指定的尺寸初始化 SizeF 结构的新实例。 | +| [SizeF(PointF pt)](#SizeF-com.aspose.drawing.PointF-) | 初始化 [SizeF](../../com.aspose.drawing/sizef) 结构的新实例。 | +| [SizeF(SizeF size)](#SizeF-com.aspose.drawing.SizeF-) | 初始化 [SizeF](../../com.aspose.drawing/sizef) 结构的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [op_Equality(SizeF sz1, SizeF sz2)](#op-Equality-com.aspose.drawing.SizeF-com.aspose.drawing.SizeF-) | 测试两个 [SizeF](../../com.aspose.drawing/sizef) 结构是否相等。 | +| [op_Inequality(SizeF sz1, SizeF sz2)](#op-Inequality-com.aspose.drawing.SizeF-com.aspose.drawing.SizeF-) | 测试两个 [SizeF](../../com.aspose.drawing/sizef) 结构是否不同。 | +| [add(SizeF sz1, SizeF sz2)](#add-com.aspose.drawing.SizeF-com.aspose.drawing.SizeF-) | 将一个 [SizeF](../../com.aspose.drawing/sizef) 结构的宽度和高度加到另一个 [SizeF](../../com.aspose.drawing/sizef) 结构的宽度和高度上。 | +| [subtract(SizeF sz1, SizeF sz2)](#subtract-com.aspose.drawing.SizeF-com.aspose.drawing.SizeF-) | 从另一个 [SizeF](../../com.aspose.drawing/sizef) 结构的宽度和高度中减去一个 [SizeF](../../com.aspose.drawing/sizef) 结构的宽度和高度。 | +| [op_Addition(SizeF sz1, SizeF sz2)](#op-Addition-com.aspose.drawing.SizeF-com.aspose.drawing.SizeF-) | 将一个 [SizeF](../../com.aspose.drawing/sizef) 结构的宽度和高度加到另一个 [SizeF](../../com.aspose.drawing/sizef) 结构的宽度和高度上。 | +| [op_Subtraction(SizeF sz1, SizeF sz2)](#op-Subtraction-com.aspose.drawing.SizeF-com.aspose.drawing.SizeF-) | 从另一个 [SizeF](../../com.aspose.drawing/sizef) 结构的宽度和高度中减去一个 [SizeF](../../com.aspose.drawing/sizef) 结构的宽度和高度。 | +| [op_Multiply(float left, SizeF right)](#op-Multiply-float-com.aspose.drawing.SizeF-) | 将 [SizeF](../../com.aspose.drawing/sizef) 乘以 `float`,生成 [SizeF](../../com.aspose.drawing/sizef)。 | +| [op_Multiply(SizeF left, float right)](#op-Multiply-com.aspose.drawing.SizeF-float-) | 将 [SizeF](../../com.aspose.drawing/sizef) 乘以 `float`,生成 [SizeF](../../com.aspose.drawing/sizef)。 | +| [op_Division(SizeF left, float right)](#op-Division-com.aspose.drawing.SizeF-float-) | 将 [SizeF](../../com.aspose.drawing/sizef) 除以 `float`,生成 [SizeF](../../com.aspose.drawing/sizef)。 | +| [to_PointF(SizeF size)](#to-PointF-com.aspose.drawing.SizeF-) | | +| [isEquals(SizeF obj1, SizeF obj2)](#isEquals-com.aspose.drawing.SizeF-com.aspose.drawing.SizeF-) | | +| [getEmpty()](#getEmpty--) | | +| [isEmpty()](#isEmpty--) | 获取一个值,指示此 [SizeF](../../com.aspose.drawing/sizef) 结构是否具有宽度和高度为零。 | +| [getWidth()](#getWidth--) | 获取此 SizeF 结构的水平分量。 | +| [setWidth(float value)](#setWidth-float-) | 设置此 SizeF 结构的水平分量。 | +| [getHeight()](#getHeight--) | 获取此 SizeF 结构的垂直分量。 | +| [setHeight(float value)](#setHeight-float-) | 设置此 SizeF 结构的垂直分量。 | +| [hashCode()](#hashCode--) | 返回此 [SizeF](../../com.aspose.drawing/sizef) 结构的哈希码。 | +| [toString()](#toString--) | | +| [equals(Object obj)](#equals-java.lang.Object-) | 测试指定的对象是否为具有与此 [SizeF](../../com.aspose.drawing/sizef) 结构相同尺寸的 [SizeF](../../com.aspose.drawing/sizef) 结构。 | +| [toSize()](#toSize--) | 将 [SizeF](../../com.aspose.drawing/sizef) 结构转换为 [Size](../../com.aspose.drawing/size) 结构。 | +| [toPointF()](#toPointF--) | 将 [SizeF](../../com.aspose.drawing/sizef) 结构转换为 [PointF](../../com.aspose.drawing/pointf) 结构。 | +| [equals(SizeF other)](#equals-com.aspose.drawing.SizeF-) | 测试另一个 [SizeF](../../com.aspose.drawing/sizef) 结构是否具有与此 [SizeF](../../com.aspose.drawing/sizef) 结构相同的大小。 | +| [CloneTo(SizeF that)](#CloneTo-com.aspose.drawing.SizeF-) | | +| [Clone()](#Clone--) | | +| [clone()](#clone--) | | +### SizeF() {#SizeF--} +``` +public SizeF() +``` + + +### SizeF(float width, float height) {#SizeF-float-float-} +``` +public SizeF(float width, float height) +``` + + +使用指定的尺寸初始化 SizeF 结构的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 宽度 | 浮点数 | 新 SizeF 结构的宽度分量。 | +| 高度 | 浮点数 | 新 SizeF 结构的高度分量。 | + +### SizeF(PointF pt) {#SizeF-com.aspose.drawing.PointF-} +``` +public SizeF(PointF pt) +``` + + +初始化 [SizeF](../../com.aspose.drawing/sizef) 结构的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| pt | [PointF](../../com.aspose.drawing/pointf) | 用于初始化此 [SizeF](../../com.aspose.drawing/sizef) 结构的 [PointF](../../com.aspose.drawing/pointf) 结构。 | + +### SizeF(SizeF size) {#SizeF-com.aspose.drawing.SizeF-} +``` +public SizeF(SizeF size) +``` + + +初始化 [SizeF](../../com.aspose.drawing/sizef) 结构的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| size | [SizeF](../../com.aspose.drawing/sizef) | 用于创建新 [SizeF](../../com.aspose.drawing/sizef) 结构的 [SizeF](../../com.aspose.drawing/sizef) 结构。 | + +### op_Equality(SizeF sz1, SizeF sz2) {#op-Equality-com.aspose.drawing.SizeF-com.aspose.drawing.SizeF-} +``` +public static boolean op_Equality(SizeF sz1, SizeF sz2) +``` + + +测试两个 [SizeF](../../com.aspose.drawing/sizef) 结构是否相等。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| sz1 | [SizeF](../../com.aspose.drawing/sizef) | 等号运算符左侧的 [SizeF](../../com.aspose.drawing/sizef) 结构。 | +| sz2 | [SizeF](../../com.aspose.drawing/sizef) | 等号运算符右侧的 [SizeF](../../com.aspose.drawing/sizef) 结构。 | + +**Returns:** +boolean - 如果 `sz1` 和 `sz2` 的宽度和高度相等,则此运算符返回 true;否则返回 false。 +### op_Inequality(SizeF sz1, SizeF sz2) {#op-Inequality-com.aspose.drawing.SizeF-com.aspose.drawing.SizeF-} +``` +public static boolean op_Inequality(SizeF sz1, SizeF sz2) +``` + + +测试两个 [SizeF](../../com.aspose.drawing/sizef) 结构是否不同。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| sz1 | [SizeF](../../com.aspose.drawing/sizef) | 不等号运算符左侧的 [SizeF](../../com.aspose.drawing/sizef) 结构。 | +| sz2 | [SizeF](../../com.aspose.drawing/sizef) | 不等号运算符右侧的 [SizeF](../../com.aspose.drawing/sizef) 结构。 | + +**Returns:** +boolean - 如果 `sz1` 和 `sz2` 在宽度或高度任一方面不同,则此运算符返回 true;如果 `sz1` 和 `sz2` 相等,则返回 false。 +### add(SizeF sz1, SizeF sz2) {#add-com.aspose.drawing.SizeF-com.aspose.drawing.SizeF-} +``` +public static SizeF add(SizeF sz1, SizeF sz2) +``` + + +将一个 [SizeF](../../com.aspose.drawing/sizef) 结构的宽度和高度加到另一个 [SizeF](../../com.aspose.drawing/sizef) 结构的宽度和高度上。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| sz1 | [SizeF](../../com.aspose.drawing/sizef) | 要相加的第一个 [SizeF](../../com.aspose.drawing/sizef) 结构。 | +| sz2 | [SizeF](../../com.aspose.drawing/sizef) | 要相加的第二个 [SizeF](../../com.aspose.drawing/sizef) 结构。 | + +**Returns:** +[SizeF](../../com.aspose.drawing/sizef) - A [SizeF](../../com.aspose.drawing/sizef) structure that is the result of the addition operation. +### subtract(SizeF sz1, SizeF sz2) {#subtract-com.aspose.drawing.SizeF-com.aspose.drawing.SizeF-} +``` +public static SizeF subtract(SizeF sz1, SizeF sz2) +``` + + +从另一个 [SizeF](../../com.aspose.drawing/sizef) 结构的宽度和高度中减去一个 [SizeF](../../com.aspose.drawing/sizef) 结构的宽度和高度。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| sz1 | [SizeF](../../com.aspose.drawing/sizef) | 减法运算符左侧的 [SizeF](../../com.aspose.drawing/sizef) 结构。 | +| sz2 | [SizeF](../../com.aspose.drawing/sizef) | 减法运算符右侧的 [SizeF](../../com.aspose.drawing/sizef) 结构。 | + +**Returns:** +[SizeF](../../com.aspose.drawing/sizef) - A [SizeF](../../com.aspose.drawing/sizef) structure that is a result of the subtraction operation. +### op_Addition(SizeF sz1, SizeF sz2) {#op-Addition-com.aspose.drawing.SizeF-com.aspose.drawing.SizeF-} +``` +public static SizeF op_Addition(SizeF sz1, SizeF sz2) +``` + + +将一个 [SizeF](../../com.aspose.drawing/sizef) 结构的宽度和高度加到另一个 [SizeF](../../com.aspose.drawing/sizef) 结构的宽度和高度上。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| sz1 | [SizeF](../../com.aspose.drawing/sizef) | 要相加的第一个 [SizeF](../../com.aspose.drawing/sizef) 结构。 | +| sz2 | [SizeF](../../com.aspose.drawing/sizef) | 要相加的第二个 [SizeF](../../com.aspose.drawing/sizef) 结构。 | + +**Returns:** +[SizeF](../../com.aspose.drawing/sizef) - A [Size](../../com.aspose.drawing/size) structure that is the result of the addition operation. +### op_Subtraction(SizeF sz1, SizeF sz2) {#op-Subtraction-com.aspose.drawing.SizeF-com.aspose.drawing.SizeF-} +``` +public static SizeF op_Subtraction(SizeF sz1, SizeF sz2) +``` + + +从另一个 [SizeF](../../com.aspose.drawing/sizef) 结构的宽度和高度中减去一个 [SizeF](../../com.aspose.drawing/sizef) 结构的宽度和高度。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| sz1 | [SizeF](../../com.aspose.drawing/sizef) | 减法运算符左侧的 [SizeF](../../com.aspose.drawing/sizef) 结构。 | +| sz2 | [SizeF](../../com.aspose.drawing/sizef) | 减法运算符右侧的 [SizeF](../../com.aspose.drawing/sizef) 结构。 | + +**Returns:** +[SizeF](../../com.aspose.drawing/sizef) - A [SizeF](../../com.aspose.drawing/sizef) that is the result of the subtraction operation. +### op_Multiply(float left, SizeF right) {#op-Multiply-float-com.aspose.drawing.SizeF-} +``` +public static SizeF op_Multiply(float left, SizeF right) +``` + + +将 [SizeF](../../com.aspose.drawing/sizef) 乘以 `float`,生成 [SizeF](../../com.aspose.drawing/sizef)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 左 | 浮点数 | 乘数的类型为 `float`。 | +| right | [SizeF](../../com.aspose.drawing/sizef) | 乘数类型为 [SizeF](../../com.aspose.drawing/sizef)。 | + +**Returns:** +[SizeF](../../com.aspose.drawing/sizef) - Product of type [SizeF](../../com.aspose.drawing/sizef). +### op_Multiply(SizeF left, float right) {#op-Multiply-com.aspose.drawing.SizeF-float-} +``` +public static SizeF op_Multiply(SizeF left, float right) +``` + + +将 [SizeF](../../com.aspose.drawing/sizef) 乘以 `float`,生成 [SizeF](../../com.aspose.drawing/sizef)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| left | [SizeF](../../com.aspose.drawing/sizef) | 乘数类型为 [SizeF](../../com.aspose.drawing/sizef)。 | +| 右 | 浮点数 | 乘数的类型为 `float`。 | + +**Returns:** +[SizeF](../../com.aspose.drawing/sizef) - Product of type [SizeF](../../com.aspose.drawing/sizef). +### op_Division(SizeF left, float right) {#op-Division-com.aspose.drawing.SizeF-float-} +``` +public static SizeF op_Division(SizeF left, float right) +``` + + +将 [SizeF](../../com.aspose.drawing/sizef) 除以 `float`,生成 [SizeF](../../com.aspose.drawing/sizef)。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| left | [SizeF](../../com.aspose.drawing/sizef) | 被除数类型为 [SizeF](../../com.aspose.drawing/sizef)。 | +| 右 | 浮点数 | 除数的类型为 `int`。 | + +**Returns:** +[SizeF](../../com.aspose.drawing/sizef) - Result of type [SizeF](../../com.aspose.drawing/sizef). +### to_PointF(SizeF size) {#to-PointF-com.aspose.drawing.SizeF-} +``` +public static PointF to_PointF(SizeF size) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| size | [SizeF](../../com.aspose.drawing/sizef) | | + +**Returns:** +[PointF](../../com.aspose.drawing/pointf) +### isEquals(SizeF obj1, SizeF obj2) {#isEquals-com.aspose.drawing.SizeF-com.aspose.drawing.SizeF-} +``` +public static boolean isEquals(SizeF obj1, SizeF obj2) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| obj1 | [SizeF](../../com.aspose.drawing/sizef) | | +| obj2 | [SizeF](../../com.aspose.drawing/sizef) | | + +**Returns:** +布尔型 +### getEmpty() {#getEmpty--} +``` +public static SizeF getEmpty() +``` + + + + +**Returns:** +[SizeF](../../com.aspose.drawing/sizef) +### isEmpty() {#isEmpty--} +``` +public final boolean isEmpty() +``` + + +获取一个值,指示此 [SizeF](../../com.aspose.drawing/sizef) 结构是否具有宽度和高度为零。 + +**Returns:** +boolean - 一个指示此 [SizeF](../../com.aspose.drawing/sizef) 结构是否宽度和高度为零的值。 +### getWidth() {#getWidth--} +``` +public final float getWidth() +``` + + +获取此 SizeF 结构的水平分量。 + +**Returns:** +float - 此 SizeF 结构的水平分量。 +### setWidth(float value) {#setWidth-float-} +``` +public final void setWidth(float value) +``` + + +设置此 SizeF 结构的水平分量。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | 浮点数 | 此 SizeF 结构的水平分量。 | + +### getHeight() {#getHeight--} +``` +public final float getHeight() +``` + + +获取此 SizeF 结构的垂直分量。 + +**Returns:** +float - 此 SizeF 结构的垂直分量。 +### setHeight(float value) {#setHeight-float-} +``` +public final void setHeight(float value) +``` + + +设置此 SizeF 结构的垂直分量。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | 浮点数 | 此 SizeF 结构的垂直分量。 | + +### hashCode() {#hashCode--} +``` +public int hashCode() +``` + + +返回此 [SizeF](../../com.aspose.drawing/sizef) 结构的哈希码。 + +**Returns:** +int - 一个指定此 [SizeF](../../com.aspose.drawing/sizef) 结构哈希值的整数。 +### toString() {#toString--} +``` +public String toString() +``` + + + + +**Returns:** +java.lang.String +### equals(Object obj) {#equals-java.lang.Object-} +``` +public boolean equals(Object obj) +``` + + +测试指定的对象是否为具有与此 [SizeF](../../com.aspose.drawing/sizef) 结构相同尺寸的 [SizeF](../../com.aspose.drawing/sizef) 结构。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| obj | java.lang.Object | 要测试的对象。 | + +**Returns:** +boolean - 如果 obj 是一个 [SizeF](../../com.aspose.drawing/sizef) 且宽度和高度与此 SizeF 相同,则此方法返回 `true`;否则返回 `false`。 +### toSize() {#toSize--} +``` +public final Size toSize() +``` + + +将 [SizeF](../../com.aspose.drawing/sizef) 结构转换为 [Size](../../com.aspose.drawing/size) 结构。 + +**Returns:** +[Size](../../com.aspose.drawing/size) - Returns a [Size](../../com.aspose.drawing/size) structure. +### toPointF() {#toPointF--} +``` +public final PointF toPointF() +``` + + +将 [SizeF](../../com.aspose.drawing/sizef) 结构转换为 [PointF](../../com.aspose.drawing/pointf) 结构。 + +**Returns:** +[PointF](../../com.aspose.drawing/pointf) - Returns a [PointF](../../com.aspose.drawing/pointf) structure. +### equals(SizeF other) {#equals-com.aspose.drawing.SizeF-} +``` +public final boolean equals(SizeF other) +``` + + +测试另一个 [SizeF](../../com.aspose.drawing/sizef) 结构是否具有与此 [SizeF](../../com.aspose.drawing/sizef) 结构相同的大小。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| other | [SizeF](../../com.aspose.drawing/sizef) | 要测试的其他尺寸 | + +**Returns:** +boolean - 如果 other [SizeF](../../com.aspose.drawing/sizef) 结构及其 Width 和 Height 属性等于此 [SizeF](../../com.aspose.drawing/sizef) 结构的相应属性,则此方法返回 `true`;否则返回 `false`。 +### CloneTo(SizeF that) {#CloneTo-com.aspose.drawing.SizeF-} +``` +public void CloneTo(SizeF that) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| that | [SizeF](../../com.aspose.drawing/sizef) | | + +### Clone() {#Clone--} +``` +public SizeF Clone() +``` + + + + +**Returns:** +[SizeF](../../com.aspose.drawing/sizef) +### clone() {#clone--} +``` +public Object clone() +``` + + + + +**Returns:** +java.lang.Object diff --git a/chinese/java/com.aspose.drawing/solidbrush/_index.md b/chinese/java/com.aspose.drawing/solidbrush/_index.md new file mode 100644 index 000000000..23577e499 --- /dev/null +++ b/chinese/java/com.aspose.drawing/solidbrush/_index.md @@ -0,0 +1,73 @@ +--- +title: SolidBrush +second_title: Aspose.Drawing for Java API 参考 +description: 定义单色画刷。 +type: docs +weight: 44 +url: /zh/java/com.aspose.drawing/solidbrush/ +--- +**Inheritance:** +java.lang.Object, [com.aspose.drawing.Brush](../../com.aspose.drawing/brush) +``` +public class SolidBrush extends Brush +``` + +定义一种单色画刷。画刷用于填充图形形状,例如矩形、椭圆、饼图、多边形和路径。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [SolidBrush(Color color)](#SolidBrush-com.aspose.drawing.Color-) | 初始化 [SolidBrush](../../com.aspose.drawing/solidbrush) 类的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getColor()](#getColor--) | 获取此 SolidBrush 对象的颜色。 | +| [setColor(Color value)](#setColor-com.aspose.drawing.Color-) | 设置此 SolidBrush 对象的颜色。 | +| [deepClone()](#deepClone--) | 创建此 [SolidBrush](../../com.aspose.drawing/solidbrush) 对象的精确副本。 | +### SolidBrush(Color color) {#SolidBrush-com.aspose.drawing.Color-} +``` +public SolidBrush(Color color) +``` + + +初始化 [SolidBrush](../../com.aspose.drawing/solidbrush) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| color | [Color](../../com.aspose.drawing/color) | 表示此画刷颜色的 Color 结构。 | + +### getColor() {#getColor--} +``` +public final Color getColor() +``` + + +获取此 SolidBrush 对象的颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - the color of this SolidBrush object. +### setColor(Color value) {#setColor-com.aspose.drawing.Color-} +``` +public final void setColor(Color value) +``` + + +设置此 SolidBrush 对象的颜色。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [Color](../../com.aspose.drawing/color) | 此 SolidBrush 对象的颜色。 | + +### deepClone() {#deepClone--} +``` +public Object deepClone() +``` + + +创建此 [SolidBrush](../../com.aspose.drawing/solidbrush) 对象的精确副本。 + +**Returns:** +java.lang.Object - 此方法创建的 [SolidBrush](../../com.aspose.drawing/solidbrush) 对象。 diff --git a/chinese/java/com.aspose.drawing/stringalignment/_index.md b/chinese/java/com.aspose.drawing/stringalignment/_index.md new file mode 100644 index 000000000..26716fbd5 --- /dev/null +++ b/chinese/java/com.aspose.drawing/stringalignment/_index.md @@ -0,0 +1,46 @@ +--- +title: StringAlignment +second_title: Aspose.Drawing for Java API 参考 +description: 指定文本字符串相对于其布局矩形的对齐方式。 +type: docs +weight: 45 +url: /zh/java/com.aspose.drawing/stringalignment/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class StringAlignment extends System.Enum +``` + +指定文本字符串相对于其布局矩形的对齐方式。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [Near](#Near) | 指定文本在布局附近对齐。 | +| [Center](#Center) | 指定文本在布局矩形的中心对齐。 | +| [Far](#Far) | 指定文本在布局矩形的原点位置远端对齐。 | +### Near {#Near} +``` +public static final int Near +``` + + +指定文本在布局附近对齐。在从左到右的布局中,近端位置在左侧;在从右到左的布局中,近端位置在右侧。 + +### Center {#Center} +``` +public static final int Center +``` + + +指定文本在布局矩形的中心对齐。 + +### Far {#Far} +``` +public static final int Far +``` + + +指定文本在布局矩形的原点位置远端对齐。在从左到右的布局中,远端位置在右侧;在从右到左的布局中,远端位置在左侧。 + diff --git a/chinese/java/com.aspose.drawing/stringdigitsubstitute/_index.md b/chinese/java/com.aspose.drawing/stringdigitsubstitute/_index.md new file mode 100644 index 000000000..c056fced8 --- /dev/null +++ b/chinese/java/com.aspose.drawing/stringdigitsubstitute/_index.md @@ -0,0 +1,55 @@ +--- +title: StringDigitSubstitute +second_title: Aspose.Drawing for Java API 参考 +description: 该枚举指定如何根据用户的地区设置或语言在字符串中替换数字。 +type: docs +weight: 46 +url: /zh/java/com.aspose.drawing/stringdigitsubstitute/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class StringDigitSubstitute extends System.Enum +``` + +该 [StringDigitSubstitute](../../com.aspose.drawing/stringdigitsubstitute) 枚举指定如何根据用户的地区设置或语言在字符串中替换数字。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [User](#User) | 指定用户自定义的替代方案。 | +| [None](#None) | 指定禁用替代。 | +| [National](#National) | 指定与用户地区的官方国家语言对应的替代数字。 | +| [Traditional](#Traditional) | 指定与用户本土文字或语言对应的替代数字,这可能与用户地区的官方国家语言不同。 | +### User {#User} +``` +public static final int User +``` + + +指定用户自定义的替代方案。 + +### None {#None} +``` +public static final int None +``` + + +指定禁用替代。 + +### National {#National} +``` +public static final int National +``` + + +指定与用户地区的官方国家语言对应的替代数字。 + +### Traditional {#Traditional} +``` +public static final int Traditional +``` + + +指定与用户本土文字或语言对应的替代数字,这可能与用户地区的官方国家语言不同。 + diff --git a/chinese/java/com.aspose.drawing/stringformat/_index.md b/chinese/java/com.aspose.drawing/stringformat/_index.md new file mode 100644 index 000000000..8e13bf255 --- /dev/null +++ b/chinese/java/com.aspose.drawing/stringformat/_index.md @@ -0,0 +1,379 @@ +--- +title: StringFormat +second_title: Aspose.Drawing for Java API 参考 +description: 封装文本布局信息,例如对齐方向、制表位显示以及省略号插入、数字本地化替换和 OpenType 功能等操作。 +type: docs +weight: 47 +url: /zh/java/com.aspose.drawing/stringformat/ +--- +**Inheritance:** +java.lang.Object + +**All Implemented Interfaces:** +com.aspose.ms.System.IDisposable +``` +public final class StringFormat implements System.IDisposable +``` + +封装文本布局信息(例如对齐、方向和制表位)、显示操作(例如省略号插入和本地数字替换)以及 OpenType 功能。此类不可被继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [StringFormat()](#StringFormat--) | 初始化一个新的 [StringFormat](../../com.aspose.drawing/stringformat) 类实例。 | +| [StringFormat(StringFormat format)](#StringFormat-com.aspose.drawing.StringFormat-) | 从指定的现有 [StringFormat](../../com.aspose.drawing/stringformat) 对象初始化一个新的 [StringFormat](../../com.aspose.drawing/stringformat) 类实例。 | +| [StringFormat(int options, int language)](#StringFormat-int-int-) | 使用指定的 [StringFormatFlags](../../com.aspose.drawing/stringformatflags) 枚举和语言初始化一个新的 [StringFormat](../../com.aspose.drawing/stringformat) 类实例。 | +| [StringFormat(int options)](#StringFormat-int-) | 使用指定的 [StringFormatFlags](../../com.aspose.drawing/stringformatflags) 枚举初始化一个新的 [StringFormat](../../com.aspose.drawing/stringformat) 类实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [setDigitSubstitutionLanguage(int value)](#setDigitSubstitutionLanguage-int-) | | +| [setDigitSubstitutionMethod(int value)](#setDigitSubstitutionMethod-int-) | | +| [getFirstTabOffset()](#getFirstTabOffset--) | | +| [getGenericDefault()](#getGenericDefault--) | 获取一个通用的默认 [StringFormat](../../com.aspose.drawing/stringformat) 对象。 | +| [getGenericTypographic()](#getGenericTypographic--) | 获取一个通用的排版 [StringFormat](../../com.aspose.drawing/stringformat) 对象。 | +| [getFormatFlags()](#getFormatFlags--) | 获取或设置包含格式信息的 [StringFormatFlags](../../com.aspose.drawing/stringformatflags) 枚举。 | +| [setFormatFlags(int value)](#setFormatFlags-int-) | 获取或设置包含格式信息的 [StringFormatFlags](../../com.aspose.drawing/stringformatflags) 枚举。 | +| [getAlignment()](#getAlignment--) | 获取或设置垂直平面上的文本对齐信息。 | +| [setAlignment(int value)](#setAlignment-int-) | 获取或设置垂直平面上的文本对齐信息。 | +| [getLineAlignment()](#getLineAlignment--) | 获取或设置水平平面上的行对齐方式。 | +| [setLineAlignment(int value)](#setLineAlignment-int-) | 获取或设置水平平面上的行对齐方式。 | +| [getHotkeyPrefix()](#getHotkeyPrefix--) | 获取或设置此 [StringFormat](../../com.aspose.drawing/stringformat) 对象的 `HotkeyPrefix`([.getHotkeyPrefix](../../null/\\#getHotkeyPrefix)/[.setHotkeyPrefix(int)](../../null/\\#setHotkeyPrefix-int-))对象。 | +| [setHotkeyPrefix(int value)](#setHotkeyPrefix-int-) | 获取或设置此 [StringFormat](../../com.aspose.drawing/stringformat) 对象的 `HotkeyPrefix`([.getHotkeyPrefix](../../null/\\#getHotkeyPrefix)/[.setHotkeyPrefix(int)](../../null/\\#setHotkeyPrefix-int-))对象。 | +| [getTrimming()](#getTrimming--) | 获取或设置此 [StringFormat](../../com.aspose.drawing/stringformat) 对象的 [StringTrimming](../../com.aspose.drawing/stringtrimming) 枚举。 | +| [setTrimming(int value)](#setTrimming-int-) | 获取或设置此 [StringFormat](../../com.aspose.drawing/stringformat) 对象的 [StringTrimming](../../com.aspose.drawing/stringtrimming) 枚举。 | +| [getDigitSubstitutionLanguage()](#getDigitSubstitutionLanguage--) | 获取在本地数字替换为西方数字时使用的语言。 | +| [getDigitSubstitutionMethod()](#getDigitSubstitutionMethod--) | 获取用于数字替换的方法。 | +| [dispose()](#dispose--) | 释放此 [StringFormat](../../com.aspose.drawing/stringformat) 对象使用的所有资源。 | +| [deepClone()](#deepClone--) | 创建此 [StringFormat](../../com.aspose.drawing/stringformat) 对象的精确副本。 | +| [getTabStops(float[] firstTabOffset)](#getTabStops-float---) | 获取此 [StringFormat](../../com.aspose.drawing/stringformat) 对象的制表位。 | +| [getTabStops()](#getTabStops--) | 获取一个数组,包含制表位之间的距离,单位由 `Aspose.Imaging.getGraphics().PageUnit` 属性指定。 | +| [setTabStops(float firstTabOffset, float[] tabStops)](#setTabStops-float-float---) | 为此 [StringFormat](../../com.aspose.drawing/stringformat) 对象设置制表位。 | +| [setDigitSubstitution(int language, int substitute)](#setDigitSubstitution-int-int-) | 指定在本地数字替换为西方数字时使用的语言和方法。 | +| [setMeasurableCharacterRanges(CharacterRange[] ranges)](#setMeasurableCharacterRanges-com.aspose.drawing.CharacterRange---) | 指定一个 [CharacterRange](../../com.aspose.drawing/characterrange) 结构数组,表示通过调用 `MeasureCharacterRanges` 方法测量的字符范围。 | +### StringFormat() {#StringFormat--} +``` +public StringFormat() +``` + + +初始化一个新的 [StringFormat](../../com.aspose.drawing/stringformat) 类实例。 + +### StringFormat(StringFormat format) {#StringFormat-com.aspose.drawing.StringFormat-} +``` +public StringFormat(StringFormat format) +``` + + +从指定的现有 [StringFormat](../../com.aspose.drawing/stringformat) 对象初始化一个新的 [StringFormat](../../com.aspose.drawing/stringformat) 类实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| format | [StringFormat](../../com.aspose.drawing/stringformat) | 用于初始化新 [StringFormat](../../com.aspose.drawing/stringformat) 对象的 [StringFormat](../../com.aspose.drawing/stringformat) 对象。 | + +### StringFormat(int options, int language) {#StringFormat-int-int-} +``` +public StringFormat(int options, int language) +``` + + +使用指定的 [StringFormatFlags](../../com.aspose.drawing/stringformatflags) 枚举和语言初始化一个新的 [StringFormat](../../com.aspose.drawing/stringformat) 类实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| options | int | 新 [StringFormat](../../com.aspose.drawing/stringformat) 对象的 [StringFormatFlags](../../com.aspose.drawing/stringformatflags) 枚举。 | +| 语言 | int | 指示文本语言的值。 | + +### StringFormat(int options) {#StringFormat-int-} +``` +public StringFormat(int options) +``` + + +使用指定的 [StringFormatFlags](../../com.aspose.drawing/stringformatflags) 枚举初始化一个新的 [StringFormat](../../com.aspose.drawing/stringformat) 类实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| options | int | 新 [StringFormat](../../com.aspose.drawing/stringformat) 对象的 [StringFormatFlags](../../com.aspose.drawing/stringformatflags) 枚举。 | + +### setDigitSubstitutionLanguage(int value) {#setDigitSubstitutionLanguage-int-} +``` +public void setDigitSubstitutionLanguage(int value) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | | + +### setDigitSubstitutionMethod(int value) {#setDigitSubstitutionMethod-int-} +``` +public void setDigitSubstitutionMethod(int value) +``` + + + + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | | + +### getFirstTabOffset() {#getFirstTabOffset--} +``` +public float getFirstTabOffset() +``` + + + + +**Returns:** +浮点数 +### getGenericDefault() {#getGenericDefault--} +``` +public static StringFormat getGenericDefault() +``` + + +获取一个通用的默认 [StringFormat](../../com.aspose.drawing/stringformat) 对象。 + +**Returns:** +[StringFormat](../../com.aspose.drawing/stringformat) +### getGenericTypographic() {#getGenericTypographic--} +``` +public static StringFormat getGenericTypographic() +``` + + +获取一个通用的排版 [StringFormat](../../com.aspose.drawing/stringformat) 对象。 + +**Returns:** +[StringFormat](../../com.aspose.drawing/stringformat) - A generic typographic [StringFormat](../../com.aspose.drawing/stringformat) object. +### getFormatFlags() {#getFormatFlags--} +``` +public int getFormatFlags() +``` + + +获取或设置包含格式信息的 [StringFormatFlags](../../com.aspose.drawing/stringformatflags) 枚举。 + +**Returns:** +int +### setFormatFlags(int value) {#setFormatFlags-int-} +``` +public void setFormatFlags(int value) +``` + + +获取或设置包含格式信息的 [StringFormatFlags](../../com.aspose.drawing/stringformatflags) 枚举。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | | + +### getAlignment() {#getAlignment--} +``` +public int getAlignment() +``` + + +获取或设置垂直平面上的文本对齐信息。 + +**Returns:** +int +### setAlignment(int value) {#setAlignment-int-} +``` +public void setAlignment(int value) +``` + + +获取或设置垂直平面上的文本对齐信息。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | | + +### getLineAlignment() {#getLineAlignment--} +``` +public int getLineAlignment() +``` + + +获取或设置水平平面上的行对齐方式。 + +**Returns:** +int +### setLineAlignment(int value) {#setLineAlignment-int-} +``` +public void setLineAlignment(int value) +``` + + +获取或设置水平平面上的行对齐方式。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | | + +### getHotkeyPrefix() {#getHotkeyPrefix--} +``` +public int getHotkeyPrefix() +``` + + +获取或设置此 [StringFormat](../../com.aspose.drawing/stringformat) 对象的 `HotkeyPrefix`([.getHotkeyPrefix](../../null/\\#getHotkeyPrefix)/[.setHotkeyPrefix(int)](../../null/\\#setHotkeyPrefix-int-))对象。 + +**Returns:** +int +### setHotkeyPrefix(int value) {#setHotkeyPrefix-int-} +``` +public void setHotkeyPrefix(int value) +``` + + +获取或设置此 [StringFormat](../../com.aspose.drawing/stringformat) 对象的 `HotkeyPrefix`([.getHotkeyPrefix](../../null/\\#getHotkeyPrefix)/[.setHotkeyPrefix(int)](../../null/\\#setHotkeyPrefix-int-))对象。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | | + +### getTrimming() {#getTrimming--} +``` +public int getTrimming() +``` + + +获取或设置此 [StringFormat](../../com.aspose.drawing/stringformat) 对象的 [StringTrimming](../../com.aspose.drawing/stringtrimming) 枚举。 + +**Returns:** +int +### setTrimming(int value) {#setTrimming-int-} +``` +public void setTrimming(int value) +``` + + +获取或设置此 [StringFormat](../../com.aspose.drawing/stringformat) 对象的 [StringTrimming](../../com.aspose.drawing/stringtrimming) 枚举。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | | + +### getDigitSubstitutionLanguage() {#getDigitSubstitutionLanguage--} +``` +public int getDigitSubstitutionLanguage() +``` + + +获取在本地数字替换为西方数字时使用的语言。 + +**Returns:** +int - 一个国家语言支持 (NLS) 语言标识符,用于标识在本地数字替换为西方数字时将使用的语言。您可以将 java.util.Locale 对象的 `System.Globalization.CultureInfo.LCID` 属性作为 NLS 语言标识符传递。例如,假设您通过将字符串 "ar-EG" 传递给 java.util.Locale 构造函数来创建一个 java.util.Locale 对象。如果您将该 java.util.Locale 对象的 `System.Globalization.CultureInfo.LCID` 属性与`StringDigitSubstitute.Traditional`一起传递给 [.setDigitSubstitution(int,int)](../../null/\#setDigitSubstitution-int-int-) 方法,则阿拉伯-印度数字将在显示时被替换为西方数字。 +### getDigitSubstitutionMethod() {#getDigitSubstitutionMethod--} +``` +public int getDigitSubstitutionMethod() +``` + + +获取用于数字替换的方法。 + +**Returns:** +int - 一个 [StringDigitSubstitute](../../com.aspose.drawing/stringdigitsubstitute) 枚举值,指定如何替换因当前字体不支持而无法显示的字符串中的字符。 +### dispose() {#dispose--} +``` +public void dispose() +``` + + +释放此 [StringFormat](../../com.aspose.drawing/stringformat) 对象使用的所有资源。 + +### deepClone() {#deepClone--} +``` +public StringFormat deepClone() +``` + + +创建此 [StringFormat](../../com.aspose.drawing/stringformat) 对象的精确副本。 + +**Returns:** +[StringFormat](../../com.aspose.drawing/stringformat) - The [StringFormat](../../com.aspose.drawing/stringformat) object this method creates. +### getTabStops(float[] firstTabOffset) {#getTabStops-float---} +``` +public float[] getTabStops(float[] firstTabOffset) +``` + + +获取此 [StringFormat](../../com.aspose.drawing/stringformat) 对象的制表位。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| firstTabOffset | float[] | 文本行起始位置与第一个制表位之间的空格数。 | + +**Returns:** +float[] - 一个数组,表示制表位之间的距离(以空格数计)。 +### getTabStops() {#getTabStops--} +``` +public float[] getTabStops() +``` + + +获取一个数组,包含制表位之间的距离,单位由 `Aspose.Imaging.getGraphics().PageUnit` 属性指定。 + +**Returns:** +float[] - 制表位。 + +该属性是为已移除的方法 GetTabStops 引入的。 +### setTabStops(float firstTabOffset, float[] tabStops) {#setTabStops-float-float---} +``` +public void setTabStops(float firstTabOffset, float[] tabStops) +``` + + +为此 [StringFormat](../../com.aspose.drawing/stringformat) 对象设置制表位。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| firstTabOffset | 浮点数 | 文本行起始位置与第一个制表位之间的空格数。 | +| tabStops | float[] | 一个数组,表示制表位之间的距离,单位由 Graphics.PageUnit 属性指定。 | + +### setDigitSubstitution(int language, int substitute) {#setDigitSubstitution-int-int-} +``` +public void setDigitSubstitution(int language, int substitute) +``` + + +指定在本地数字替换为西方数字时使用的语言和方法。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 语言 | int | 一个国家语言支持 (NLS) 语言标识符,用于标识在本地数字替换为西方数字时将使用的语言。您可以将 java.util.Locale 对象的 `System.Globalization.CultureInfo.LCID` 属性作为 NLS 语言标识符传递。例如,假设您通过将字符串 `"ar-EG"` 传递给 java.util.Locale 构造函数来创建一个 java.util.Locale 对象。如果您将该 java.util.Locale 对象的 `System.Globalization.CultureInfo.LCID` 属性与 `StringDigitSubstitute.Traditional` 一起传递给 `M:StringFormat.SetDigitSubstitution(System.Int32,StringDigitSubstitute)` 方法,则阿拉伯-印度数字将在显示时被替换为西方数字。 | +| substitute | int | 一个 [StringDigitSubstitute](../../com.aspose.drawing/stringdigitsubstitute) 枚举的元素,指定数字的显示方式。 | + +### setMeasurableCharacterRanges(CharacterRange[] ranges) {#setMeasurableCharacterRanges-com.aspose.drawing.CharacterRange---} +``` +public void setMeasurableCharacterRanges(CharacterRange[] ranges) +``` + + +指定一个 [CharacterRange](../../com.aspose.drawing/characterrange) 结构数组,表示通过调用 `MeasureCharacterRanges` 方法测量的字符范围。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| ranges | [CharacterRange\[\]](../../com.aspose.drawing/characterrange) | 一个 [CharacterRange](../../com.aspose.drawing/characterrange) 结构的数组,指定通过调用 `MeasureCharacterRanges` 方法测量的字符范围。 | + diff --git a/chinese/java/com.aspose.drawing/stringformatflags/_index.md b/chinese/java/com.aspose.drawing/stringformatflags/_index.md new file mode 100644 index 000000000..e2446c957 --- /dev/null +++ b/chinese/java/com.aspose.drawing/stringformatflags/_index.md @@ -0,0 +1,109 @@ +--- +title: StringFormatFlags +second_title: Aspose.Drawing for Java API 参考 +description: 指定文本字符串的显示和布局信息。 +type: docs +weight: 48 +url: /zh/java/com.aspose.drawing/stringformatflags/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class StringFormatFlags extends System.Enum +``` + +指定文本字符串的显示和布局信息。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [DirectionRightToLeft](#DirectionRightToLeft) | 文本从右向左显示。 | +| [DirectionVertical](#DirectionVertical) | 文本垂直对齐。 | +| [FitBlackBox](#FitBlackBox) | 允许字符的部分超出字符串的布局矩形。 | +| [DisplayFormatControl](#DisplayFormatControl) | 诸如左到右标记之类的控制字符在输出中以代表性字形显示。 | +| [NoFontFallback](#NoFontFallback) | 对请求的字体不支持的字符不使用备用字体。 | +| [MeasureTrailingSpaces](#MeasureTrailingSpaces) | 包括每行末尾的尾随空格。 | +| [NoWrap](#NoWrap) | 在矩形内格式化时,行间文本换行被禁用。 | +| [LineLimit](#LineLimit) | 仅在格式化矩形中布局整行文本。 | +| [NoClip](#NoClip) | 允许显示字形的超出部分以及未换行而超出格式化矩形的文本。 | +| [ExactAlignment](#ExactAlignment) | 精确对齐,正确的填充 GDI+ | +### DirectionRightToLeft {#DirectionRightToLeft} +``` +public static final int DirectionRightToLeft +``` + + +文本从右向左显示。 + +### DirectionVertical {#DirectionVertical} +``` +public static final int DirectionVertical +``` + + +文本垂直对齐。 + +### FitBlackBox {#FitBlackBox} +``` +public static final int FitBlackBox +``` + + +允许字符的部分超出字符串的布局矩形。默认情况下,字符会重新定位以避免任何超出。 + +### DisplayFormatControl {#DisplayFormatControl} +``` +public static final int DisplayFormatControl +``` + + +诸如左到右标记之类的控制字符在输出中以代表性字形显示。 + +### NoFontFallback {#NoFontFallback} +``` +public static final int NoFontFallback +``` + + +对请求的字体不支持的字符不使用备用字体。任何缺失的字符将使用字体的缺失字形显示,通常是一个空方块。 + +### MeasureTrailingSpaces {#MeasureTrailingSpaces} +``` +public static final int MeasureTrailingSpaces +``` + + +包括每行末尾的尾随空格。默认情况下,MeasureString 方法返回的边界矩形不包括每行末尾的空格。设置此标志可在测量时包含该空格。 + +### NoWrap {#NoWrap} +``` +public static final int NoWrap +``` + + +在矩形内格式化时,行间文本换行被禁用。当传入点而非矩形,或指定的矩形行长度为零时,此标志默认生效。 + +### LineLimit {#LineLimit} +``` +public static final int LineLimit +``` + + +仅在格式矩形中布局整行文本。默认情况下,布局会持续到文本结束,或直到由于裁剪而没有更多行可见,以先到者为准。请注意,默认设置允许最后一行被格式矩形部分遮挡,而该矩形的高度不是行高的整数倍。为确保只显示完整行,请指定此值,并确保提供的格式矩形高度至少等于一行的高度。 + +### NoClip {#NoClip} +``` +public static final int NoClip +``` + + +允许显示超出格式矩形的字形悬挂部分和未换行的文本。默认情况下,所有超出格式矩形的文本和字形部分都会被裁剪。 + +### ExactAlignment {#ExactAlignment} +``` +public static final int ExactAlignment +``` + + +精确对齐,正确的填充 GDI+ + diff --git a/chinese/java/com.aspose.drawing/stringtrimming/_index.md b/chinese/java/com.aspose.drawing/stringtrimming/_index.md new file mode 100644 index 000000000..10dca1635 --- /dev/null +++ b/chinese/java/com.aspose.drawing/stringtrimming/_index.md @@ -0,0 +1,73 @@ +--- +title: StringTrimming +second_title: Aspose.Drawing for Java API 参考 +description: 指定如何修剪无法完全适应布局形状的字符串中的字符。 +type: docs +weight: 49 +url: /zh/java/com.aspose.drawing/stringtrimming/ +--- +**Inheritance:** +java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum +``` +public final class StringTrimming extends System.Enum +``` + +指定如何修剪无法完全适应布局形状的字符串中的字符。 +## 字段 + +| 字段 | 描述 | +| --- | --- | +| [None](#None) | 指定不进行修剪。 | +| [Character](#Character) | 指定将文本修剪到最近的字符。 | +| [Word](#Word) | 指定将文本修剪到最近的单词。 | +| [EllipsisCharacter](#EllipsisCharacter) | 指定将文本修剪到最近的字符,并在修剪后的行尾插入省略号。 | +| [EllipsisWord](#EllipsisWord) | 指定将文本修剪到最近的单词,并在修剪后的行尾插入省略号。 | +| [EllipsisPath](#EllipsisPath) | 从修剪的行中删除中间部分,并用省略号替代。 | +### None {#None} +``` +public static final int None +``` + + +指定不进行修剪。 + +### Character {#Character} +``` +public static final int Character +``` + + +指定将文本修剪到最近的字符。 + +### Word {#Word} +``` +public static final int Word +``` + + +指定将文本修剪到最近的单词。 + +### EllipsisCharacter {#EllipsisCharacter} +``` +public static final int EllipsisCharacter +``` + + +指定将文本修剪到最近的字符,并在修剪后的行尾插入省略号。 + +### EllipsisWord {#EllipsisWord} +``` +public static final int EllipsisWord +``` + + +指定将文本修剪到最近的单词,并在修剪后的行尾插入省略号。 + +### EllipsisPath {#EllipsisPath} +``` +public static final int EllipsisPath +``` + + +从修剪的行中删除中间部分,并用省略号替代。该算法尽可能保留行中最后一个由斜杠分隔的段的尽可能多内容。 + diff --git a/chinese/java/com.aspose.drawing/systemcolors/_index.md b/chinese/java/com.aspose.drawing/systemcolors/_index.md new file mode 100644 index 000000000..a182dae10 --- /dev/null +++ b/chinese/java/com.aspose.drawing/systemcolors/_index.md @@ -0,0 +1,382 @@ +--- +title: SystemColors +second_title: Aspose.Drawing for Java API 参考 +description: 每个 SystemColors 类的属性都是一个 Color 结构,表示 Windows 显示元素的颜色。 +type: docs +weight: 50 +url: /zh/java/com.aspose.drawing/systemcolors/ +--- +**Inheritance:** +java.lang.Object +``` +public final class SystemColors +``` + +每个 [SystemColors](../../com.aspose.drawing/systemcolors) 类的属性都是一个 [Color](../../com.aspose.drawing/color) 结构,表示 Windows 显示元素的颜色。 +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getActiveBorder()](#getActiveBorder--) | 获取一个表示活动窗口边框颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| [getActiveCaption()](#getActiveCaption--) | 获取一个表示活动窗口标题栏背景颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| [getActiveCaptionText()](#getActiveCaptionText--) | 获取一个表示活动窗口标题栏中文本颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| [getAppWorkspace()](#getAppWorkspace--) | 获取一个表示应用程序工作区颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| [getButtonFace()](#getButtonFace--) | 获取一个表示 3D 元素表面颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| [getButtonHighlight()](#getButtonHighlight--) | 获取一个表示 3D 元素高亮颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| [getButtonShadow()](#getButtonShadow--) | 获取一个表示 3D 元素阴影颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| [getControl()](#getControl--) | 获取一个表示 3D 元素表面颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| [getControlDark()](#getControlDark--) | 获取一个表示 3D 元素阴影颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| [getControlDarkDark()](#getControlDarkDark--) | 获取一个表示 3D 元素深阴影颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| [getControlLight()](#getControlLight--) | 获取一个表示 3D 元素亮色的 [Color](../../com.aspose.drawing/color) 结构。 | +| [getControlLightLight()](#getControlLightLight--) | 获取一个表示 3D 元素高亮颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| [getControlText()](#getControlText--) | 获取一个表示 3D 元素中文本颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| [getDesktop()](#getDesktop--) | 获取一个表示桌面颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| [getGradientActiveCaption()](#getGradientActiveCaption--) | 获取一个表示活动窗口标题栏颜色渐变中最亮颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| [getGradientInactiveCaption()](#getGradientInactiveCaption--) | 获取一个表示非活动窗口标题栏颜色渐变中最亮颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| [getGrayText()](#getGrayText--) | 获取一个表示暗淡文本颜色的 [Color](../../com.aspose.drawing/color) 结构。 | +| [getHighlight()](#getHighlight--) | 获取一个 [Color](../../com.aspose.drawing/color) 结构,它是所选项的背景颜色。 | +| [getHighlightText()](#getHighlightText--) | 获取一个 [Color](../../com.aspose.drawing/color) 结构,它是所选项的文本颜色。 | +| [getHotTrack()](#getHotTrack--) | 获取一个 [Color](../../com.aspose.drawing/color) 结构,它是用于标识热跟踪项的颜色。 | +| [getInactiveBorder()](#getInactiveBorder--) | 获取一个 [Color](../../com.aspose.drawing/color) 结构,它是非活动窗口边框的颜色。 | +| [getInactiveCaption()](#getInactiveCaption--) | 获取一个 [Color](../../com.aspose.drawing/color) 结构,它是非活动窗口标题栏背景的颜色。 | +| [getInactiveCaptionText()](#getInactiveCaptionText--) | 获取一个 [Color](../../com.aspose.drawing/color) 结构,它是非活动窗口标题栏中文本的颜色。 | +| [getInfo()](#getInfo--) | 获取一个 [Color](../../com.aspose.drawing/color) 结构,它是工具提示的背景颜色。 | +| [getInfoText()](#getInfoText--) | 获取一个 [Color](../../com.aspose.drawing/color) 结构,它是工具提示的文本颜色。 | +| [getMenu()](#getMenu--) | 获取一个 [Color](../../com.aspose.drawing/color) 结构,它是菜单的背景颜色。 | +| [getMenuBar()](#getMenuBar--) | 获取一个 [Color](../../com.aspose.drawing/color) 结构,它是菜单栏的背景颜色。 | +| [getMenuHighlight()](#getMenuHighlight--) | 获取一个 [Color](../../com.aspose.drawing/color) 结构,它是当菜单显示为平面菜单时用于突出显示菜单项的颜色。 | +| [getMenuText()](#getMenuText--) | 获取一个 [Color](../../com.aspose.drawing/color) 结构,它是菜单的文本颜色。 | +| [getScrollBar()](#getScrollBar--) | 获取一个 [Color](../../com.aspose.drawing/color) 结构,它是滚动条的背景颜色。 | +| [getWindow()](#getWindow--) | 获取一个 [Color](../../com.aspose.drawing/color) 结构,它是窗口客户区背景的颜色。 | +| [getWindowFrame()](#getWindowFrame--) | 获取一个 [Color](../../com.aspose.drawing/color) 结构,它是窗口框架的颜色。 | +| [getWindowText()](#getWindowText--) | 获取一个 [Color](../../com.aspose.drawing/color) 结构,它是窗口客户区中文本的颜色。 | +### getActiveBorder() {#getActiveBorder--} +``` +public static Color getActiveBorder() +``` + + +获取一个表示活动窗口边框颜色的 [Color](../../com.aspose.drawing/color) 结构。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the color of the active window's border. +### getActiveCaption() {#getActiveCaption--} +``` +public static Color getActiveCaption() +``` + + +获取一个表示活动窗口标题栏背景颜色的 [Color](../../com.aspose.drawing/color) 结构。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the color of the background of the active window's title bar. +### getActiveCaptionText() {#getActiveCaptionText--} +``` +public static Color getActiveCaptionText() +``` + + +获取一个表示活动窗口标题栏中文本颜色的 [Color](../../com.aspose.drawing/color) 结构。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the color of the text in the active window's title bar. +### getAppWorkspace() {#getAppWorkspace--} +``` +public static Color getAppWorkspace() +``` + + +获取一个表示应用程序工作区颜色的 [Color](../../com.aspose.drawing/color) 结构。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the color of the application workspace. +### getButtonFace() {#getButtonFace--} +``` +public static Color getButtonFace() +``` + + +获取一个表示 3D 元素表面颜色的 [Color](../../com.aspose.drawing/color) 结构。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the face color of a 3-D element. +### getButtonHighlight() {#getButtonHighlight--} +``` +public static Color getButtonHighlight() +``` + + +获取一个表示 3D 元素高亮颜色的 [Color](../../com.aspose.drawing/color) 结构。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the highlight color of a 3-D element. +### getButtonShadow() {#getButtonShadow--} +``` +public static Color getButtonShadow() +``` + + +获取一个表示 3D 元素阴影颜色的 [Color](../../com.aspose.drawing/color) 结构。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the shadow color of a 3-D element. +### getControl() {#getControl--} +``` +public static Color getControl() +``` + + +获取一个表示 3D 元素表面颜色的 [Color](../../com.aspose.drawing/color) 结构。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the face color of a 3-D element. +### getControlDark() {#getControlDark--} +``` +public static Color getControlDark() +``` + + +获取一个表示 3D 元素阴影颜色的 [Color](../../com.aspose.drawing/color) 结构。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the shadow color of a 3-D element. +### getControlDarkDark() {#getControlDarkDark--} +``` +public static Color getControlDarkDark() +``` + + +获取一个表示 3D 元素深阴影颜色的 [Color](../../com.aspose.drawing/color) 结构。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the dark shadow color of a 3-D element. +### getControlLight() {#getControlLight--} +``` +public static Color getControlLight() +``` + + +获取一个表示 3D 元素亮色的 [Color](../../com.aspose.drawing/color) 结构。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the light color of a 3-D element. +### getControlLightLight() {#getControlLightLight--} +``` +public static Color getControlLightLight() +``` + + +获取一个表示 3D 元素高亮颜色的 [Color](../../com.aspose.drawing/color) 结构。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the highlight color of a 3-D element. +### getControlText() {#getControlText--} +``` +public static Color getControlText() +``` + + +获取一个表示 3D 元素中文本颜色的 [Color](../../com.aspose.drawing/color) 结构。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the color of text in a 3-D element. +### getDesktop() {#getDesktop--} +``` +public static Color getDesktop() +``` + + +获取一个表示桌面颜色的 [Color](../../com.aspose.drawing/color) 结构。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the color of the desktop. +### getGradientActiveCaption() {#getGradientActiveCaption--} +``` +public static Color getGradientActiveCaption() +``` + + +获取一个表示活动窗口标题栏颜色渐变中最亮颜色的 [Color](../../com.aspose.drawing/color) 结构。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the lightest color in the color gradient of an active window's title bar. +### getGradientInactiveCaption() {#getGradientInactiveCaption--} +``` +public static Color getGradientInactiveCaption() +``` + + +获取一个表示非活动窗口标题栏颜色渐变中最亮颜色的 [Color](../../com.aspose.drawing/color) 结构。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the lightest color in the color gradient of an inactive window's title bar. +### getGrayText() {#getGrayText--} +``` +public static Color getGrayText() +``` + + +获取一个表示暗淡文本颜色的 [Color](../../com.aspose.drawing/color) 结构。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the color of dimmed text. +### getHighlight() {#getHighlight--} +``` +public static Color getHighlight() +``` + + +获取一个 [Color](../../com.aspose.drawing/color) 结构,它是所选项的背景颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the color of the background of selected items. +### getHighlightText() {#getHighlightText--} +``` +public static Color getHighlightText() +``` + + +获取一个 [Color](../../com.aspose.drawing/color) 结构,它是所选项的文本颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the color of the text of selected items. +### getHotTrack() {#getHotTrack--} +``` +public static Color getHotTrack() +``` + + +获取一个 [Color](../../com.aspose.drawing/color) 结构,它是用于标识热跟踪项的颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the color used to designate a hot-tracked item. +### getInactiveBorder() {#getInactiveBorder--} +``` +public static Color getInactiveBorder() +``` + + +获取一个 [Color](../../com.aspose.drawing/color) 结构,它是非活动窗口边框的颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the color of an inactive window's border. +### getInactiveCaption() {#getInactiveCaption--} +``` +public static Color getInactiveCaption() +``` + + +获取一个 [Color](../../com.aspose.drawing/color) 结构,它是非活动窗口标题栏背景的颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the color of the background of an inactive window's title bar. +### getInactiveCaptionText() {#getInactiveCaptionText--} +``` +public static Color getInactiveCaptionText() +``` + + +获取一个 [Color](../../com.aspose.drawing/color) 结构,它是非活动窗口标题栏中文本的颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the color of the text in an inactive window's title bar. +### getInfo() {#getInfo--} +``` +public static Color getInfo() +``` + + +获取一个 [Color](../../com.aspose.drawing/color) 结构,它是工具提示的背景颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the color of the background of a ToolTip. +### getInfoText() {#getInfoText--} +``` +public static Color getInfoText() +``` + + +获取一个 [Color](../../com.aspose.drawing/color) 结构,它是工具提示的文本颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the color of the text of a ToolTip. +### getMenu() {#getMenu--} +``` +public static Color getMenu() +``` + + +获取一个 [Color](../../com.aspose.drawing/color) 结构,它是菜单的背景颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the color of a menu's background. +### getMenuBar() {#getMenuBar--} +``` +public static Color getMenuBar() +``` + + +获取一个 [Color](../../com.aspose.drawing/color) 结构,它是菜单栏的背景颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the color of the background of a menu bar. +### getMenuHighlight() {#getMenuHighlight--} +``` +public static Color getMenuHighlight() +``` + + +获取一个 [Color](../../com.aspose.drawing/color) 结构,它是当菜单显示为平面菜单时用于突出显示菜单项的颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the color used to highlight menu items when the menu appears as a flat menu. +### getMenuText() {#getMenuText--} +``` +public static Color getMenuText() +``` + + +获取一个 [Color](../../com.aspose.drawing/color) 结构,它是菜单的文本颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the color of a menu's text. +### getScrollBar() {#getScrollBar--} +``` +public static Color getScrollBar() +``` + + +获取一个 [Color](../../com.aspose.drawing/color) 结构,它是滚动条的背景颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the color of the background of a scroll bar. +### getWindow() {#getWindow--} +``` +public static Color getWindow() +``` + + +获取一个 [Color](../../com.aspose.drawing/color) 结构,它是窗口客户区背景的颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the color of the background in the client area of a window. +### getWindowFrame() {#getWindowFrame--} +``` +public static Color getWindowFrame() +``` + + +获取一个 [Color](../../com.aspose.drawing/color) 结构,它是窗口框架的颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the color of a window frame. +### getWindowText() {#getWindowText--} +``` +public static Color getWindowText() +``` + + +获取一个 [Color](../../com.aspose.drawing/color) 结构,它是窗口客户区中文本的颜色。 + +**Returns:** +[Color](../../com.aspose.drawing/color) - a [Color](../../com.aspose.drawing/color) structure that is the color of the text in the client area of a window. diff --git a/chinese/java/com.aspose.drawing/systemfonts/_index.md b/chinese/java/com.aspose.drawing/systemfonts/_index.md new file mode 100644 index 000000000..bd1b8806c --- /dev/null +++ b/chinese/java/com.aspose.drawing/systemfonts/_index.md @@ -0,0 +1,134 @@ +--- +title: SystemFonts +second_title: Aspose.Drawing for Java API 参考 +description: 指定在 Windows 显示元素中用于显示文本的字体。 +type: docs +weight: 51 +url: /zh/java/com.aspose.drawing/systemfonts/ +--- +**Inheritance:** +java.lang.Object +``` +public final class SystemFonts +``` + +指定在 Windows 显示元素中用于显示文本的字体。 +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getCaptionFont()](#getCaptionFont--) | 获取一个用于在窗口标题栏中显示文本的 [Font](../../com.aspose.drawing/font)。 | +| [getSmallCaptionFont()](#getSmallCaptionFont--) | 获取一个用于在小窗口(如工具窗口)的标题栏中显示文本的 [Font](../../com.aspose.drawing/font)。 | +| [getMenuFont()](#getMenuFont--) | 获取一个用于菜单的 [Font](../../com.aspose.drawing/font)。 | +| [getStatusFont()](#getStatusFont--) | 获取一个用于在状态栏中显示文本的 [Font](../../com.aspose.drawing/font)。 | +| [getMessageBoxFont()](#getMessageBoxFont--) | 获取一个用于消息框的 [Font](../../com.aspose.drawing/font)。 | +| [getIconTitleFont()](#getIconTitleFont--) | 获取一个用于图标标题的 [Font](../../com.aspose.drawing/font)。 | +| [getDefaultFont()](#getDefaultFont--) | 获取应用程序可用于对话框和窗体的默认字体。 | +| [getDefaultImageFont()](#getDefaultImageFont--) | 获取应用程序可用于对话框和窗体的默认字体。 | +| [getDialogFont()](#getDialogFont--) | 获取应用程序可用于对话框和窗体的字体。 | +| [getFontByName(String systemFontName)](#getFontByName-java.lang.String-) | 返回与指定系统字体名称对应的字体对象。 | +### getCaptionFont() {#getCaptionFont--} +``` +public static Font getCaptionFont() +``` + + +获取一个用于在窗口标题栏中显示文本的 [Font](../../com.aspose.drawing/font)。 + +**Returns:** +[Font](../../com.aspose.drawing/font) - a [Font](../../com.aspose.drawing/font) that is used to display text in the title bars of windows. +### getSmallCaptionFont() {#getSmallCaptionFont--} +``` +public static Font getSmallCaptionFont() +``` + + +获取一个用于在小窗口(如工具窗口)的标题栏中显示文本的 [Font](../../com.aspose.drawing/font)。 + +**Returns:** +[Font](../../com.aspose.drawing/font) - a [Font](../../com.aspose.drawing/font) that is used to display text in the title bars of small windows, such as tool windows. +### getMenuFont() {#getMenuFont--} +``` +public static Font getMenuFont() +``` + + +获取一个用于菜单的 [Font](../../com.aspose.drawing/font)。 + +**Returns:** +[Font](../../com.aspose.drawing/font) - a [Font](../../com.aspose.drawing/font) that is used for menus. +### getStatusFont() {#getStatusFont--} +``` +public static Font getStatusFont() +``` + + +获取一个用于在状态栏中显示文本的 [Font](../../com.aspose.drawing/font)。 + +**Returns:** +[Font](../../com.aspose.drawing/font) - a [Font](../../com.aspose.drawing/font) that is used to display text in the status bar. +### getMessageBoxFont() {#getMessageBoxFont--} +``` +public static Font getMessageBoxFont() +``` + + +获取一个用于消息框的 [Font](../../com.aspose.drawing/font)。 + +**Returns:** +[Font](../../com.aspose.drawing/font) - a [Font](../../com.aspose.drawing/font) that is used for message boxes. +### getIconTitleFont() {#getIconTitleFont--} +``` +public static Font getIconTitleFont() +``` + + +获取一个用于图标标题的 [Font](../../com.aspose.drawing/font)。 + +**Returns:** +[Font](../../com.aspose.drawing/font) - a [Font](../../com.aspose.drawing/font) that is used for icon titles. +### getDefaultFont() {#getDefaultFont--} +``` +public static Font getDefaultFont() +``` + + +获取应用程序可用于对话框和窗体的默认字体。 + +**Returns:** +[Font](../../com.aspose.drawing/font) - The default [Font](../../com.aspose.drawing/font) of the system. The value returned will vary depending on the user's operating system and the local culture setting of their system. +### getDefaultImageFont() {#getDefaultImageFont--} +``` +public static Font getDefaultImageFont() +``` + + +获取应用程序可用于对话框和窗体的默认字体。 + +**Returns:** +[Font](../../com.aspose.imaging/font) - The default [Font](../../com.aspose.drawing/font) of the system. The value returned will vary depending on the user's operating system and the local culture setting of their system. +### getDialogFont() {#getDialogFont--} +``` +public static Font getDialogFont() +``` + + +获取应用程序可用于对话框和窗体的字体。 + +**Returns:** +[Font](../../com.aspose.drawing/font) - A [Font](../../com.aspose.drawing/font) that can be used for dialog boxes and forms, depending on the operating system and local culture setting of the system. +### getFontByName(String systemFontName) {#getFontByName-java.lang.String-} +``` +public static Font getFontByName(String systemFontName) +``` + + +返回与指定系统字体名称对应的字体对象。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| systemFontName | java.lang.String | 需要获取字体对象的系统字体名称。 | + +**Returns:** +[Font](../../com.aspose.drawing/font) - A [Font](../../com.aspose.drawing/font) if the specified name matches a value in [SystemFonts](../../com.aspose.drawing/systemfonts); otherwise, null. diff --git a/chinese/java/com.aspose.drawing/systemicons/_index.md b/chinese/java/com.aspose.drawing/systemicons/_index.md new file mode 100644 index 000000000..b53c30e77 --- /dev/null +++ b/chinese/java/com.aspose.drawing/systemicons/_index.md @@ -0,0 +1,160 @@ +--- +title: SystemIcons +second_title: Aspose.Drawing for Java API 参考 +description: SystemIcons 类的每个属性都是一个用于 Windows 系统范围图标的对象。 +type: docs +weight: 52 +url: /zh/java/com.aspose.drawing/systemicons/ +--- +**Inheritance:** +java.lang.Object +``` +public final class SystemIcons +``` + +SystemIcons 类的每个属性都是一个 [Icon](../../com.aspose.drawing/icon) 对象,用于 Windows 系统范围的图标。此类不可被继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [SystemIcons()](#SystemIcons--) | | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getApplication()](#getApplication--) | 获取一个包含默认应用程序图标的 [Icon](../../com.aspose.drawing/icon) 对象 (WIN32: IDI\_APPLICATION)。 | +| [getAsterisk()](#getAsterisk--) | 获取一个包含系统星号图标的 [Icon](../../com.aspose.drawing/icon) 对象 (WIN32: IDI\_ASTERISK)。 | +| [getError()](#getError--) | 获取一个包含系统错误图标的 [Icon](../../com.aspose.drawing/icon) 对象 (WIN32: IDI\_ERROR)。 | +| [getExclamation()](#getExclamation--) | 获取一个包含系统感叹号图标的 [Icon](../../com.aspose.drawing/icon) 对象 (WIN32: IDI\_EXCLAMATION)。 | +| [getHand()](#getHand--) | 获取一个包含系统手形图标的 [Icon](../../com.aspose.drawing/icon) 对象 (WIN32: IDI\_HAND)。 | +| [getInformation()](#getInformation--) | 获取一个包含系统信息图标的 [Icon](../../com.aspose.drawing/icon) 对象 (WIN32: IDI\_INFORMATION)。 | +| [getQuestion()](#getQuestion--) | 获取一个包含系统问号图标的 [Icon](../../com.aspose.drawing/icon) 对象 (WIN32: IDI\_QUESTION)。 | +| [getShield()](#getShield--) | 获取一个包含盾牌图标的 Icon 对象。 | +| [getWarning()](#getWarning--) | 获取一个包含系统警告图标的 [Icon](../../com.aspose.drawing/icon) 对象 (WIN32: IDI\_WARNING)。 | +| [getWinLogo()](#getWinLogo--) | 获取一个包含 Windows 徽标图标的 [Icon](../../com.aspose.drawing/icon) 对象 (WIN32: IDI\_WINLOGO)。 | +### SystemIcons() {#SystemIcons--} +``` +public SystemIcons() +``` + + +### getApplication() {#getApplication--} +``` +public static Icon getApplication() +``` + + +获取一个包含默认应用程序图标的 [Icon](../../com.aspose.drawing/icon) 对象 (WIN32: IDI\_APPLICATION)。 + +值:一个包含默认应用程序图标的 [Icon](../../com.aspose.drawing/icon) 对象。 + +**Returns:** +[Icon](../../com.aspose.drawing/icon) - an [Icon](../../com.aspose.drawing/icon) object that contains the default application icon (WIN32: IDI\_APPLICATION). +### getAsterisk() {#getAsterisk--} +``` +public static Icon getAsterisk() +``` + + +获取一个包含系统星号图标的 [Icon](../../com.aspose.drawing/icon) 对象 (WIN32: IDI\_ASTERISK)。 + +值:一个包含系统星号图标的 [Icon](../../com.aspose.drawing/icon) 对象。 + +**Returns:** +[Icon](../../com.aspose.drawing/icon) - an [Icon](../../com.aspose.drawing/icon) object that contains the system asterisk icon (WIN32: IDI\_ASTERISK). +### getError() {#getError--} +``` +public static Icon getError() +``` + + +获取一个包含系统错误图标的 [Icon](../../com.aspose.drawing/icon) 对象 (WIN32: IDI\_ERROR)。 + +值:一个包含系统错误图标的 [Icon](../../com.aspose.drawing/icon) 对象。 + +**Returns:** +[Icon](../../com.aspose.drawing/icon) - an [Icon](../../com.aspose.drawing/icon) object that contains the system error icon (WIN32: IDI\_ERROR). +### getExclamation() {#getExclamation--} +``` +public static Icon getExclamation() +``` + + +获取一个包含系统感叹号图标的 [Icon](../../com.aspose.drawing/icon) 对象 (WIN32: IDI\_EXCLAMATION)。 + +值:一个包含系统感叹号图标的 [Icon](../../com.aspose.drawing/icon) 对象。 + +**Returns:** +[Icon](../../com.aspose.drawing/icon) - an [Icon](../../com.aspose.drawing/icon) object that contains the system exclamation icon (WIN32: IDI\_EXCLAMATION). +### getHand() {#getHand--} +``` +public static Icon getHand() +``` + + +获取一个包含系统手形图标的 [Icon](../../com.aspose.drawing/icon) 对象 (WIN32: IDI\_HAND)。 + +值:一个包含系统手形图标的 [Icon](../../com.aspose.drawing/icon) 对象。 + +**Returns:** +[Icon](../../com.aspose.drawing/icon) - an [Icon](../../com.aspose.drawing/icon) object that contains the system hand icon (WIN32: IDI\_HAND). +### getInformation() {#getInformation--} +``` +public static Icon getInformation() +``` + + +获取一个包含系统信息图标的 [Icon](../../com.aspose.drawing/icon) 对象 (WIN32: IDI\_INFORMATION)。 + +值:一个包含系统信息图标的 [Icon](../../com.aspose.drawing/icon) 对象。 + +**Returns:** +[Icon](../../com.aspose.drawing/icon) - an [Icon](../../com.aspose.drawing/icon) object that contains the system information icon (WIN32: IDI\_INFORMATION). +### getQuestion() {#getQuestion--} +``` +public static Icon getQuestion() +``` + + +获取一个包含系统问号图标的 [Icon](../../com.aspose.drawing/icon) 对象 (WIN32: IDI\_QUESTION)。 + +值:一个包含系统问号图标的 [Icon](../../com.aspose.drawing/icon) 对象。 + +**Returns:** +[Icon](../../com.aspose.drawing/icon) - an [Icon](../../com.aspose.drawing/icon) object that contains the system question icon (WIN32: IDI\_QUESTION). +### getShield() {#getShield--} +``` +public static Icon getShield() +``` + + +获取一个包含盾牌图标的 Icon 对象。 + +值:一个包含盾牌图标的 Icon 对象。 + +**Returns:** +[Icon](../../com.aspose.drawing/icon) - an Icon object that contains the shield icon. +### getWarning() {#getWarning--} +``` +public static Icon getWarning() +``` + + +获取一个包含系统警告图标的 [Icon](../../com.aspose.drawing/icon) 对象 (WIN32: IDI\_WARNING)。 + +值:一个包含警告图标的 [Icon](../../com.aspose.drawing/icon) 对象。 + +**Returns:** +[Icon](../../com.aspose.drawing/icon) - an [Icon](../../com.aspose.drawing/icon) object that contains the system warning icon (WIN32: IDI\_WARNING). +### getWinLogo() {#getWinLogo--} +``` +public static Icon getWinLogo() +``` + + +获取一个包含 Windows 徽标图标的 [Icon](../../com.aspose.drawing/icon) 对象 (WIN32: IDI\_WINLOGO)。 + +值:一个包含 winlogo 图标的 [Icon](../../com.aspose.drawing/icon) 对象。 + +**Returns:** +[Icon](../../com.aspose.drawing/icon) - an [Icon](../../com.aspose.drawing/icon) object that contains the Windows logo icon (WIN32: IDI\_WINLOGO). diff --git a/chinese/java/com.aspose.drawing/texturebrush/_index.md b/chinese/java/com.aspose.drawing/texturebrush/_index.md new file mode 100644 index 000000000..f812befd2 --- /dev/null +++ b/chinese/java/com.aspose.drawing/texturebrush/_index.md @@ -0,0 +1,300 @@ +--- +title: TextureBrush +second_title: Aspose.Drawing for Java API 参考 +description: 每个 TextureBrush 类的属性都是一个使用图像填充形状内部的 Brush 对象。 +type: docs +weight: 53 +url: /zh/java/com.aspose.drawing/texturebrush/ +--- +**Inheritance:** +java.lang.Object, [com.aspose.drawing.Brush](../../com.aspose.drawing/brush) +``` +public final class TextureBrush extends Brush +``` + +TextureBrush 类的每个属性都是使用图像填充形状内部的 Brush 对象。此类不可被继承。 +## 构造函数 + +| 构造函数 | 描述 | +| --- | --- | +| [TextureBrush(Image bitmap)](#TextureBrush-com.aspose.drawing.Image-) | 初始化使用指定图像的 [TextureBrush](../../com.aspose.drawing/texturebrush) 类的新实例。 | +| [TextureBrush(Image image, int wrapMode)](#TextureBrush-com.aspose.drawing.Image-int-) | 初始化使用指定图像和包装模式的 [TextureBrush](../../com.aspose.drawing/texturebrush) 类的新实例。 | +| [TextureBrush(Image image, int wrapMode, RectangleF dstRect)](#TextureBrush-com.aspose.drawing.Image-int-com.aspose.drawing.RectangleF-) | 初始化使用指定图像、包装模式和边界矩形的 [TextureBrush](../../com.aspose.drawing/texturebrush) 类的新实例。 | +| [TextureBrush(Image image, RectangleF dstRect)](#TextureBrush-com.aspose.drawing.Image-com.aspose.drawing.RectangleF-) | 初始化使用指定图像和边界矩形的 [TextureBrush](../../com.aspose.drawing/texturebrush) 类的新实例。 | +| [TextureBrush(Image image, RectangleF dstRect, ImageAttributes imageAttr)](#TextureBrush-com.aspose.drawing.Image-com.aspose.drawing.RectangleF-com.aspose.drawing.imaging.ImageAttributes-) | 初始化使用指定图像、边界矩形和图像属性的 [TextureBrush](../../com.aspose.drawing/texturebrush) 类的新实例。 | +## 方法 + +| 方法 | 描述 | +| --- | --- | +| [getImage()](#getImage--) | 获取与此 TextureBrush 对象关联的 Image 对象。 | +| [getTransform()](#getTransform--) | 获取定义与此 TextureBrush 对象关联的图像的局部几何变换的 Matrix 对象的副本。 | +| [setTransform(Matrix value)](#setTransform-com.aspose.drawing.drawing2d.Matrix-) | 设置定义与此 TextureBrush 对象关联的图像的局部几何变换的 Matrix 对象的副本。 | +| [getWrapMode()](#getWrapMode--) | 获取指示此 TextureBrush 对象的平铺模式的 WrapMode 枚举。 | +| [setWrapMode(int value)](#setWrapMode-int-) | 设置指示此 TextureBrush 对象的平铺模式的 WrapMode 枚举。 | +| [deepClone()](#deepClone--) | 创建此 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象的精确副本。 | +| [resetTransform()](#resetTransform--) | 将此 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象的 Transform 属性重置为标识矩阵。 | +| [multiplyTransform(Matrix matrix)](#multiplyTransform-com.aspose.drawing.drawing2d.Matrix-) | 将表示此 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象局部几何变换的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 对象乘以指定的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 对象,并在前面预置指定的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 对象。 | +| [multiplyTransform(Matrix matrix, int order)](#multiplyTransform-com.aspose.drawing.drawing2d.Matrix-int-) | 将表示此 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象局部几何变换的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 对象乘以指定的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 对象,按指定顺序进行。 | +| [translateTransform(float dx, float dy)](#translateTransform-float-float-) | 按指定的尺寸平移此 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象的局部几何变换。 | +| [translateTransform(float dx, float dy, int order)](#translateTransform-float-float-int-) | 按指定的尺寸平移此 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象的局部几何变换,按指定顺序。 | +| [scaleTransform(float sx, float sy)](#scaleTransform-float-float-) | 按指定的量缩放此 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象的局部几何变换。 | +| [scaleTransform(float sx, float sy, int order)](#scaleTransform-float-float-int-) | 按指定的量缩放此 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象的局部几何变换,按指定顺序。 | +| [rotateTransform(float angle)](#rotateTransform-float-) | 按指定的角度旋转此 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象的局部几何变换。 | +| [rotateTransform(float angle, int order)](#rotateTransform-float-int-) | 按指定的角度旋转此 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象的局部几何变换,按指定顺序。 | +### TextureBrush(Image bitmap) {#TextureBrush-com.aspose.drawing.Image-} +``` +public TextureBrush(Image bitmap) +``` + + +初始化使用指定图像的 [TextureBrush](../../com.aspose.drawing/texturebrush) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| bitmap | [Image](../../com.aspose.drawing/image) | 此 `Image`([.getImage](../../null/\#getImage)) 对象用于此 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象填充内部。 | + +### TextureBrush(Image image, int wrapMode) {#TextureBrush-com.aspose.drawing.Image-int-} +``` +public TextureBrush(Image image, int wrapMode) +``` + + +初始化使用指定图像和包装模式的 [TextureBrush](../../com.aspose.drawing/texturebrush) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| image | [Image](../../com.aspose.drawing/image) | 该图像。 | +| wrapMode | int | 一个 `WrapMode`([.getWrapMode](../../null/\#getWrapMode)/[.setWrapMode(int)](../../null/\#setWrapMode-int-)) 枚举,指定此 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象的平铺方式。 | + +### TextureBrush(Image image, int wrapMode, RectangleF dstRect) {#TextureBrush-com.aspose.drawing.Image-int-com.aspose.drawing.RectangleF-} +``` +public TextureBrush(Image image, int wrapMode, RectangleF dstRect) +``` + + +初始化使用指定图像、包装模式和边界矩形的 [TextureBrush](../../com.aspose.drawing/texturebrush) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| image | [Image](../../com.aspose.drawing/image) | 该图像。 | +| wrapMode | int | 一个 `WrapMode`([.getWrapMode](../../null/\#getWrapMode)/[.setWrapMode(int)](../../null/\#setWrapMode-int-)) 枚举,指定此 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象的平铺方式。 | +| dstRect | [RectangleF](../../com.aspose.drawing/rectanglef) | 一个 [RectangleF](../../com.aspose.drawing/rectanglef) 结构,表示此 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象的边界矩形。 | + +### TextureBrush(Image image, RectangleF dstRect) {#TextureBrush-com.aspose.drawing.Image-com.aspose.drawing.RectangleF-} +``` +public TextureBrush(Image image, RectangleF dstRect) +``` + + +初始化使用指定图像和边界矩形的 [TextureBrush](../../com.aspose.drawing/texturebrush) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| image | [Image](../../com.aspose.drawing/image) | 此 `Image`([.getImage](../../null/\#getImage)) 对象用于此 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象填充内部。 | +| dstRect | [RectangleF](../../com.aspose.drawing/rectanglef) | 一个 [RectangleF](../../com.aspose.drawing/rectanglef) 结构,表示此 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象的边界矩形。 | + +### TextureBrush(Image image, RectangleF dstRect, ImageAttributes imageAttr) {#TextureBrush-com.aspose.drawing.Image-com.aspose.drawing.RectangleF-com.aspose.drawing.imaging.ImageAttributes-} +``` +public TextureBrush(Image image, RectangleF dstRect, ImageAttributes imageAttr) +``` + + +初始化使用指定图像、边界矩形和图像属性的 [TextureBrush](../../com.aspose.drawing/texturebrush) 类的新实例。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| image | [Image](../../com.aspose.drawing/image) | 用于此 TextureBrush 对象填充内部的 Image 对象。 | +| dstRect | [RectangleF](../../com.aspose.drawing/rectanglef) | 一个 RectangleF 结构,表示此 TextureBrush 对象的边界矩形。 | +| imageAttr | [ImageAttributes](../../com.aspose.drawing.imaging/imageattributes) | 一个 ImageAttributes 对象,包含有关此 TextureBrush 对象使用的图像的其他信息。 | + +### getImage() {#getImage--} +``` +public Image getImage() +``` + + +获取与此 TextureBrush 对象关联的 Image 对象。 + +**Returns:** +[Image](../../com.aspose.drawing/image) - the Image object associated with this TextureBrush object. +### getTransform() {#getTransform--} +``` +public Matrix getTransform() +``` + + +获取定义与此 TextureBrush 对象关联的图像的局部几何变换的 Matrix 对象的副本。 + +**Returns:** +[Matrix](../../com.aspose.drawing.drawing2d/matrix) - a copy of the Matrix object that defines a local geometric transformation for the image associated with this TextureBrush object. +### setTransform(Matrix value) {#setTransform-com.aspose.drawing.drawing2d.Matrix-} +``` +public void setTransform(Matrix value) +``` + + +设置定义与此 TextureBrush 对象关联的图像的局部几何变换的 Matrix 对象的副本。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | [Matrix](../../com.aspose.drawing.drawing2d/matrix) | 一个定义与此 TextureBrush 对象关联的图像的局部几何变换的 Matrix 对象的副本。 | + +### getWrapMode() {#getWrapMode--} +``` +public int getWrapMode() +``` + + +获取指示此 TextureBrush 对象的平铺模式的 WrapMode 枚举。 + +**Returns:** +int - 一个指示此 TextureBrush 对象的包装模式的 WrapMode 枚举。 +### setWrapMode(int value) {#setWrapMode-int-} +``` +public void setWrapMode(int value) +``` + + +设置指示此 TextureBrush 对象的平铺模式的 WrapMode 枚举。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| value | int | 一个指示此 TextureBrush 对象的包装模式的 WrapMode 枚举。 | + +### deepClone() {#deepClone--} +``` +public Object deepClone() +``` + + +创建此 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象的精确副本。 + +**Returns:** +java.lang.Object - 此方法创建的 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象,转换为 Object 对象。 +### resetTransform() {#resetTransform--} +``` +public void resetTransform() +``` + + +将此 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象的 Transform 属性重置为标识矩阵。 + +### multiplyTransform(Matrix matrix) {#multiplyTransform-com.aspose.drawing.drawing2d.Matrix-} +``` +public void multiplyTransform(Matrix matrix) +``` + + +将表示此 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象局部几何变换的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 对象乘以指定的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 对象,并在前面预置指定的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 对象。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| matrix | [Matrix](../../com.aspose.drawing.drawing2d/matrix) | 用于乘以几何变换的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 对象。 | + +### multiplyTransform(Matrix matrix, int order) {#multiplyTransform-com.aspose.drawing.drawing2d.Matrix-int-} +``` +public void multiplyTransform(Matrix matrix, int order) +``` + + +将表示此 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象局部几何变换的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 对象乘以指定的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 对象,按指定顺序进行。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| matrix | [Matrix](../../com.aspose.drawing.drawing2d/matrix) | 用于乘以几何变换的 [Matrix](../../com.aspose.drawing.drawing2d/matrix) 对象。 | +| order | int | 指定两个矩阵相乘顺序的 [MatrixOrder](../../com.aspose.drawing.drawing2d/matrixorder) 枚举。 | + +### translateTransform(float dx, float dy) {#translateTransform-float-float-} +``` +public void translateTransform(float dx, float dy) +``` + + +按指定的尺寸平移此 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象的局部几何变换。此方法将在变换前添加平移。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| dx | 浮点数 | 在 x 方向上平移变换的尺寸。 | +| dy | 浮点数 | 在 y 方向上平移变换的尺寸。 | + +### translateTransform(float dx, float dy, int order) {#translateTransform-float-float-int-} +``` +public void translateTransform(float dx, float dy, int order) +``` + + +按指定的尺寸平移此 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象的局部几何变换,按指定顺序。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| dx | 浮点数 | 在 x 方向上平移变换的尺寸。 | +| dy | 浮点数 | 在 y 方向上平移变换的尺寸。 | +| 顺序 | int | 应用平移的顺序(预先或追加)。 | + +### scaleTransform(float sx, float sy) {#scaleTransform-float-float-} +``` +public void scaleTransform(float sx, float sy) +``` + + +按指定的量缩放此 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象的局部几何变换。此方法将在变换前添加缩放矩阵。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| sx | 浮点数 | 在 x 方向上缩放变换的量。 | +| sy | 浮点数 | 在 y 方向上缩放变换的量。 | + +### scaleTransform(float sx, float sy, int order) {#scaleTransform-float-float-int-} +``` +public void scaleTransform(float sx, float sy, int order) +``` + + +按指定的量缩放此 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象的局部几何变换,按指定顺序。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| sx | 浮点数 | 在 x 方向上缩放变换的量。 | +| sy | 浮点数 | 在 y 方向上缩放变换的量。 | +| order | int | 指定是追加还是在前面添加缩放矩阵的 [MatrixOrder](../../com.aspose.drawing.drawing2d/matrixorder) 枚举。 | + +### rotateTransform(float angle) {#rotateTransform-float-} +``` +public void rotateTransform(float angle) +``` + + +按指定的角度旋转此 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象的局部几何变换。此方法将在变换前添加旋转。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 角度 | 浮点数 | 旋转角度。 | + +### rotateTransform(float angle, int order) {#rotateTransform-float-int-} +``` +public void rotateTransform(float angle, int order) +``` + + +按指定的角度旋转此 [TextureBrush](../../com.aspose.drawing/texturebrush) 对象的局部几何变换,按指定顺序。 + +**Parameters:** +| 参数 | 类型 | 描述 | +| --- | --- | --- | +| 角度 | 浮点数 | 旋转角度。 | +| order | int | 指定是追加还是在前面添加旋转矩阵的 [MatrixOrder](../../com.aspose.drawing.drawing2d/matrixorder) 枚举。 | +