Hi Neils/Ian, Thanks for your inputs. I understand the scenario now.
Regards, Prageeth -----Original Message----- From: Niels Roest [mailto:[email protected]] Sent: Friday, September 04, 2009 3:03 AM To: Prageeth Cc: [email protected] Subject: Re: [directfb-users] SetSrcColorKey on JPG Do you mean all your pictures have a "glow" which looks like the key colour? This has nothing to do with DirectFB; it has to do with the lossless coding of JPEG, which means that the colours are only approximations of the original colour, so your key colour will wash out. You can simply try to convert your original PNG file into a lossless JPEG file. With the "convert" tool you would type something like "convert file.png -quality 100 file.jpg". This should render better, but bigger, images. hth Niels Prageeth wrote: > > Hi, > > > > I have a requirement such that one specific color in images is treated > as transparent. I used > > > > SrcSurface-> SetSrcColorKey(color); > > DstSurface-> SetBlittingFlags(DSBLIT_SRC_COLORKEY); > > > > The above method works fine on PNG images but produces images with > some distortion in case of JPG. I verified that both PNG and JPG input > images are as expected. Any help will be appreciated. > > > > Regards, > > Prageeth > > > > ------------------------------------------------------------------------ > > _______________________________________________ > directfb-users mailing list > [email protected] > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users > -- .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" _______________________________________________ directfb-users mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
