Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: need help using Xlib to zoom images Message-ID: <9002282145.AA00738@expire.lcs.mit.edu> Date: 28 Feb 90 21:45:06 GMT References: <48965@lll-winken.LLNL.GOV> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 14 Something is going wrong -> the image is appearing at a 90 degree angle from how it should appear, You are doing pix_value = XGetPixel(orig_image, row, col); but it's really XGetPixel(ximage, x, y); you have the args reversed. plus it's backwards and sometimes extra garbage appears! You are arbitrarily smashing bitmap_unit and bitmap_pad; that's not a reasonable thing to do for the source image.