Gly.FrameRequest.set_scale

### Method

# Gly FrameRequestset_scale

since: 2.0

#### Declaration [src]

    void
    gly_frame_request_set_scale (
      GlyFrameRequest* frame_request,
      uint32_t width,
      uint32_t height
    )

#### Description [src]

Set maximum dimensions for the frame. The texture will be scaled to be within the maximum dimensions while keeping its aspect ratio. This option is especially useful to SVGs which will be rendered at the respective size.

Warning

Most loaders will ignore this option. Currently, only the SVG loader is known to obey it.

Available since: 2.0

#### Parameters

`width`

  Type: `uint32_t`

  Maximum width.

`height`

  Type: `uint32_t`

  Maximum height.