🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #37513

Re: need help using Xlib to zoom images

#37513
From: Bob Scheifler
Date: Wed, 28 Feb 1990 21:45
14 lines
889 bytes
    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.
Technical Details
Message-ID: <9002282145.AA00738@expire.lcs.mit.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!EXPO.LCS.MIT.EDU!rws
References: <48965@lll-winken.LLNL.GOV>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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