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.
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
Post Details
- Posted
- 7 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/csharp/comm...