| | |
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
| Thread Tools | Search this Thread |
.net access ado.net algorithm array barchart bitmap box broadcast buttons c# check checkbox client color combo combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees developer development draganddrop drawing encryption enum equation event excel file files form format forms function gdi+ httpwebrequest image index input install java label list listbox listener mandelbrot math mathematics mouseclick mysql nargalax operator path photoshop picturebox pixelinversion post programming radians regex remote remoting restore richtextbox save saving serialization server sleep socket sql stack statistics stream string table tcp text textbox thread time timer update usercontrol validation view visualstudio webbrowser windows winforms wpf xml





