I thought that the width and height in the .drawrectangle method were a count
of the number of pixels to draw, not index of pixels!
--
Dennis in Houston
"gjuro kladaric" wrote:
> hi,
>
> is not it true that a bitmap 12 x 15 pixels contains pixels addressable as
> (0-11) x (0-14)
>
> so, drawing rectangle (0, 0, 12, 15) draws outside of the bitmap
>
> it is unlike vb where array(15) actually contains 16 elements
>
> I hope this helps
>
> gjuro
>
>
> "Dennis" <(E-Mail Removed)> wrote in message
> news:E4F586EA-6C1B-42C4-85C3-(E-Mail Removed)...
> >I create a bitmap of 12 pixels wide x 15 pixels high then create a graphics
> > object from the bit map. When I draw a rectangle
> > g.DrawRectangle(blackpen,
> > new rectangle(0,0,12,15)), I get the top and side but the far side and
> > bottom
> > are not drawn. If I draw a rectangle g.DrawRectangle(blackpen, new
> > rectangle(0,0,11,14) then all four sides are drarwn.
> >
> > I am having trouble understanding why I can't get a rectangle 12 pixels
> > wide
> > by 15 pixels high drawn on the bitmap border.
> > --
> > Dennis in Houston
>
>
>
|