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

Home » Public Forums » archive » Re: Low quality with 'IDLgrClipboard' object
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Low quality with 'IDLgrClipboard' object [message #30853] Sun, 19 May 2002 17:59
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Georg Wiora (georg.wiora@daimlerchrysler.com) writes:

> I tried to draw an IDLgrPlot object to an IDLgrClipboard object using
> OClip->draw,oPlot,VECTOR=1
>
> The clipboard contained an EMF/WMF graphics after that operation. But with the clipboard viewer and after inserting this object
> into a graphics program, it looked quite blocky with big pixels. Obviously it was not inserted as a vector graphics, but as a
> scalable bitmap.
>
> Is that a documentation problem or am i using wrong parameters? The documentation says, that the graphics is converted to vector
> primitives, but it does not look like that.
> Increasing the resolution of the Clipboard object does only create finer lines, but not a higher resolution result.

I don't know what might be going wrong. I added
the ability to make encapsulated PostScript files
to XPLOT this morning. I deliberately set the
resolution to 300 DPI, which is *way* too high
for the display, although most of the programs
I put it in (Microsoft Word, Powerpoint, Photoshop)
seemed to be able to resize it well enough. But
it printed beautifully and looked nice on the
display. I certainly don't see any big, blocky
pixels.

I tried it with Windows Enhanced Metafile, too.
Didn't look as good on the display, but it also
printed OK.

Here is the relevant code:

filename = Dialog_Pickfile(/Write, File='xplot.eps')
IF filename NE '' THEN BEGIN

; Get the dimensions and units of the output window.

info.thisWindow->GetProperty, Dimensions=theDimensions, $
Units=curUnits

; Create a clipboard with the same dimensions and units.
; Set the resolution to 300 DPI for high-resolution printing.

clipboard = Obj_New('IDLgrClipboard', Dimensions=theDimensions, $
Resolution = [0.146991, 0.146991], Units=curUnits, Quality=2)

; Draw PostScript vector output.

clipboard->Draw,info.plotView, Filename=filename, $
/Vector, /PostScript

; Clean-up.

Obj_Destroy, clipboard

You can find XPLOT here:

http://www.dfanning.com/xplot.pro

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL's PNG does not correctly interpret the "Number of significant bits" field
Next Topic: Re: Reading a Tiff image

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

Current Time: Sat Oct 11 13:41:10 PDT 2025

Total time taken to generate the page: 0.24004 seconds