Type: Posts; User: Amil
Search took 0.01 seconds.
September 16th, 2012, 07:20 PM
Thanks, I went ahead with another chair, which is nicer than both:
I guess it always pays to be...
September 9th, 2012, 06:19 PM
So I am stuck between buying 2 different office chairs:
April 21st, 2012, 06:29 PM
Thanks for the responses. I guess I'll first time the save and processing of the bitmap. I'll also look into using ThreadPool::QueueUserWorkItem like D_Drmmr suggested.
Also, if a moderator could...
April 21st, 2012, 02:09 PM
So I actually posted my question to StackOverflow, but did not really get an answer.
Basically, I want to write an image to disk in parallel with an algorithm that is processing that same image....
April 14th, 2012, 08:11 PM
I actually had this same problem and found this thread.
I know this is an old thread, but the solution was to make sure that I was outputting the .def file in Release mode as well.
August 7th, 2011, 11:32 PM
Haha, I didn't think that they could be referring to this thread!
Okay, I will leave it unresolved because the problem really is not resolved. Maybe someone will dig this up someday and resolve it...
August 7th, 2011, 06:32 PM
I just wanted to let you know that the Microsoft Connect page has been updated by Microsoft:...
Oh, I see. Thanks for your help though!
Yeah, I guess it is allowed to construct bitmaps with indexed formats. I didn't check this, but just assumed you were correct.
Yeah, GetPixel() is very slow due to the generality...
Either way, I...
Weird... Eri, I think you are right on all of those points...
Well I'll post back when/if Microsoft contacts me.
This might take a while, so maybe you guys could just follow this thread by...
Okay, I'll definitely post back if Microsoft contacts me.
Thanks for your help. The issue is kind of resolved on my part due to (drastic) changes in my code, but I am still interested in finding...
I compiled and ran your code. I get "ERR: could not create a bitmap from: "1bpp.png" Out of memory"
However, it works correctly for "1bpp-butOK.png"
The results are identical on both the .exe...
Woah, this is pretty cool. From what you said, it looks like the problem is due to the difference in color type (grayscale vs indexed). Still, it seems like a mistake on Microsoft's part.
Sorry about the files, that was a mistake on my part. They are actually off by 10 bytes.
I'll definitely post back if I hear of any other developments. Hopefully somebody else will see this thread...
I attached the images that cause this problem.
I just got one e-mail from Microsoft saying that it has been forwarded to their team.
If nobody else has a workaround, I guess I'll wait for...
Okay, I have posted the bug (or feature) to Microsoft Connect.
Here is the link: https://connect.microsoft.com/VisualStudio/feedback/details/671957/net-bitmap-loaded-from-1bpp-png-stored-as-32bpp
Thank you for your help Eri!
If nobody else responds in the next few days, I'll look into contacting Microsoft.
[It seems I cannot edit my old post]
About detecting the color depth of the original image, I am not worried about this. The code will automatically convert any image loaded to 1bpp (or 8bpp)...
Thanks for the response.
Hmm... yes, it only happens for 1bpp images. It seems like this is a Microsoft bug. I am using .NET 3.5
I used this guide to convert back to 1bpp, but this process is...
I am developing a .NET C++ application that loads PNG/TIF images into System::Drawing::Bitmap.
However, when I construct a new bitmap like this:
Bitmap bm = gcnew System::Drawing::Bitmap(gcnew...
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!