I am implementing an image processing related code in C#. It works almost fine, but I find a problem that I am anable to solve. When I run the project, I get the output perfectly. But when I minimize the screen and expand it, the originial image appears distorted. I cannot understand how this is possible, considering that I do not make any changes to the original image. Anyone can help me out?
sathya8819 0
Junior Poster
Recommended Answers
Jump to PostDepending on what you mean by "distorted" it sounds like you are having problems with the way the application fires Paint events.
Do you have code you can paste so that we can isolate the issue for you?
Jump to Postwhen are these code sections called? Do you handle anything in the applications Paint event?
Jump to Posthmm, can you clarify what you mean by the image being distorted? A screenshot would be ideal. Wanna make sure i fully understand whats happening before we start looking at solutions.
Jump to PostHmm, its not what i thought.
I am still puzzling it out, but i threw in this extra line:bmps.UnlockBits(bms); bmpd.UnlockBits(bmd); pictureBox1.Image = bmps; pictureBox2.Image = bmpd;
And the image distorts when you run the code. So its not that the image is distorted by minimising, it …
Jump to PostOk, i think i vaguely understand :) I'm afraid i have a doctors appointment shortly, but i'll try to take another look this afternoon.
Now that we know the problem is somewhere in your code, i would suggest you check a couple of things:
a) that the pixels are …
All 20 Replies
Geekitygeek 480
Nearly a Posting Virtuoso
sathya8819 0
Junior Poster
Geekitygeek 480
Nearly a Posting Virtuoso
sathya8819 0
Junior Poster
sathya8819 0
Junior Poster
Geekitygeek 480
Nearly a Posting Virtuoso
sathya8819 0
Junior Poster
sathya8819 0
Junior Poster
Geekitygeek 480
Nearly a Posting Virtuoso
sathya8819 0
Junior Poster
Geekitygeek 480
Nearly a Posting Virtuoso
sathya8819 0
Junior Poster
Geekitygeek 480
Nearly a Posting Virtuoso
sathya8819 0
Junior Poster
Geekitygeek 480
Nearly a Posting Virtuoso
kvprajapati
commented:
Very helpful indeed! +6
sathya8819 0
Junior Poster
sathya8819 0
Junior Poster
Geekitygeek 480
Nearly a Posting Virtuoso
Geekitygeek 480
Nearly a Posting Virtuoso
sathya8819 0
Junior Poster
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.