What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » System.Drawing.dll

System.Drawing.dll
Author: Message:
davidpolitis
Full Member
***


Posts: 371
Reputation: 16
Joined: Aug 2006
O.P. System.Drawing.dll
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.
11-18-2008 10:11 AM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: System.Drawing.dll
Those are .Net functions.

You can do something similar with Gdi+ or you can write a dll choice is yours.
11-18-2008 03:57 PM
Profile E-Mail PM Find Quote Report
davidpolitis
Full Member
***


Posts: 371
Reputation: 16
Joined: Aug 2006
O.P. RE: RE: System.Drawing.dll
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.



This post was edited on 11-19-2008 at 01:17 AM by davidpolitis.
11-18-2008 07:59 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: System.Drawing.dll
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.
11-18-2008 08:13 PM
Profile E-Mail PM Find Quote Report
davidpolitis
Full Member
***


Posts: 371
Reputation: 16
Joined: Aug 2006
O.P. RE: System.Drawing.dll
Well, so far I've loaded the image using GdipLoadImageFromFile/your image conversion example, I just need to incorperate the GetRawFormat method now

This post was edited on 11-18-2008 at 08:28 PM by davidpolitis.
11-18-2008 08:16 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: System.Drawing.dll
PM me if you cannot figure it out I will help you figure it out.
11-18-2008 08:39 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On