TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mark Stringer
NA
1
9.1k
C# Image BitDepth
Jul 1 2016 10:55 AM
Hi
For an application I've created to help me at work I am confused with a part which is set to check image Bit Depth.
When checking the properties of the image file manually for the intended image it clearly shows 24 via the widows folder properties. when the same image is checked via my code a result of 32 is shown.
My coding below has been simplified with the removal of folder loop and listbox for testing purpose and I still receive a result of 32 BitDepth.
The coding is;
string ima = @"E:\Images\ImagesLM\44005W30.jpg";
var source = new BitmapImage(new Uri(ima));
bitsPerPixel = source.Format.BitsPerPixel;
MessageBox.Show(bitsPerPixel.ToString());
I apologise if I'm using incorrect terminology as I'm am not a trained computer programmer and have google learnt all I have required for this project.
Thanks in advance,
Mark
Reply
Answers (
3
)
Linking a openGL project with a windows form in c sharp
Var and String differences