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

Home » Public Forums » archive » Ongoing Object Graphics Quest
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: Ongoing Object Graphics Quest [message #28119 is a reply to message #28026] Mon, 19 November 2001 04:12 Go to previous messageGo to previous message
Martin Downing is currently offline  Martin Downing
Messages: 136
Registered: September 1998
Senior Member
"Martin Downing" <martin.downing@ntlworld.com> wrote in message
news:BY4K7.10623$tm3.1406304@news11-gui.server.ntli.net...
> Hi David,
>
> Nice program, however I noticed two things you might want to change if
your
> not tired of the project yet :)
> 1) The rubber band currently includes the next pixel above and to the
right
> of the defined area.

Oh I see - its actually the other way round. The drawn rubber band, defined
as "theBox", does not draw round the top-right corner of the top right
pixel.
You could round this up like for instance:

box_x0 = min([info.xs, info.xd])
box_x1 = max([info.xs, info.xd])+1
box_y0 = min([info.ys, info.yd])
box_y1 = max([info.ys, info.yd])+1

box[0,*] = [box_x0,box_x1,box_x1,box_x0,box_x0]
box[1,*] = [box_y0,box_y0,box_y1,box_y1,box_y0]

info.theBox->SetProperty, Data=box

Very helpful reading though, will definitely help if I go to full object
graphics for my 2D viewers

cheers

Martin
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: 24-bit color contour
Next Topic: old problem--the limitation on largest array in IDL, new

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

Current Time: Wed Oct 08 17:50:16 PDT 2025

Total time taken to generate the page: 0.00472 seconds