anymap-xres-set!

Synopsis

(anymap-xres-set! anymap number)

Parameters

  • anymap: Either a bitmap, a greymap, a 16 bit graymap or a colormap
  • number: A number (exact or inexact)

Description

The procedures bitmap-xres-set!, greymap-xres-set!, graymap-xres-set! and colormap-xres-set! are aliases being bound to this primitive procedure for compatibilty.

Side Effects

The xres value of the anymap is set to number.

Return Value

The X-resolution of the anymap just set is returned.

Example

> (define bitmap (bitmap-create 100 200))
bitmap
> (anymap-xres-set! bitmap 150)
150
> bitmap
#<bitmap orow:-1 ocol:-1 xres:150 yres:-1 h:100 w:200>
> (anymap-xres-set! bitmap 200.0)
200.0
> bitmap
#<bitmap orow:-1 ocol:-1 xres:200 yres:-1 h:100 w:200>
>