ThreadWebRequest class

A class representing a web-based thread request for image processing.

This class extends ThreadRequest and includes additional options specific to web-related operations, such as how the image bounds are generated and the processing mode.

Inheritance

Constructors

ThreadWebRequest({required String mode, required bool? generateOnlyImageBounds, required String id, required Image image, required OutputFormat outputFormat, required bool singleFrame, required int pngLevel, required PngFilter pngFilter, required int jpegQuality, required JpegChroma jpegChroma})
Creates a new ThreadWebRequest instance.
const
ThreadWebRequest.fromJs(JSAny? value)
A factory constructor to create a ThreadWebRequest instance from a JavaScript object.
factory

Properties

generateOnlyImageBounds bool?
Specifies whether only the bounds of the image should be generated.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
id String
The unique identifier for this task.
finalinherited
image → Image
The image object from the image package.
finalinherited
jpegChroma JpegChroma
Specifies the chroma subsampling method for JPEG images.
finalinherited
jpegQuality int
Specifies the quality level for JPEG images. Ranges from 2 to 100.
finalinherited
mode String
The mode for the web thread request.
final
outputFormat OutputFormat
Specifies the output format for the generated image.
finalinherited
pngFilter PngFilter
Specifies the filter method for optimizing PNG compression.
finalinherited
pngLevel int
Specifies the compression level for PNG images. Ranges from 0 to 9.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
singleFrame bool
Specifies whether single frame generation is enabled for the output formats PNG, TIFF, CUR, PVR, and ICO.
finalinherited

Methods

imageToMap() Map<String, dynamic>
Converts the image property into a Map<String, dynamic> representation.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toConvertThreadRequest() ImageConvertThreadRequest
Converts the ThreadWebRequest instance into an ImageConvertThreadRequest.
inherited
toMap() Map<String, dynamic>
Converts the ThreadWebRequest instance into a Map<String, dynamic> representation.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited