| | |
32 bit depth image
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Dec 2005
Posts: 14
Reputation:
Solved Threads: 0
hi
i finished writing c# algorithm that is applied on a '24 bit depth' bitmap image that i called from file, and it was success; but when i apply the algorithm on a 32 bit depth image a break while running occur which is : " Value does not fall within the expected range".
what i have to do in order to apply my code on this type of image "32bit".
i think i have to do something after the 'image.fromfile', to make it acceptable by the rest of the code.
plz reply me your suggestion!
i finished writing c# algorithm that is applied on a '24 bit depth' bitmap image that i called from file, and it was success; but when i apply the algorithm on a 32 bit depth image a break while running occur which is : " Value does not fall within the expected range".
what i have to do in order to apply my code on this type of image "32bit".
i think i have to do something after the 'image.fromfile', to make it acceptable by the rest of the code.
plz reply me your suggestion!
Manar
•
•
Join Date: Dec 2005
Posts: 14
Reputation:
Solved Threads: 0
note:
when i add the bold statement, the result shown is a black image!, what i have to do??
when i add the bold statement, the result shown is a black image!, what i have to do??
•
•
•
•
private void button2_Click(object sender, System.EventArgs e)
{
Image b = Image.FromFile(@"C:\project\test1.bmp" );
Bitmap source =(Bitmap)b;
source = new Bitmap(320, 240, System.Drawing.Imaging.PixelFormat.Format24bppRgb); Gray(source);
SobelEdgeDetector s= new SobelEdgeDetector();
Bitmap k = s.Apply(source);
g.DrawImage(k,5 ,5 );
k.Save(@"C:\project\rr.bmp");
}
Manar
![]() |
Similar Threads
- Inverting 24-bit bitmap using fstream c++ (C++)
- image align (HTML and CSS)
- Image functions in php (PHP)
- Looking for Site Review: http://www.kindakarma.com (Website Reviews)
- DaniWeb cellspacing (DaniWeb Community Feedback)
- Multithreading problem (C)
Other Threads in the C# Forum
- Previous Thread: Is a Number in C#
- Next Thread: overflow or under flow in arithmetic operation
Views: 5247 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access ado.net algorithm array bitmap box broadcast buttons c# chat check checkbox class client color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing encryption enum event excel file files form format forms ftp function gdi+ httpwebrequest image index input install java label list listbox listener mandelbrot math mouseclick mysql networking object operator oracle path photoshop picturebox pixelinversion post prime programming radians regex remote remoting resource richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation visualstudio webbrowser windows winforms wpf xml





