Represents the image-rendering
CSS property.
Represents the image-rendering
CSS property.
The ImageRendering
property in the BaseStyles
class is used to control the rendering of images in the UI. It corresponds to the CSS image-rendering
property, which can be used to specify how images should be scaled or rendered, such as maintaining pixelated edges or smoothing them out.
This property is nullable, meaning it can be set to a specific ImageRendering
value or left unset (null) to use the default rendering behavior.
// Example of setting the ImageRendering property var styles = new BaseStyles(); styles.ImageRendering = ImageRendering.Pixelated; // Sets the image rendering to pixelated // To reset to default behavior styles.ImageRendering = null;