Write Text on Image using Indexed Image Color Pallete
-
How i can write text on image, using the color pallete of index image like tif,so resulting jpg have text color same like image.Regards,adnan
Many Thanks, Adnan Rafiq muhammadadnanrafiq@gmail.com
-
How i can write text on image, using the color pallete of index image like tif,so resulting jpg have text color same like image.Regards,adnan
Many Thanks, Adnan Rafiq muhammadadnanrafiq@gmail.com
JPEGs are never indexed, so you really can't. A jpeg is lossy and no matter what colors you start with, it will go to 24 bit and the lossy compression will add colors. If you were to save back out as a tiff, then I guess you could find the colors you want my looking through the pallette. I never use 256 color tho, nor do many other people, it's a shame you need to.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
JPEGs are never indexed, so you really can't. A jpeg is lossy and no matter what colors you start with, it will go to 24 bit and the lossy compression will add colors. If you were to save back out as a tiff, then I guess you could find the colors you want my looking through the pallette. I never use 256 color tho, nor do many other people, it's a shame you need to.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
what if we create a bitmat having format System.Drawing.Imaging.PixelFormat.Format24bppRgb ?
Many Thanks, Adnan Rafiq muhammadadnanrafiq@gmail.com