comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Rendering method software vs hardware
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Rendering method software vs hardware [message #89762 is a reply to message #89761] Tue, 02 December 2014 08:52 Go to previous messageGo to previous message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Sometimes it can be very useful to work with the IDLgrBuffer before plotting stuff. The idea is to create all your plots in memory (off-screen) and then convert them to an IDLgrImage. This can help you save some rendering time...

I've got very good results using this method.
Here is the routine I use:

function view2image, view

view->getproperty, viewplane_rect=viewplane_rect, dimensions=dimensions

aux=get_screen_size(resolution=resolution)

obuffer=obj_new('idlgrbuffer', dimensions=[viewplane_rect[2],viewplane_rect[3]], resolution=resolution)
obuffer->erase, color=[255,255,255]

obuffer->draw, view
oimage=obuffer->read()

obj_destroy, obuffer

return, oimage
end

nata
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: make all array values equal to zero
Next Topic: extraction of harmonic terms from FFT in idl

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:56:59 PDT 2025

Total time taken to generate the page: 0.00241 seconds