For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > April 2006 > MaskBlt and ShLoadImageFile









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author MaskBlt and ShLoadImageFile
cronopi

2006-04-21, 8:06 am

Hi all,

I'm loading Images from files (png type) using ShLoadImageFile but now I'm
stuck because I can't show properly the transparent bits of my image. Does
anybody know how to extract the mask from the image that I load?

Also, when trying to use IImagingFactory and IImage in SP2003, I get some
compile errors due to missing include files such as:
#include <GdiplusPixelFormats.h>
#include <GdiplusImaging.h>
Does anybody have a workaround for this?

Cheers All,
Cronopi


Yaroslav Goncharov

2006-04-21, 7:09 pm

You can use a third party library, for example PngLib.

--
Yaroslav Goncharov
Spb Software House, http://spbsoftwarehouse.com
Pocket PC Developer Network, http://pocketpcdn.com


"cronopi" <opaytuvi@hotmail.com> wrote in message
news:%239VbZOTZGHA.508@TK2MSFTNGP02.phx.gbl...
> Hi all,
>
> I'm loading Images from files (png type) using ShLoadImageFile but now I'm
> stuck because I can't show properly the transparent bits of my image. Does
> anybody know how to extract the mask from the image that I load?
>
> Also, when trying to use IImagingFactory and IImage in SP2003, I get some
> compile errors due to missing include files such as:
> #include <GdiplusPixelFormats.h>
> #include <GdiplusImaging.h>
> Does anybody have a workaround for this?
>
> Cheers All,
> Cronopi
>



cronopi

2006-04-21, 7:09 pm

Thanks. How come the current png decoder implementation doesn't support
transparencies? I mean, I can load a png and i display it (nicely I may
say)... How can come I can't get the actual mask?



"Yaroslav Goncharov" <yaroslav@softspb.com> escribió en el mensaje
news:ORSQAyVZGHA.3832@TK2MSFTNGP04.phx.gbl...
> You can use a third party library, for example PngLib.
>
> --
> Yaroslav Goncharov
> Spb Software House, http://spbsoftwarehouse.com
> Pocket PC Developer Network, http://pocketpcdn.com
>
>
> "cronopi" <opaytuvi@hotmail.com> wrote in message
> news:%239VbZOTZGHA.508@TK2MSFTNGP02.phx.gbl...
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com