4.8 Resizing
procedure
(flomap-copy fm x-start y-start x-end y-end) → flomap
fm : flomap x-start : Integer y-start : Integer x-end : Integer y-end : Integer
The interval arguments may identify a rectangle with points outside the bounds of fm. In this case, the points’ values in the returned flomap are 0.0, as per the Conceptual Model.
This function is guaranteed to return a copy.
Use subflomap instead of flomap-copy when programming functionally. Every library function that returns parts of a flomap (such as flomap-trim and flomap-inset) is defined using subflomap.
procedure
(flomap-trim fm [alpha?]) → flomap
fm : flomap alpha? : Boolean = #t
This function cannot return a larger flomap.
Examples: | |||||||||||
|
procedure
(flomap-inset fm amt) → flomap
fm : flomap amt : Integer (flomap-inset fm h-amt v-amt) → flomap fm : flomap h-amt : Integer v-amt : Integer (flomap-inset fm l-amt t-amt r-amt b-amt) → flomap fm : flomap l-amt : Integer t-amt : Integer r-amt : Integer b-amt : Integer
Example: | ||
|
procedure
(flomap-crop fm w h left-frac top-frac) → flomap
fm : flomap w : Integer h : Integer left-frac : Real top-frac : Real
You will most likely want to use one of the following cropping functions instead, which are defined using flomap-crop.
procedure
(flomap-lt-crop fm w h) → flomap
fm : flomap w : Integer h : Integer
procedure
(flomap-lc-crop fm w h) → flomap
fm : flomap w : Integer h : Integer
procedure
(flomap-lb-crop fm w h) → flomap
fm : flomap w : Integer h : Integer
procedure
(flomap-ct-crop fm w h) → flomap
fm : flomap w : Integer h : Integer
procedure
(flomap-cc-crop fm w h) → flomap
fm : flomap w : Integer h : Integer
procedure
(flomap-cb-crop fm w h) → flomap
fm : flomap w : Integer h : Integer
procedure
(flomap-rt-crop fm w h) → flomap
fm : flomap w : Integer h : Integer
procedure
(flomap-rc-crop fm w h) → flomap
fm : flomap w : Integer h : Integer
procedure
(flomap-rb-crop fm w h) → flomap
fm : flomap w : Integer h : Integer
> (flomap->bitmap (flomap-lt-crop fm 150 150))
procedure
(flomap-scale fm x-scale [y-scale]) → flomap
fm : flomap x-scale : Real y-scale : Real = x-scale
Examples: | ||||||
|
Examples: | ||||||||
|