Interface IImageOptionsBuilder2
interface IImageOptionsBuilder2
Extends IImageOptionsBuilder
It extends IImageOptionsBuilder to provide additional configuration options
for progressive rendering and resize method of an IImage.
Methods
progressiveRenderingEnabled()
Enables or disables progressive rendering for the image. Progressive rendering displays the image gradually as it’s downloaded, providing faster visual feedback compared to waiting for the full image. It allows users to see a low-resolution version of the image first, which progressively improves in quality. It is disabled by default.voidprogressiveRenderingEnabled(boolprogressiveRenderingEnabled)
Parameters
progressiveRenderingEnabled
bool — Required
True to enable progressive rendering, false otherwise.
resizeMethod()
Sets the resize method for the image. The resize method determines how the image is scaled when its dimensions don’t match the target size. The default value isvoidresizeMethod(ResizeMethodresizeMethod)
ResizeMethod::AUTO.
Parameters
resizeMethod
ResizeMethod — Required
The resize method ResizeMethod to use.

