class SetImageSampleRegion

Defined at line 824 of file fidling/gen/sdk/fidl/fuchsia.ui.composition/fuchsia.ui.composition/cpp/fidl/fuchsia.ui.composition/cpp/markers.h

This function is used to determine the region (in texel space) of an image that will be used

by Flatland when rendering. The image to be sampled is referenced by [`image_id`] and the

sample region is specified by [`rect`] which itself is comprised of an origin point (x,y) as

well as a width and height, in unnormalized coordinates. It is illegal to call this function

on non-image content, or to sample a region outside of the texel space of the image. In

other words, the region specifed by [`rect`] must not exceed the ranges (0, image_width) and

(0, image_height). If (rect.x + rect.width > image_width) or (rect.y + rect.height >

image_height) or if any of the values are negative, this will result in an error.

If this method is not called, the default sample region is the rectangle with origin at

(0, 0) and width and height set at ImageProperties from [`CreateImage`].

Public Members

static const bool kHasClientToServer
static const bool kHasClientToServerBody
static const bool kHasServerToClient
static const bool kHasServerToClientBody
static const bool kHasNonEmptyUserFacingResponse
static const bool kHasDomainError
static const bool kHasFrameworkError
static const uint64_t kOrdinal