[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.drawing

Re: TIFF files with Bitmap.FromFile() producing the wrong colors

Carl Priddy

1/11/2011 9:20:00 PM

Did you remember that bitmaps and tiff files have the oppposite order of RGB? That is, BGR?
carl.

> On Wednesday, January 28, 2009 4:07 PM Hal Meyer wrote:

> Greets.
> I've got a progam that loads TIFF files created by our art dept, however all
> reds/pinks come out looking purple/blue... I'm assuming this is because the
> program is incorrectly translating CMYK to RGB... is there any GDI+ function
> to properly make the conversion? These TIFF files all look fine when viewed
> with any other program.
>
> Thanks.


>> On Thursday, January 29, 2009 3:56 PM Bob Powell [MVP] wrote:

>> Tiff is a huge spec, so huge that its difficult to implement it all.
>>
>> Unfortunately the GDI+ TIFF drivers don't implement it all and indeed can
>> only load a few of the CMYK formats. GDI+ cannot write any of the CMYK
>> formats.
>>
>> Had you consiered writing the program in WPF? The Windows.Media system is
>> much more competent.
>>
>> --
>> --
>> Bob Powell [MVP]
>> Visual C#, System.Drawing
>>
>> Ramuseco Limited .NET consulting
>> http://www.ra...
>>
>> Find great Windows Forms articles in Windows Forms Tips and Tricks
>> http://www.bobpowell.net/tips...
>>
>> Answer those GDI+ questions with the GDI+ FAQ
>> http://www.bobpowell.net/f...
>>
>> All new articles provide code in C# and VB.NET.
>> Subscribe to the RSS feeds provided and never miss a new article.
>>
>>
>> "Hal Meyer" <hmeyer@frostcutlery.com> wrote in message
>> news:erDh0xYgJHA.1288@TK2MSFTNGP02.phx.gbl...


>>> On Friday, January 30, 2009 10:14 AM Hal Meyer wrote:

>>> Thanks, Bob.
>>>
>>> I figured as much. I'm afraid WPF development is not an option at this
>>> point, according to TPTB.
>>> Just out of sheer curiousity, anyone know the best place to get my hands on
>>> a TIFF spec paper? I had to do this with TGA files back in the day, and I
>>> know that the TIFF's we have are uncompressed CMYK, so writing a custom
>>> reader shouldn't be too difficult.
>>>
>>>
>>> "Bob Powell [MVP]" <bob@spamkillerbobpowell.net> wrote in message
>>> news:B3732436-0A89-4017-9D3B-47A474A8DF8B@microsoft.com...


>>>> On Friday, January 30, 2009 1:40 PM Bob Powell [MVP] wrote:

>>>> http://partners.adobe.com/public/developer/en/tiff...
>>>>
>>>> --
>>>> --
>>>> Bob Powell [MVP]
>>>> Visual C#, System.Drawing
>>>>
>>>> Ramuseco Limited .NET consulting
>>>> http://www.ra...
>>>>
>>>> Find great Windows Forms articles in Windows Forms Tips and Tricks
>>>> http://www.bobpowell.net/tips...
>>>>
>>>> Answer those GDI+ questions with the GDI+ FAQ
>>>> http://www.bobpowell.net/f...
>>>>
>>>> All new articles provide code in C# and VB.NET.
>>>> Subscribe to the RSS feeds provided and never miss a new article.
>>>>
>>>>
>>>> "Hal Meyer" <hmeyer@frostcutlery.com> wrote in message
>>>> news:%234dp01ugJHA.1252@TK2MSFTNGP03.phx.gbl...


>>>> Submitted via EggHeadCafe
>>>> Creating Google Motion Charts from Excel data
>>>> http://www.eggheadcafe.com/tutorials/aspnet/86599bca-edda-4204-af15-7a1cf901a071/creating-google-motion-charts-from-excel...