IcoOptions
内容
[
隐藏
]Inheritance: java.lang.Object, com.aspose.imaging.DisposableObject, com.aspose.imaging.ImageOptionsBase
public class IcoOptions extends ImageOptionsBase
使用我们的 API 轻松创建自定义 ICO 图像文件,以便为应用程序图标提供无缝的呈现。我们的 API 支持 PNG 和 BMP 图像帧,具备多种每像素位深,确保在图标创建需求中的多功能性和兼容性。
构造函数
| 构造函数 | 描述 |
|---|---|
| IcoOptions() | 初始化一个新的 IcoOptions 类实例,ICO 帧格式设置为 Png,bitsPerPixel 设置为 32。 |
| IcoOptions(IcoOptions options) | |
| IcoOptions(long format) | 初始化一个新的 IcoOptions 类实例,ICO 帧格式设置为 [format],bitsPerPixel 设置为 32。 |
| IcoOptions(long format, int bitsPerPixel) | 初始化一个新的 IcoOptions 类实例。 |
方法
| 方法 | 描述 |
|---|---|
| getFormat() | 获取 ICO 帧格式。 |
| setFormat(long value) | 设置 ICO 帧格式。 |
| getBitsPerPixel() | 获取每像素位深值。 |
| setBitsPerPixel(int value) | 设置每像素位深值。 |
IcoOptions()
public IcoOptions()
初始化一个新的 IcoOptions 类实例,ICO 帧格式设置为 Png,bitsPerPixel 设置为 32。
IcoOptions(IcoOptions options)
public IcoOptions(IcoOptions options)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| options | IcoOptions |
IcoOptions(long format)
public IcoOptions(long format)
初始化一个新的 IcoOptions 类实例,ICO 帧格式设置为 [format],bitsPerPixel 设置为 32。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| format | long | ICO 帧格式。请注意,ICO 图像仅支持 FileFormat.Png 和 FileFormat.Bmp 图像作为条目。 |
IcoOptions(long format, int bitsPerPixel)
public IcoOptions(long format, int bitsPerPixel)
初始化一个新的 IcoOptions 类实例。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| format | long | ICO 帧格式。请注意,ICO 图像仅支持 FileFormat.Png 和 FileFormat.Bmp 图像作为条目。 |
| bitsPerPixel | int | 每像素位深值。 |
getFormat()
public final long getFormat()
获取 ICO 帧格式。
Returns: long - ICO 帧格式。
setFormat(long value)
public final void setFormat(long value)
设置 ICO 帧格式。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | long | ICO 帧格式。 |
getBitsPerPixel()
public final int getBitsPerPixel()
获取每像素位深值。
Returns: int - 每像素位深值。
setBitsPerPixel(int value)
public final void setBitsPerPixel(int value)
设置每像素位深值。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | int | 每像素位深值。 |