GDI - Drawing a rectangle to the upper-right of an image NOT the upper-left, How To?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: David Eadie (hack123_at_hotmail.com)
Date: 02/19/05


Date: 19 Feb 2005 04:53:07 -0800

G'Day all,

Ok so I can draw a rectange (with borders and fill whatever) to the
upper left of an image easily, but I cant work out how to draw the
rectange to the upper right of an image? Keeping in mind that the
image will change size so there has to be another way to this without
using x/y co-ordinated?
Has anyone got any ideas? And is it even possible?
Cheers All!

Dave. :-)



Relevant Pages

  • Re: Model tilts when translated
    ... > I'm trying to draw two instances of a sphere but ... > the second is in the upper left corner. ... > They both draw, but the one in the upper left is tilted about 20 ... Why would the model tilt on a translation ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: mobile phone logo editor
    ... > but the handling is pretty cumbersome (e.g. when you hold the mouse button ... > to draw a line from the upper left to the lower right)... ...
    (alt.comp.lang.borland-delphi)
  • Re: Problem drawing line on canvas
    ... I have no idea why it behaves the way it does, ... Regards, ... shows the top left of a rectange ... > line I wish to draw. ...
    (comp.lang.tcl)
  • Re: tutorials for 2.2.8 (newbie)?
    ... >I am not yet familiar with the terminology used in gimp. ... >I was most surprised to discover that to draw a shape (rectange, ... You can draw the shape, ...
    (comp.graphics.apps.gimp)
  • Re: tutorials for 2.2.8 (newbie)?
    ... I was most surprised to discover that to draw a shape (rectange, or circle say) I needed to use ... You can draw the shape, then tweak it to be just the way you want it and then finally stroke it with any desired brush. ...
    (comp.graphics.apps.gimp)