Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
Are picture boxes seriously this limited?
Post Body

I'm working on an app in win forms and am trying to display a full screen overlay image in a picture box.

The image has transparent areas, so I had to use the overlaid form trick to get it working.

Now onto the problem.... The picture box distorts the heck out of the image no matter what scaling mode is specified.

The images have a 1px white border around them and this border is being blown up to roughly 20px and is aliased to hell.

I was able to just draw the image using e.DrawImage, overriding OnPaint, but that suffers from bad aliasing also, but doesn't blow up the lines.

So the question is, is this normal? Are picture boxes the wrong thing to be using for this?

For context, I'm overlaying a border of sorts on top of a Windows Media player video instance.

I just want to display the image full screen without it being blown up at the edges. It looks fine aside from the lines issue.

I understand this question is broad, and I'm not at my PC to supply screen shots of the aliasing, but can do so tomorrow if it's helpful.

Side note: some white lines in the actual video are showing aliasing jaggies too, and the same video doesn't do that when viewed in YouTube for instance. The irony is that other thicker white lines in the video do not suffer from the same issue.

Hope someone can shed some light. Thanks

Author
Account Strength
100%
Account Age
10 years
Verified Email
Yes
Verified Flair
No
Total Karma
11,300
Link Karma
1,289
Comment Karma
10,011
Profile updated: 12 hours ago
Posts updated: 8 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
7 years ago