Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site amiga.amiga.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!pyramid!amiga!dale From: dale@amiga.UUCP (Dale Luck) Newsgroups: net.micro.amiga Subject: Re: Scrolling a SUPERBITMAP raster in Intuition Window Message-ID: <666@amiga.amiga.UUCP> Date: Sat, 8-Feb-86 12:38:20 EST Article-I.D.: amiga.666 Posted: Sat Feb 8 12:38:20 1986 Date-Received: Tue, 11-Feb-86 05:40:39 EST References: <168@bubba.UUCP> Reply-To: dale@tooter.UUCP (Dale Luck) Distribution: net Organization: Commodore-Amiga Inc., 983 University Ave #D, Los Gatos CA 95030 Lines: 33 In article <168@bubba.UUCP> san@bubba.UUCP writes: >The scenario and main question is that I have a 1K by 1K bitmap with >my pre-drawn image on it, and I want to be able to look at ANY portion >of the bitmap from a window on the workbench. >..... >would be possible to scroll the contents of a raster within an >Intuition window. Use ScrollLayer(0,layer,dx,dy) You must first open the layer library ("layer.library",31) get the layer from your window->WLayer V1.1 dx,dy are values that causes scrolling towards upper-left. Note: You should be using a GIMMEZEROZERO window. > >lower level I would change the RxOffset and RyOffset for the ViewPort >to change what portion is being displayed, how does one do that for an >Intuition window? Do I need to obtain the ViewPort structure for my >that I've changed the values? Or, do I then do a MakeVPort(), MgrCop() >and LoadView() ? If so, where do I get the RasInfo structure for my >window? Would I have to do a RethinkDisplay() or RemakeDisplay() each >time I wanted to change what I'm looking at? The RasInfo,ViewPort stuff is for scrolling the common bitmap of a screen. This is supported by the display hardware so smooth scrolling of ViewPorts is "easy". ScrollLayer, above, must shuffle bits in and out of your displayed window. > >Lastly, what are some of the uses of the Inutuition ViewAddress() and >ViewPortAddress() routines ? You just described them above. To make use of the Screen/ViewPort features of the system while using Intuition.