Skip to content

Commit 8b2f8b9

Browse files
author
Samer El-Khatib
committed
Merge branch 'main' into production
2 parents 780fe3c + fe576ca commit 8b2f8b9

File tree

302 files changed

+1679
-737
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

302 files changed

+1679
-737
lines changed

english/java/com.aspose.imaging.fileformats.cdr.consts/cdrcolormodel/_index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ The cdr color models
3333
| [LabX12](#LabX12) | The colorscheme lab |
3434
| [LabX0C](#LabX0C) | The colorscheme lab |
3535
| [Rgb255](#Rgb255) | The RGB255 |
36-
| [paletteX19](#paletteX19) | The palette |
37-
| [paletteX1E](#paletteX1E) | The palette |
36+
| [PaletteX19](#PaletteX19) | The palette |
37+
| [PaletteX1E](#PaletteX1E) | The palette |
3838
| [Model0x0e](#Model0x0e) | The model0e |
3939
### Cmyk100X01 {#Cmyk100X01}
4040
```
@@ -164,17 +164,17 @@ public static final int Rgb255
164164

165165
The RGB255
166166

167-
### paletteX19 {#paletteX19}
167+
### PaletteX19 {#PaletteX19}
168168
```
169-
public static final int paletteX19
169+
public static final int PaletteX19
170170
```
171171

172172

173173
The palette
174174

175-
### paletteX1E {#paletteX1E}
175+
### PaletteX1E {#PaletteX1E}
176176
```
177-
public static final int paletteX1E
177+
public static final int PaletteX1E
178178
```
179179

180180

english/java/com.aspose.imaging.fileformats.cdr.objects/cdrlistobjects/_index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ The cdr list objects
3030
| [setFillId(int value)](#setFillId-int-) | Sets the fill identifier. |
3131
| [getOpacityFillId()](#getOpacityFillId--) | Gets the opacity fill identifier. |
3232
| [setOpacityFillId(int value)](#setOpacityFillId-int-) | Sets the opacity fill identifier. |
33-
| [getOutLineId()](#getOutLineId--) | Gets the out line identifier. |
34-
| [setOutLineId(int value)](#setOutLineId-int-) | Sets the out line identifier. |
33+
| [getOutLineId()](#getOutLineId--) | Gets the outline identifier. |
34+
| [setOutLineId(int value)](#setOutLineId-int-) | Sets the outline identifier. |
3535
| [getStyleId()](#getStyleId--) | Gets the style identifier. |
3636
| [setStyleId(int value)](#setStyleId-int-) | Sets the style identifier. |
3737
| [getOpacity()](#getOpacity--) | Gets the opacity. |
@@ -146,22 +146,22 @@ public final int getOutLineId()
146146
```
147147

148148

149-
Gets the out line identifier.
149+
Gets the outline identifier.
150150

151151
**Returns:**
152-
int - the out line identifier.
152+
int - the outline identifier.
153153
### setOutLineId(int value) {#setOutLineId-int-}
154154
```
155155
public final void setOutLineId(int value)
156156
```
157157

158158

159-
Sets the out line identifier.
159+
Sets the outline identifier.
160160

161161
**Parameters:**
162162
| Parameter | Type | Description |
163163
| --- | --- | --- |
164-
| value | int | the out line identifier. |
164+
| value | int | the outline identifier. |
165165

166166
### getStyleId() {#getStyleId--}
167167
```

english/java/com.aspose.imaging.fileformats.cdr/cdrimage/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public final int getPageCount()
120120
```
121121

122122

123-
Effortlessly retrieve or update the total page count of the image with this intuitive property. Ideal for developers seeking to manage multi-page images dynamically, ensuring efficient navigation and manipulation of image content.
123+
Effortlessly retrieve or update the total page count of the image with this intuitive property. Ideal for developers seeking to manage multipage images dynamically, ensuring efficient navigation and manipulation of image content.
124124

125125
**Returns:**
126126
int - the page count.
@@ -130,7 +130,7 @@ public final Image[] getPages()
130130
```
131131

132132

133-
Retrieve the pages of the image seamlessly with this intuitive property. Ideal for developers seeking to access and manipulate individual pages within multi-page images, ensuring efficient navigation and processing.
133+
Retrieve the pages of the image seamlessly with this intuitive property. Ideal for developers seeking to access and manipulate individual pages within multipage images, ensuring efficient navigation and processing.
134134

135135
**Returns:**
136136
com.aspose.imaging.Image[] - the pages.

english/java/com.aspose.imaging.fileformats.cdr/cdrimagepage/_index.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ The Cdr image page
2525
| [isCached()](#isCached--) | Gets a value indicating whether object's data is cached currently and no data reading is required. |
2626
| [getBitsPerPixel()](#getBitsPerPixel--) | Gets the image bits per pixel count. |
2727
| [getFileFormat()](#getFileFormat--) | Gets a value of file format |
28-
| [getDefaultOptions(Object[] args)](#getDefaultOptions-java.lang.Object---) | Gets the default options. |
2928
| [getCdrDocument()](#getCdrDocument--) | Gets the CDR document. |
29+
| [getDefaultOptions(Object[] args)](#getDefaultOptions-java.lang.Object---) | Gets the default options. |
3030
| [cacheData()](#cacheData--) | Caches the data and ensures no additional data loading will be performed from the underlying `P:com.aspose.imaging.dataStreamSupporter.dataStreamContainer`. |
3131
| [setPalette(IColorPalette palette, boolean updateColors)](#setPalette-com.aspose.imaging.IColorPalette-boolean-) | Sets the image palette. |
3232
### getParentImage() {#getParentImage--}
@@ -83,6 +83,18 @@ Gets a value of file format
8383

8484
**Returns:**
8585
long - a value of file format
86+
### getCdrDocument() {#getCdrDocument--}
87+
```
88+
public final CdrDocument getCdrDocument()
89+
```
90+
91+
92+
Gets the CDR document.
93+
94+
Value: The CDR document.
95+
96+
**Returns:**
97+
[CdrDocument](../../com.aspose.imaging.fileformats.cdr.objects/cdrdocument) - the CDR document.
8698
### getDefaultOptions(Object[] args) {#getDefaultOptions-java.lang.Object---}
8799
```
88100
public ImageOptionsBase getDefaultOptions(Object[] args)
@@ -98,16 +110,6 @@ Gets the default options.
98110

99111
**Returns:**
100112
[ImageOptionsBase](../../com.aspose.imaging/imageoptionsbase) - Default options
101-
### getCdrDocument() {#getCdrDocument--}
102-
```
103-
public final CdrDocument getCdrDocument()
104-
```
105-
106-
107-
Gets the CDR document.
108-
109-
**Returns:**
110-
[CdrDocument](../../com.aspose.imaging.fileformats.cdr.objects/cdrdocument) - the CDR document.
111113
### cacheData() {#cacheData--}
112114
```
113115
public synchronized void cacheData()

english/java/com.aspose.imaging.fileformats.wmf/wmfimage/_index.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,37 @@ Manipulate Microsoft Windows Metafile (WMF) images with our API, seamlessly hand
3939
| [getPostScript()](#getPostScript--) | Access the PostScript data associated with the image, providing detailed information about its structure or content. |
4040
| [getOriginalOptions()](#getOriginalOptions--) | Gets the original image options. |
4141

42+
## Example: This example shows how to load a WMF image from a file and convert it to SVG using WmfRasterizationOptions.
43+
44+
``` java
45+
String dir = "c:\\temp\\";
46+
47+
// Using Aspose.Imaging.Image.Load is a unified way to load all types of images including WMF.
48+
try (com.aspose.imaging.fileformats.wmf.WmfImage wmfImage = (com.aspose.imaging.fileformats.wmf.WmfImage)com.aspose.imaging.Image.load(dir + "test.wmf"))
49+
{
50+
com.aspose.imaging.imageoptions.SvgOptions saveOptions = new com.aspose.imaging.imageoptions.SvgOptions();
51+
52+
// Text will be converted to shapes.
53+
saveOptions.setTextAsShapes(true);
54+
55+
com.aspose.imaging.imageoptions.WmfRasterizationOptions rasterizationOptions = new com.aspose.imaging.imageoptions.WmfRasterizationOptions();
56+
57+
// The background color of the drawing surface.
58+
rasterizationOptions.setBackgroundColor(com.aspose.imaging.Color.getWhiteSmoke());
59+
60+
// The page size.
61+
rasterizationOptions.setPageSize(Size.to_SizeF(wmfImage.getSize()));
62+
63+
// If embedded emf exists, then render emf; otherwise render wmf.
64+
rasterizationOptions.setRenderMode(com.aspose.imaging.fileformats.wmf.WmfRenderMode.Auto);
65+
66+
saveOptions.setVectorRasterizationOptions(rasterizationOptions);
67+
68+
wmfImage.save(dir + "test.output.svg", saveOptions);
69+
}
70+
```
71+
72+
4273
## Example: The following example shows how to convert a compressed images (*.
4374
The following example shows how to convert a compressed images (*.emz,*.wmz, *.svgz) to raster format
4475
``` java

english/java/com.aspose.imaging.imageoptions/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ The package contains classes suitable for export, save or creation of different
4141
| [OtgRasterizationOptions](../com.aspose.imaging.imageoptions/otgrasterizationoptions) | The Otg rasterization options |
4242
| [PdfImageCompressionOptions](../com.aspose.imaging.imageoptions/pdfimagecompressionoptions) | Pdf image compression options |
4343
| [PdfOptions](../com.aspose.imaging.imageoptions/pdfoptions) | The PDF options. |
44+
| [PngCompressionLevel](../com.aspose.imaging.imageoptions/pngcompressionlevel) | The png compression level enum. |
4445
| [PngOptions](../com.aspose.imaging.imageoptions/pngoptions) | Create high-quality Portable Network Graphics (PNG) raster images effortlessly with our API, offering customizable options for compression levels, bits per pixel depths, and alpha bits. |
4546
| [PositioningTypes](../com.aspose.imaging.imageoptions/positioningtypes) | Positioning and size types for graphics scene. |
4647
| [PsdOptions](../com.aspose.imaging.imageoptions/psdoptions) | Create Photoshop Document (PSD) images with our API, offering versatile options with different format versions, compression methods, color modes, and bits counts per color channel. |

english/java/com.aspose.imaging.imageoptions/afterpageexportaction/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: AfterPageExportAction
33
second_title: Aspose.Imaging for Java API Reference
44
description: After page export action
55
type: docs
6-
weight: 55
6+
weight: 56
77
url: /java/com.aspose.imaging.imageoptions/afterpageexportaction/
88
---```
99
public interface AfterPageExportAction

english/java/com.aspose.imaging.imageoptions/beforepageexportaction/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: BeforePageExportAction
33
second_title: Aspose.Imaging for Java API Reference
44
description: Before page export action
55
type: docs
6-
weight: 56
6+
weight: 57
77
url: /java/com.aspose.imaging.imageoptions/beforepageexportaction/
88
---```
99
public interface BeforePageExportAction
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
---
2+
title: PngCompressionLevel
3+
second_title: Aspose.Imaging for Java API Reference
4+
description: The png compression level enum.
5+
type: docs
6+
weight: 37
7+
url: /java/com.aspose.imaging.imageoptions/pngcompressionlevel/
8+
---
9+
**Inheritance:**
10+
java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum
11+
```
12+
public final class PngCompressionLevel extends System.Enum
13+
```
14+
15+
The png compression level enum.
16+
## Fields
17+
18+
| Field | Description |
19+
| --- | --- |
20+
| [ZipLevel0](#ZipLevel0) | The data will be simply stored, with no change at all. |
21+
| [ZipLevel1](#ZipLevel1) | The fastest but least effective compression. |
22+
| [ZipLevel2](#ZipLevel2) | A little slower, but better, than level 1. |
23+
| [ZipLevel3](#ZipLevel3) | A little slower, but better, than level 2. |
24+
| [ZipLevel4](#ZipLevel4) | A little slower, but better, than level 3. |
25+
| [ZipLevel5](#ZipLevel5) | A little slower than level 4, but with better compression. |
26+
| [ZipLevel6](#ZipLevel6) | A little slower than level 5, but with better compression. |
27+
| [ZipLevel7](#ZipLevel7) | Better compression than level 6, but even slower. |
28+
| [ZipLevel8](#ZipLevel8) | Better compression than level 7, but even slower. |
29+
| [ZipLevel9](#ZipLevel9) | The "best" compression, where best means greatest reduction in size of the input data stream. |
30+
| [DeflateRecommended](#DeflateRecommended) | The most optimised compression, with a good balance of speed and compression efficiency. |
31+
### ZipLevel0 {#ZipLevel0}
32+
```
33+
public static final int ZipLevel0
34+
```
35+
36+
37+
The data will be simply stored, with no change at all. Uses a slower deflate implementation with a compression scale.
38+
39+
### ZipLevel1 {#ZipLevel1}
40+
```
41+
public static final int ZipLevel1
42+
```
43+
44+
45+
The fastest but least effective compression. Uses a slower deflate implementation with a compression scale.
46+
47+
### ZipLevel2 {#ZipLevel2}
48+
```
49+
public static final int ZipLevel2
50+
```
51+
52+
53+
A little slower, but better, than level 1. Uses a slower deflate implementation with a compression scale.
54+
55+
### ZipLevel3 {#ZipLevel3}
56+
```
57+
public static final int ZipLevel3
58+
```
59+
60+
61+
A little slower, but better, than level 2. Uses a slower deflate implementation with a compression scale.
62+
63+
### ZipLevel4 {#ZipLevel4}
64+
```
65+
public static final int ZipLevel4
66+
```
67+
68+
69+
A little slower, but better, than level 3. Uses a slower deflate implementation with a compression scale.
70+
71+
### ZipLevel5 {#ZipLevel5}
72+
```
73+
public static final int ZipLevel5
74+
```
75+
76+
77+
A little slower than level 4, but with better compression. Uses a slower deflate implementation with a compression scale.
78+
79+
### ZipLevel6 {#ZipLevel6}
80+
```
81+
public static final int ZipLevel6
82+
```
83+
84+
85+
A little slower than level 5, but with better compression. Uses a slower deflate implementation with a compression scale.
86+
87+
### ZipLevel7 {#ZipLevel7}
88+
```
89+
public static final int ZipLevel7
90+
```
91+
92+
93+
Better compression than level 6, but even slower. Uses a slower deflate implementation with a compression scale.
94+
95+
### ZipLevel8 {#ZipLevel8}
96+
```
97+
public static final int ZipLevel8
98+
```
99+
100+
101+
Better compression than level 7, but even slower. Uses a slower deflate implementation with a compression scale.
102+
103+
### ZipLevel9 {#ZipLevel9}
104+
```
105+
public static final int ZipLevel9
106+
```
107+
108+
109+
The "best" compression, where best means greatest reduction in size of the input data stream. This is also the slowest compression. Uses a slower deflate implementation with a compression scale.
110+
111+
### DeflateRecommended {#DeflateRecommended}
112+
```
113+
public static final int DeflateRecommended
114+
```
115+
116+
117+
The most optimised compression, with a good balance of speed and compression efficiency. Uses a faster deflate implementation with no compression scale.
118+

english/java/com.aspose.imaging.imageoptions/pngoptions/_index.md

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: PngOptions
33
second_title: Aspose.Imaging for Java API Reference
44
description: Create high-quality Portable Network Graphics PNG raster images effortlessly with our API offering customizable options for compression levels bits per pixel depths and alpha bits.
55
type: docs
6-
weight: 37
6+
weight: 38
77
url: /java/com.aspose.imaging.imageoptions/pngoptions/
88
---
99
**Inheritance:**
@@ -34,8 +34,10 @@ Create high-quality Portable Network Graphics (PNG) raster images effortlessly w
3434
| [setProgressive(boolean value)](#setProgressive-boolean-) | Sets a value indicating whether a [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) is progressive. |
3535
| [getFilterType()](#getFilterType--) | Gets the filter type used during png file save process. |
3636
| [setFilterType(int value)](#setFilterType-int-) | Sets the filter type used during png file save process. |
37-
| [getCompressionLevel()](#getCompressionLevel--) | Gets the [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) compression level in the range of 0-9. |
38-
| [setCompressionLevel(int value)](#setCompressionLevel-int-) | Sets the [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) compression level in the range of 0-9. |
37+
| [getCompressionLevel()](#getCompressionLevel--) | Gets the [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) compression level. |
38+
| [setCompressionLevel(int value)](#setCompressionLevel-int-) | Sets the [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) compression level. |
39+
| [getPngCompressionLevel()](#getPngCompressionLevel--) | Gets the [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) compression level. |
40+
| [setPngCompressionLevel(int value)](#setPngCompressionLevel-int-) | Sets the [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) compression level. |
3941
| [getBitDepth()](#getBitDepth--) | Gets the bit depth values in range of 1, 2, 4, 8, 16. |
4042
| [setBitDepth(byte value)](#setBitDepth-byte-) | Sets the bit depth values in range of 1, 2, 4, 8, 16. |
4143

@@ -427,22 +429,22 @@ public final int getCompressionLevel()
427429
```
428430

429431

430-
Gets the [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) compression level in the range of 0-9. The higher the value - the more efficient the compression.
432+
Gets the [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) compression level.
431433

432434
**Returns:**
433-
int - the [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) compression level in the range of 0-9.
435+
int - the [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) compression level.
434436
### setCompressionLevel(int value) {#setCompressionLevel-int-}
435437
```
436438
public final void setCompressionLevel(int value)
437439
```
438440

439441

440-
Sets the [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) compression level in the range of 0-9. The higher the value - the more efficient the compression.
442+
Sets the [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) compression level.
441443

442444
**Parameters:**
443445
| Parameter | Type | Description |
444446
| --- | --- | --- |
445-
| value | int | the [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) compression level in the range of 0-9. |
447+
| value | int | the [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) compression level. |
446448

447449

448450
**Example: The following example shows how to compress a PNG image, using indexed color with best fit palette**
@@ -519,6 +521,29 @@ try {
519521
}
520522
```
521523

524+
### getPngCompressionLevel() {#getPngCompressionLevel--}
525+
```
526+
public final int getPngCompressionLevel()
527+
```
528+
529+
530+
Gets the [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) compression level.
531+
532+
**Returns:**
533+
int - the [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) compression level.
534+
### setPngCompressionLevel(int value) {#setPngCompressionLevel-int-}
535+
```
536+
public final void setPngCompressionLevel(int value)
537+
```
538+
539+
540+
Sets the [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) compression level.
541+
542+
**Parameters:**
543+
| Parameter | Type | Description |
544+
| --- | --- | --- |
545+
| value | int | the [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) compression level. |
546+
522547
### getBitDepth() {#getBitDepth--}
523548
```
524549
public final byte getBitDepth()

0 commit comments

Comments
 (0)