cassidy@memory.dec.com (SHR1-3/O11..DTN 237-3413) (08/21/87)
Can anyone tell me how to draw into an offscreen bit map that is larger than screen.bounds? The default VisRgn is screen.bounds, and DrawPicture clips to this region. Any way to change the VisRgn legally? Thanks. Charlie Cassidy Digital Equipment Corp. Electronic Storage Development cassidy@memory.dec.com -or- {decvax, ucbvax, allegra or your favorite path to}!decwrl!memory!cassidy USnail: Digital Equipment Corp Phone: (617) 841-3413 333 South St. SHR1-3/O11 Shrewsbury, MA 01545
stew@endor.harvard.edu (Stew Rubenstein) (08/24/87)
In article <11505@decwrl.DEC.COM> cassidy@memory.dec.com (SHR1-3/O11..DTN 237-3413) writes: >Can anyone tell me how to draw into an offscreen bit map that is larger >than screen.bounds? The default VisRgn is screen.bounds, and DrawPicture >clips to this region. Any way to change the VisRgn legally? Thanks. You can do anything you want to a port with an offscreen bitmap. Just RectRgn(offScreenPort->visRgn, &offScreenPort.portRect) and same for clipRgn. Stew Rubenstein Cambridge Scientific Computing, Inc. UUCPnet: seismo!harvard!rubenstein CompuServe: 76525,421 Internet: rubenstein@harvard.harvard.edu MCIMail: CSC
lsr@apple.UUCP (Larry Rosenstein) (08/24/87)
In article <11505@decwrl.DEC.COM> cassidy@memory.dec.com (SHR1-3/O11..DTN 237-3413) writes: >Can anyone tell me how to draw into an offscreen bit map that is larger >than screen.bounds? The default VisRgn is screen.bounds, and DrawPicture >clips to this region. Any way to change the VisRgn legally? Thanks. If the port is off screen, then there is no reason why you can't change the visRgn yourself. Do something like: RectRgn(port.visRgn, port.PortRect); You should not do this for ports that are on the screen (eg, windows), since maintaining the visRgn is the responsibility of the Window Manager. For offscreen bitmaps, you have to assume this responsibility, since the Window Manager won't help you. -- Larry Rosenstein Object Specialist Apple Computer AppleLink: Rosenstein1 UUCP: {sun, voder, nsc, mtxinu, dual}!apple!lsr CSNET: lsr@Apple.com