473,411 Members | 1,880 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

Format16bppGrayScale not supported

After searching newsgroups and discussions, i came to the following conclusion.
Even though PixelFormat.Format16bppGrayScale is defined, it's NOT and will
NEVER
be supported by the .NET framework.
For our business (medical imaging), this is very disappointing.
16 bit gray is most common imageformat used for medical imaging.
Scaling back to 8 bit is not an option. We really need 16 bit accuracy
in our processing operations.
Does this mean that .NET is not meant for professional imaging?
Please reconsider support for 16 bit gray.

Thanks,
Jos Lavrijsen (Philips Medical Systems)

Nov 17 '05 #1
4 13202
You should really post your request here:

http://lab.msdn.microsoft.com/produc...k/Default.aspx

While some Microsoft people do read this newsgroup, MS makes no
guarantees that every post will be read or that a post will receive an
official reaction. The Product Feedback page on MSDN is a different
matter altogether.

I don't know about 16 bit grayscale in particular, but I do know that
..NET's graphics support is sadly lacking, and that the MS team knows
that... it's just not going to be improved much for Whidbey (.NET v2.0,
2005). The last I heard was, "Maybe Longhorn."

Nov 17 '05 #2
Unfortunately you're unlikely to see this resolved by MS in the short term.
However you may be interested in the FreeImage library on SourceForge which
has a C# wrapper and supports lots of image formats.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Jos Lavrijsen" <Jos La*******@discussions.microsoft.com> wrote in message
news:D7**********************************@microsof t.com...
After searching newsgroups and discussions, i came to the following
conclusion.
Even though PixelFormat.Format16bppGrayScale is defined, it's NOT and will
NEVER
be supported by the .NET framework.
For our business (medical imaging), this is very disappointing.
16 bit gray is most common imageformat used for medical imaging.
Scaling back to 8 bit is not an option. We really need 16 bit accuracy
in our processing operations.
Does this mean that .NET is not meant for professional imaging?
Please reconsider support for 16 bit gray.

Thanks,
Jos Lavrijsen (Philips Medical Systems)

Nov 17 '05 #3
I am also trying to display 16bpp grayscale images. What is the right
way to convert them into RGB format? I devided each pixel value by 3
and assign the result to R/G/B. But the resultant images have lost
contrast almost completely. Any pointers are appreciated!

Bob Powell [MVP] wrote:
Unfortunately you're unlikely to see this resolved by MS in the short term.
However you may be interested in the FreeImage library on SourceForge which
has a C# wrapper and supports lots of image formats.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Jos Lavrijsen" <Jos La*******@discussions.microsoft.com> wrote in message
news:D7**********************************@microsof t.com...
After searching newsgroups and discussions, i came to the following
conclusion.
Even though PixelFormat.Format16bppGrayScale is defined, it's NOT and will
NEVER
be supported by the .NET framework.
For our business (medical imaging), this is very disappointing.
16 bit gray is most common imageformat used for medical imaging.
Scaling back to 8 bit is not an option. We really need 16 bit accuracy
in our processing operations.
Does this mean that .NET is not meant for professional imaging?
Please reconsider support for 16 bit gray.

Thanks,
Jos Lavrijsen (Philips Medical Systems)


Nov 17 '05 #4

This might help.

/// <summary>Convert 16 bit gray to RGB</summary>
/// <param name="grayPixels">source pixels</param>
/// <param name="bitsStored">bits used [1..16]</param>
/// <returns>rgb pixels</returns>
public uint[] ConvertGray16ToRGB(ushort[] grayPixels, int bitsUsed) {
int pixelCount = grayPixels.Length;
uint[] rgbPixels = new uint[pixelCount];
int shift = bitsUsed - 8;
for (int i = 0; i < pixelCount; i++) {
uint gray = (uint)grayPixels[i] >> shift;
rgbPixels[i] = 0xff000000U | gray | (gray << 8) | (gray <<
16);
}
return(rgbPixels);
}
Success,
Jos Lavrijsen

"ke************@yahoo.com" wrote:
I am also trying to display 16bpp grayscale images. What is the right
way to convert them into RGB format? I devided each pixel value by 3
and assign the result to R/G/B. But the resultant images have lost
contrast almost completely. Any pointers are appreciated!

Bob Powell [MVP] wrote:
Unfortunately you're unlikely to see this resolved by MS in the short term.
However you may be interested in the FreeImage library on SourceForge which
has a C# wrapper and supports lots of image formats.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Jos Lavrijsen" <Jos La*******@discussions.microsoft.com> wrote in message
news:D7**********************************@microsof t.com...
After searching newsgroups and discussions, i came to the following
conclusion.
Even though PixelFormat.Format16bppGrayScale is defined, it's NOT and will
NEVER
be supported by the .NET framework.
For our business (medical imaging), this is very disappointing.
16 bit gray is most common imageformat used for medical imaging.
Scaling back to 8 bit is not an option. We really need 16 bit accuracy
in our processing operations.
Does this mean that .NET is not meant for professional imaging?
Please reconsider support for 16 bit gray.

Thanks,
Jos Lavrijsen (Philips Medical Systems)


Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mark Carter | last post by:
I'm trying to create a mail server in Twisted. I either get SMTPSenderRefused or SMTPException: SMTP AUTH extension not supported by server. What do I need to do to get it to work?
1
by: Dan | last post by:
Hi, Is the method 'insertAdjacentText' supported by netscape? I 'm afraid of not. Does anyone know the equivalent method? By the way, does it exist something like a equivalence tabel between IE...
5
by: eadams | last post by:
I've been tasked with writing an application in VB.Net that will manipulate messages in a user's Inbox. My Exchange admin prefers that I use MAPI; I don't really care, but I want this to be as...
4
by: Robert | last post by:
Hi, which DOM version (level) should I learn? I've seen that there is a DOM level 3, but is there any support for it already? -- Rob
1
by: Tomas Vera | last post by:
Hello All, In an effort to prepare my WebApp for localization, I have included the following lines in some of my ASPX pages (the "lab mice" of my web app). --- Code snippet -----...
3
by: Stephen R. G. Fraser | last post by:
Are or will delegating constructors (constructors that can call sibling constructors) be available for ref classes or only for native classes? The CLI/C++ specs seems to say that it is a native...
4
by: David | last post by:
Hello When I try to open a connection to a sql server database from my aspnet app I get the following exception message: 'ResourcePool' is not supported on the current platform. I can connect OK...
7
by: Fister | last post by:
I'm reading Professional C# (Wrox) and stumbled across: "Some features are supported by.NET but not by C#, and you might be surprised to learn that some features of the C# language are not...
0
by: joeller | last post by:
On October 13, 2006 Mark Rae wrote Hi, Firstly, I have not the slightest intention of using framesets - the reason for this post is merely to ask for assistance in furthering my understanding of...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.