Shoutbox

System.Drawing.dll - 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: System.Drawing.dll (/showthread.php?tid=87335)

System.Drawing.dll by davidpolitis on 11-18-2008 at 10:11 AM

Since I have little to no experience with Interop and DLLs, I was wondering if it is possible to call System.Drawing to create an Image object using Image.FromFile and then get the format of the Image object via Image.RawFormat. If so, can some example code please be posted (A). If not, can I write a DLL that is usable by Plus!?

Thanks heaps,
David.


RE: System.Drawing.dll by matty on 11-18-2008 at 03:57 PM

Those are .Net functions.

You can do something similar with Gdi+ or you can write a dll choice is yours.


RE: RE: System.Drawing.dll by davidpolitis on 11-18-2008 at 07:59 PM

quote:
Originally posted by matty
Those are .Net functions.
That's why I was unsure :P
quote:
Originally posted by matty
You can do something similar with Gdi+ or you can write a dll choice is yours.
Could you possibly please post an example?

Thanks,
David.



RE: System.Drawing.dll by matty on 11-18-2008 at 08:13 PM

quote:
Originally posted by davidpolitis
Could you possibly please post an example?
First off how advanced is your knowledge of the Win32 API? Secondly how advanced is your knowledge of Plus! scripting? If you aren't really knowledgable in this area do not undertake this solely by Plus! scripting. It takes a lot of work to do.

You can always do it in a dll.
RE: System.Drawing.dll by davidpolitis on 11-18-2008 at 08:16 PM

Well, so far I've loaded the image using GdipLoadImageFromFile/your image conversion example, I just need to incorperate the GetRawFormat method now


RE: System.Drawing.dll by matty on 11-18-2008 at 08:39 PM

PM me if you cannot figure it out I will help you figure it out.