A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://api.flutter.dev/flutter/dart-ui/Picture/toImageSync.html below:

toImageSync method - Picture class - dart:ui library

toImageSync abstract method

Image toImageSync(
  1. int width,
  2. int height
)

Synchronously creates a handle to an image of this picture.

The returned image will be width pixels wide and height pixels high. The picture is rasterized within the 0 (left), 0 (top), width (right), height (bottom) bounds. Content outside these bounds is clipped.

The image object is created and returned synchronously, but is rasterized asynchronously. If the rasterization fails, an exception will be thrown when the image is drawn to a Canvas.

If a GPU context is available, this image will be created as GPU resident and not copied back to the host. This means the image will be more efficient to draw.

If no GPU context is available, the image will be rasterized on the CPU.

Implementation
Image toImageSync(int width, int height);

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4