Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!seismo!mimsy!mark From: mark@mimsy.UUCP Newsgroups: comp.graphics Subject: Re: Bounding boxes and drawing dashed vectors in SunView Message-ID: <5589@mimsy.UUCP> Date: Wed, 25-Feb-87 14:25:21 EST Article-I.D.: mimsy.5589 Posted: Wed Feb 25 14:25:21 1987 Date-Received: Fri, 27-Feb-87 23:27:44 EST References: <2601@phri.UUCP> Reply-To: mark@mimsy.UUCP (Mark Weiser) Organization: PRISM Group, University of Maryland, College Park, MD 20742 Lines: 23 In article <2601@phri.UUCP> roy@phri.UUCP (Roy Smith) writes: > > I have two questions about the SunView pixrect package. > > First, is there an easy way to find the bounding box of a memory >pixrect? ...The only way I can see to find the bounding box is by brute force >raster scanning of the pixrect using pr_get(), but this is bound to be >slow. Is there a faster way? If you are using pr_load then you have got memory pixrect, and their representation in memory is guaranteed and documented (in the Pixrect Reference guide). You can essentially deal with the pixels as an array of shorts, which is much faster than using pr_get(). > > My second question concerns drawing dashed vectors. > SunOS 3.2 has a dashed (and other shaped) vector primitive that was not there in previous versions. -mark -- Spoken: Mark Weiser ARPA: mark@mimsy.umd.edu Phone: +1-301-454-7817 After May 1, 1987: weiser@xerox.com