Skip to the navigation links
Last modified: December 2009

URL: http://cxc-newtest.cfa.harvard.edu/ciao4.2/regprintregion.html
AHELP for CIAO 4.2

regPrintRegion

Context: region

Synopsis

Print out details about a region.

Syntax

regPrintRegion( Region_Type Region )

Description

The regPrintRegion routine prints the various shapes and components within a region to the screen (i.e. to stdout).

The region module is not available by default; to use it in a S-Lang program, it must be loaded using the S-Lang require() function:

  require("region");

Example 1

slsh> require("region");
slsh> reg = regParse("circle(10,10,4)");
slsh> print(reg);
Region_Type
slsh> regPrintRegion(reg);

1 Circle(10.000000, 10.000000, 4.000000) (Pos: pixel, Size: pixel)

Example 2

slsh> reg = regParse("circle(10,10,4)-rect(4,2,5,4)");
slsh> regPrintRegion(reg);

1 Circle(10.000000, 10.000000, 4.000000) (Pos: pixel, Size: pixel)
1 !Rectangle(4.000000, 2.000000, 5.000000, 4.000000) (Pos: pixel, Size:
pixel)

Bugs

See the bugs page for the region library on the CIAO website for an up-to-date listing of known bugs.

See Also

modules
region
region
regarea, regextent, reginsideregion, regparse, regprintregion, regregionstring

Last modified: December 2009