Hi everyone,

I have an easy question but i can't seem to get it right. Bear with me. I have a buffered image where i would like to draw a rectangle around that buffered image. The thing is i need the thickness of the rectangle to be of a certain pixel. Anyway this can be achieved. Sample codes would be great

I hope someone can help me this

Thank You

Yours Sincerely

Richard West

Recommended Answers

All 3 Replies

Draw a filled rectangle that's n pixels bigger than the image, then draw the image over it. The effect is an n pixel rectangle around the image.

Hi everyone,

Is this the only way of doing it or is there another way?

Richard West

It's not the only way, but it's by far the easiest.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.