Re: scaling image using rectcopy

New Message Reply Date view Thread view Subject view Author view

Michael Jones (mtj++at++babar)
Wed, 30 Mar 1994 09:04:12 -0800


On Mar 30, 10:00am, Takeshi Hashimoto wrote:
> Subject: scaling image using rectcopy
:Hi,
: I wrote a program in Performer whose window size is 320x240
:pixel. I want to display it's 320x240 window to NTSC full
:screen by Galileo Video.
:How can I do it?
:
:I tried to scale image after pfDraw ,using rectzoom and rectcopy
:but it didn't work as I want.
:
:in draw process
:DrawFunc( pfChannel *chan, void *data)
: ....
:
: pfDraw();
: afunction(0,AF_ALWAYS);
: viewport(0,639,0,479);
: rectzoom(2.0f,2.0f);
: rectcopy(0,0,319,239,0,0);
:}
:
:Is it wrong?

They way to do this is to simply make the pfPipe's origin and size
match the Galileo Video's expectations. Take the code above out
of the Channel Draw Callback, and simply make the Pipeline
Initialization Callback specify the desired window size and
origin. That's all there should be to it.

-- 

Be seeing you, mtj++at++sgi.com 415.390.1455 M/S 7L-590 Michael Jones Silicon Graphics, Advanced Graphics Division 2011 N. Shoreline Blvd., Mtn. View, CA 94039-7311


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:13 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.