Picture box displays an edge on right and bottom border

A

Amit

Hi

We are using picurebox for displaying images in our application. The
images are colored bitmaps generated within the application. When the
bitmap is pasted to the Picurebox using graphics.DrawImage() in Paint
event handler, it is displayed. However, there is a thin dark edge
also displayed along with the right hand side and bottom border.

I tried using Borderstyle as None. But of no use. The BackgroundColor
= Transparent seems to do the trick. However I need the background as
black colored. Has anyone faced this problem before? Is there any
solution?

Best regards
Amit Dedhia
 
A

Amit

Hi

We are using picurebox for displaying images in our application. The
images are colored bitmaps generated within the application. When the
bitmap is pasted to the Picurebox using graphics.DrawImage() in Paint
event handler, it is displayed. However, there is a thin dark edge
also displayed along with the right hand side and bottom border.

I tried using Borderstyle as None. But of no use. The BackgroundColor
= Transparent seems to do the trick. However I need the background as
black colored. Has anyone faced this problem before? Is there any
solution?

Best regardsAmitDedhia

More Information:
SizeMode is StretchImage. Does this information help?
 
?

=?iso-8859-1?q?Horacio_Nu=F1ez_Hern=E1ndez?=

Hi

We are using picurebox for displaying images in our application. The
images are colored bitmaps generated within the application. When the
bitmap is pasted to the Picurebox using graphics.DrawImage() in Paint
event handler, it is displayed. However, there is a thin dark edge
also displayed along with the right hand side and bottom border.

I tried using Borderstyle as None. But of no use. The BackgroundColor
= Transparent seems to do the trick. However I need the background as
black colored. Has anyone faced this problem before? Is there any
solution?

Best regards
Amit Dedhia


the sizes match??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top