Shoutbox

activex for generating bmp files from png - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: activex for generating bmp files from png (/showthread.php?tid=61580)

activex for generating bmp files from png by luisillo on 06-26-2006 at 02:15 PM

Hello!
I'm working on a script that allows you to set your DisplayPicture to that one you want but you can also add a text on it,

for example, you have an image "xyz" as a DP, and when you type /text2img "whatever you want on the DP", your image automatically changes to the one you have but with a text on it. When you want your previous image, simply type "/PreviousDP" and it'll change.

I don't know if it is very usefull for anybody, but I find it at least interesting

What I dont have, and I've been looking for, is an activex that converts png files to bmp, for being able to add the text and then convert them back to png, this last part it's solved but the png->bmp isn't.

Does anyone havo any idea, comment, or suggestion??

Thanks a lot in advance


RE: activex for generating bmp files from png by mathieumg on 06-26-2006 at 02:18 PM

Why do you want to convert it to bmp?

quote:
Originally posted by Scripting documentation

When setting a new display picture, JPG, GIF, BMP and PNG files can be used.


RE: activex for generating bmp files from png by deAd on 06-26-2006 at 02:23 PM

The library (dynimage, i bet) only supports BMP. The library is also used in iTunes+ for image generation...I tried to make a script like this, but I'm not sure there's a way to convert it in jscript :/


RE: RE: activex for generating bmp files from png by luisillo on 06-26-2006 at 02:29 PM

quote:
Originally posted by deAd
The library (dynimage, i bet) only supports BMP.


Exactly! thats why I need to convert the DP to BMP, everything else is done, but you have to put the img in bmp format, and i cant do that 'cause when a picture is loaded into WLM DP is set to .dat with png format, so this takes a lot of work away, otherwise I had to create a browser dialog, and all thet stuff, which, appart from being little far from my experience with js programing (that's not the main reason), it would make my script heavier, and I want (if possible) a light one.
RE: activex for generating bmp files from png by CookieRevised on 06-26-2006 at 02:34 PM

add the text using GDI+ API's, save the picture again, done

no external libraries needed, everything can be done with the Windows API's.

Look on http://www.msdn.com/ for more information on using the Windows API's.


RE: activex for generating bmp files from png by alexp2_ad on 06-26-2006 at 02:35 PM

Making a browser dialog is actually quite simple, but yeah I see why you want a PNG to BMP, I thought the same thing when I started uisng dynimage, didn't find anything though.

Maybe if we all email and bug the author of dynimage... :P