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

Home » Public Forums » archive » graphic functions - CopyWindow()
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
graphic functions - CopyWindow() [message #94794] Mon, 16 October 2017 05:31 Go to previous message
Markus Schmassmann is currently offline  Markus Schmassmann
Messages: 129
Registered: April 2016
Senior Member
Hi,

as illustrated in the code below, when I make a plot in direct graphics
all the pixels have either the background color or the plotted color,
but when I use graphic functions and then retrieve the screen with
COPYWINDOW() the colors of the pixels are all over the greyscale.
Setting antiAlias=0 doesn't help either.

Is there a way to retrieve a graphic function screen without expanding
the colortable beyond what originally went into it for plotting?

I hope that by reducing the colortable I can reduce the file size of a
video I create using the COPYWINDOW() method.

Thanks for any help,
Markus


p=plot(/test)
hfg =histogram(p.CopyWindow())
hfg2=histogram(p.CopyWindow(antiAlias=0))
device,decomposed=1
plot, hfg>.2,/ylog,background='FFFFFF'x,color=0
oplot, hfg2>.2,color=0
hdg=histogram(tvrd())
print, [hdg[[0,255]],total(hdg[1:254],/int)]
[Message index]
 
Read Message
Read Message
Previous Topic: extract circle from data with idl
Next Topic: Map projection of IMAGE() is behaving strangely...

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

Current Time: Wed Oct 08 07:17:24 PDT 2025

Total time taken to generate the page: 0.00456 seconds