home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!gumby!destroyer!sol.ctr.columbia.edu!mary.fordham.edu!sbhatia
- From: sbhatia@mary.fordham.edu (SABU)
- Subject: How to resize image when windowis resized by user
- Sender: nobody@ctr.columbia.edu
- Organization: Fordham University
- Date: Tue, 10 Nov 1992 15:29:00 GMT
- News-Software: VAX/VMS VNEWS 1.41
- Message-ID: <10NOV199211291724@mary.fordham.edu>
- Distribution: usa
- X-Posted-From: mary.fordham.edu
- NNTP-Posting-Host: sol.ctr.columbia.edu
- Lines: 29
-
- Hi,
-
- I CURRENTLY HAVE AN APPLICATION IN WHICH I USE XLIB TO PLOT CERTAIN
- 2-D CURVES. THE PROBLEM I AM ENCOUNTERING ARE-:
-
- (1.) The user resizes the window. Currently what I do is that on
- recivg the specific events I get the co-ordinates of the new location
- of the window and determine the new size. Next I clear the entire
- window, and then rescale the co-ordinates of my graph based on this
- new information and redraw it. This is an awful lot of work and for
- complex graphs consisting of multiple curves I notice a significant
- slow down. Is there a better way to do this.
-
- (2.) Expose events. When my window receives an expose event for instance
- it has just got uncovered by a window I redraw the whole graph all over
- again. Is there an efficient method whereby I can just just redraw
- only the portion that has been destroyed.
-
-
- thanks,
-
- sabu
-
- ////////////////////////////////////////////////////////////////////////
- / Internet: SBHATIA@mary.fordham.edu /
- / BITnet: SBHATIA@FORDMULC /
- / /
- / /
- ////////////////////////////////////////////////////////////////////////
-