Skip to content

Commit

Permalink
Release 23.12 - Imaging Net and Java updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Samer El-Khatib committed Dec 18, 2023
1 parent c847529 commit 8103ad6
Show file tree
Hide file tree
Showing 201 changed files with 734 additions and 286 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ DjvuDocument class

| Method | Description |
| --- | --- |
| [loadDocument(InputStream stream)](#loadDocument-java.io.InputStream-) | Loads the document. |
| [loadDocument(InputStream stream, LoadOptions loadOptions)](#loadDocument-java.io.InputStream-com.aspose.imaging.LoadOptions-) | Loads the document. |
| [getIdentifier()](#getIdentifier--) | Gets the unique identifier for the document |
| [getPageCount()](#getPageCount--) | Gets the page count. |
| [getPages()](#getPages--) | Gets the pages. |
Expand All @@ -41,8 +43,6 @@ DjvuDocument class
| [getPreviousPage()](#getPreviousPage--) | Gets the previous page of the document |
| [getFileFormat()](#getFileFormat--) | Gets a value of file format |
| [hasAlpha()](#hasAlpha--) | Gets the Has alpha channel. |
| [loadDocument(InputStream stream)](#loadDocument-java.io.InputStream-) | Loads the document. |
| [loadDocument(InputStream stream, LoadOptions loadOptions)](#loadDocument-java.io.InputStream-com.aspose.imaging.LoadOptions-) | Loads the document. |
| [rotate(float angle, boolean resizeProportionally, Color backgroundColor)](#rotate-float-boolean-com.aspose.imaging.Color-) | `!:RasterCahcedMultipageImage.Rotate` image around the center. |
| [resize(int newWidth, int newHeight, int resizeType)](#resize-int-int-int-) | Resizes the image. |
| [resizeWidthProportionally(int newWidth, int resizeType)](#resizeWidthProportionally-int-int-) | Resizes the width proportionally. |
Expand Down Expand Up @@ -133,6 +133,37 @@ public final StdEvent<System.ComponentModel.PropertyChangedEventArgs> PropertyCh

Occurs when a property value changes.

### loadDocument(InputStream stream) {#loadDocument-java.io.InputStream-}
```
public static DjvuImage loadDocument(InputStream stream)
```


Loads the document.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| stream | java.io.InputStream | The stream. |

**Returns:**
[DjvuImage](../../com.aspose.imaging.fileformats.djvu/djvuimage) - Loaded djvu document
### loadDocument(InputStream stream, LoadOptions loadOptions) {#loadDocument-java.io.InputStream-com.aspose.imaging.LoadOptions-}
```
public static DjvuImage loadDocument(InputStream stream, LoadOptions loadOptions)
```


Loads the document.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| stream | java.io.InputStream | The stream. |
| loadOptions | [LoadOptions](../../com.aspose.imaging/loadoptions) | The load options. |

**Returns:**
[DjvuImage](../../com.aspose.imaging.fileformats.djvu/djvuimage) - Loaded djvu document
### getIdentifier() {#getIdentifier--}
```
public int getIdentifier()
Expand Down Expand Up @@ -418,37 +449,6 @@ Value: The Has alpha channel.

**Returns:**
boolean - the Has alpha channel.
### loadDocument(InputStream stream) {#loadDocument-java.io.InputStream-}
```
public static DjvuImage loadDocument(InputStream stream)
```


Loads the document.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| stream | java.io.InputStream | The stream. |

**Returns:**
[DjvuImage](../../com.aspose.imaging.fileformats.djvu/djvuimage) - Loaded djvu document
### loadDocument(InputStream stream, LoadOptions loadOptions) {#loadDocument-java.io.InputStream-com.aspose.imaging.LoadOptions-}
```
public static DjvuImage loadDocument(InputStream stream, LoadOptions loadOptions)
```


Loads the document.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| stream | java.io.InputStream | The stream. |
| loadOptions | [LoadOptions](../../com.aspose.imaging/loadoptions) | The load options. |

**Returns:**
[DjvuImage](../../com.aspose.imaging.fileformats.djvu/djvuimage) - Loaded djvu document
### rotate(float angle, boolean resizeProportionally, Color backgroundColor) {#rotate-float-boolean-com.aspose.imaging.Color-}
```
public void rotate(float angle, boolean resizeProportionally, Color backgroundColor)
Expand Down
112 changes: 68 additions & 44 deletions english/java/com.aspose.imaging.imageoptions/pngoptions/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ The png file format create options.

| Method | Description |
| --- | --- |
| [getXmpData()](#getXmpData--) | Gets or sets the XMP metadata container. |
| [setXmpData(XmpPacketWrapper value)](#setXmpData-com.aspose.imaging.xmp.XmpPacketWrapper-) | Gets or sets the XMP metadata container. |
| [getColorType()](#getColorType--) | Gets or sets the type of the color. |
| [setColorType(int value)](#setColorType-int-) | Gets or sets the type of the color. |
| [getProgressive()](#getProgressive--) | Gets or sets a value indicating whether this `PngOptions` is progressive. |
| [setProgressive(boolean value)](#setProgressive-boolean-) | Gets or sets a value indicating whether this `PngOptions` is progressive. |
| [getFilterType()](#getFilterType--) | Gets or sets the filter type used during png file save process. |
| [setFilterType(int value)](#setFilterType-int-) | Gets or sets the filter type used during png file save process. |
| [getCompressionLevel()](#getCompressionLevel--) | The png image compression level in the 0-9 range, where 9 is maximum compression and 0 is store mode. |
| [setCompressionLevel(int value)](#setCompressionLevel-int-) | The png image compression level in the 0-9 range, where 9 is maximum compression and 0 is store mode. |
| [getBitDepth()](#getBitDepth--) | Gets the bit depth. |
| [setBitDepth(byte value)](#setBitDepth-byte-) | Sets the bit depth. |
| [getXmpData()](#getXmpData--) | Gets the XMP metadata container. |
| [setXmpData(XmpPacketWrapper value)](#setXmpData-com.aspose.imaging.xmp.XmpPacketWrapper-) | Sets the XMP metadata container. |
| [getColorType()](#getColorType--) | Gets the type of the color. |
| [setColorType(int value)](#setColorType-int-) | Sets the type of the color. |
| [getProgressive()](#getProgressive--) | Gets a value indicating whether a [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) is progressive. |
| [setProgressive(boolean value)](#setProgressive-boolean-) | Sets a value indicating whether a [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) is progressive. |
| [getFilterType()](#getFilterType--) | Gets the filter type used during png file save process. |
| [setFilterType(int value)](#setFilterType-int-) | Sets the filter type used during png file save process. |
| [getCompressionLevel()](#getCompressionLevel--) | Gets the [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) compression level in the range of 0-9. |
| [setCompressionLevel(int value)](#setCompressionLevel-int-) | Sets the [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) compression level in the range of 0-9. |
| [getBitDepth()](#getBitDepth--) | Gets the bit depth values in range of 1, 2, 4, 8, 16. |
| [setBitDepth(byte value)](#setBitDepth-byte-) | Sets the bit depth values in range of 1, 2, 4, 8, 16. |

## Example: This example demonstrates the use of different classes from SaveOptions Namespace for export purposes.
This example demonstrates the use of different classes from SaveOptions Namespace for export purposes. An image of type Gif is loaded into an instance of Image and then exported out to several formats.
Expand Down Expand Up @@ -133,49 +133,53 @@ public XmpPacketWrapper getXmpData()
```


Gets or sets the XMP metadata container.
Gets the XMP metadata container.

Value: The XMP data container.

**Returns:**
[XmpPacketWrapper](../../com.aspose.imaging.xmp/xmppacketwrapper)
[XmpPacketWrapper](../../com.aspose.imaging.xmp/xmppacketwrapper) - the XMP metadata container.
### setXmpData(XmpPacketWrapper value) {#setXmpData-com.aspose.imaging.xmp.XmpPacketWrapper-}
```
public void setXmpData(XmpPacketWrapper value)
```


Gets or sets the XMP metadata container.
Sets the XMP metadata container.

Value: The XMP data container.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [XmpPacketWrapper](../../com.aspose.imaging.xmp/xmppacketwrapper) | |
| value | [XmpPacketWrapper](../../com.aspose.imaging.xmp/xmppacketwrapper) | the XMP metadata container. |

### getColorType() {#getColorType--}
```
public int getColorType()
public final int getColorType()
```


Gets or sets the type of the color.
Gets the type of the color.

Value: The type of the color.

**Returns:**
int - The type of the color.
int - the type of the color.
### setColorType(int value) {#setColorType-int-}
```
public void setColorType(int value)
public final void setColorType(int value)
```


Gets or sets the type of the color.
Sets the type of the color.

Value: The type of the color.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | The type of the color. |
| value | int | the type of the color. |


**Example: The following example shows how to compress a PNG image, using indexed color with best fit palette**
Expand Down Expand Up @@ -254,26 +258,30 @@ try {

### getProgressive() {#getProgressive--}
```
public boolean getProgressive()
public final boolean getProgressive()
```


Gets or sets a value indicating whether this `PngOptions` is progressive.
Gets a value indicating whether a [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) is progressive.

Value: `` if progressive; otherwise, ``.

**Returns:**
boolean - `true` if progressive; otherwise, `false`.
boolean - a value indicating whether a [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) is progressive.
### setProgressive(boolean value) {#setProgressive-boolean-}
```
public void setProgressive(boolean value)
public final void setProgressive(boolean value)
```


Gets or sets a value indicating whether this `PngOptions` is progressive.
Sets a value indicating whether a [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) is progressive.

Value: `` if progressive; otherwise, ``.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | `true` if progressive; otherwise, `false`. |
| value | boolean | a value indicating whether a [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) is progressive. |


**Example: The following example shows how to compress a PNG image, using indexed color with best fit palette**
Expand Down Expand Up @@ -347,21 +355,21 @@ try {

### getFilterType() {#getFilterType--}
```
public int getFilterType()
public final int getFilterType()
```


Gets or sets the filter type used during png file save process.
Gets the filter type used during png file save process.

**Returns:**
int - the filter type used during png file save process.
### setFilterType(int value) {#setFilterType-int-}
```
public void setFilterType(int value)
public final void setFilterType(int value)
```


Gets or sets the filter type used during png file save process.
Sets the filter type used during png file save process.

**Parameters:**
| Parameter | Type | Description |
Expand Down Expand Up @@ -444,26 +452,26 @@ for (int filterType : filterTypes) {

### getCompressionLevel() {#getCompressionLevel--}
```
public int getCompressionLevel()
public final int getCompressionLevel()
```


The png image compression level in the 0-9 range, where 9 is maximum compression and 0 is store mode.
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.

**Returns:**
int - the compression level in the 0-9 range, where 9 is maximum compression and 0 is store mode.
int - the [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) compression level in the range of 0-9.
### setCompressionLevel(int value) {#setCompressionLevel-int-}
```
public void setCompressionLevel(int value)
public final void setCompressionLevel(int value)
```


The png image compression level in the 0-9 range, where 9 is maximum compression and 0 is store mode.
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.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the compression level in the 0-9 range, where 9 is maximum compression and 0 is store mode. |
| value | int | the [PngImage](../../com.aspose.imaging.fileformats.png/pngimage) compression level in the range of 0-9. |


**Example: The following example shows how to compress a PNG image, using indexed color with best fit palette**
Expand Down Expand Up @@ -542,26 +550,42 @@ try {

### getBitDepth() {#getBitDepth--}
```
public byte getBitDepth()
public final byte getBitDepth()
```


Gets the bit depth.
Gets the bit depth values in range of 1, 2, 4, 8, 16.

Mind the next limits:

[PngColorType.Grayscale](../../com.aspose.imaging.fileformats.png/pngcolortype\#Grayscale), [PngColorType.IndexedColor](../../com.aspose.imaging.fileformats.png/pngcolortype\#IndexedColor) support bit depth of 1, 2, 4, 8.

[PngColorType.GrayscaleWithAlpha](../../com.aspose.imaging.fileformats.png/pngcolortype\#GrayscaleWithAlpha) supports bit depth of 8.

[PngColorType.Truecolor](../../com.aspose.imaging.fileformats.png/pngcolortype\#Truecolor), [PngColorType.TruecolorWithAlpha](../../com.aspose.imaging.fileformats.png/pngcolortype\#TruecolorWithAlpha) support bit depth of 8, 16.

**Returns:**
byte - The bit depth.
byte - the bit depth values in range of 1, 2, 4, 8, 16.
### setBitDepth(byte value) {#setBitDepth-byte-}
```
public void setBitDepth(byte value)
public final void setBitDepth(byte value)
```


Sets the bit depth.
Sets the bit depth values in range of 1, 2, 4, 8, 16.

Mind the next limits:

[PngColorType.Grayscale](../../com.aspose.imaging.fileformats.png/pngcolortype\#Grayscale), [PngColorType.IndexedColor](../../com.aspose.imaging.fileformats.png/pngcolortype\#IndexedColor) support bit depth of 1, 2, 4, 8.

[PngColorType.GrayscaleWithAlpha](../../com.aspose.imaging.fileformats.png/pngcolortype\#GrayscaleWithAlpha) supports bit depth of 8.

[PngColorType.Truecolor](../../com.aspose.imaging.fileformats.png/pngcolortype\#Truecolor), [PngColorType.TruecolorWithAlpha](../../com.aspose.imaging.fileformats.png/pngcolortype\#TruecolorWithAlpha) support bit depth of 8, 16.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | byte | The bit depth. |
| value | byte | the bit depth values in range of 1, 2, 4, 8, 16. |


**Example: The following example shows how to save an image to PNG format using various options.**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ public String getXmpRepresentation()
Returns string contained value in XMP format.

**Returns:**
java.lang.String - Returns string contained value in XMP format.
java.lang.String - Returns string containing xmp representation.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public String getXmpRepresentation()
Returns the string contained value in XMP format.

**Returns:**
java.lang.String - Returns the string contained value in XMP format.
java.lang.String - Returns the string containing xmp representation.
### isEquals(Timecode other) {#isEquals-com.aspose.imaging.xmp.schemas.xmpdm.Timecode-}
```
public boolean isEquals(Timecode other)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ public String getXmpRepresentation()
Returns string contained value in XMP format.

**Returns:**
java.lang.String - Returns string contained value in XMP format.
java.lang.String - Returns string containing xmp representation.
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,4 @@ public String getXmpRepresentation()
Returns string contained value in XMP format.

**Returns:**
java.lang.String - Returns string contained value in XMP format.
java.lang.String - Returns string containing xmp representation
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ public abstract String getXmpRepresentation()
Gets the string contained value in XMP format.

**Returns:**
java.lang.String - Returns the string contained value in XMP format.
java.lang.String - Returns the string containing xmp representation.
1 change: 1 addition & 0 deletions english/java/com.aspose.imaging/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ The package is the core for nested packages and the most basic objects used for
| [Rectangle](../com.aspose.imaging/rectangle) | Stores a set of four integers that represent the location and size of a rectangle. |
| [RectangleF](../com.aspose.imaging/rectanglef) | Stores a set of four floating-point numbers that represent the location and size of a rectangle. |
| [Region](../com.aspose.imaging/region) | Describes the interior of a graphics shape composed of rectangles and paths. |
| [RemoveBackgroundSettings](../com.aspose.imaging/removebackgroundsettings) | The remove background settings |
| [ResizeType](../com.aspose.imaging/resizetype) | Specifies the resize type. |
| [ResolutionSetting](../com.aspose.imaging/resolutionsetting) | The resolution setting for image save options. |
| [ResolutionUnit](../com.aspose.imaging/resolutionunit) | Resolution unit enum. |
Expand Down
2 changes: 1 addition & 1 deletion english/java/com.aspose.imaging/customfontsource/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: CustomFontSource
second_title: Aspose.Imaging for Java API Reference
description: Custom font source provider interface
type: docs
weight: 121
weight: 122
url: /java/com.aspose.imaging/customfontsource/
---```
public interface CustomFontSource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: IAdvancedBufferProcessor
second_title: Aspose.Imaging for Java API Reference
description: The advanced buffer processor.
type: docs
weight: 122
weight: 123
url: /java/com.aspose.imaging/iadvancedbufferprocessor/
---
**All Implemented Interfaces:**
Expand Down
Loading

0 comments on commit 8103ad6

Please sign in to comment.