What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » help getting handle of an element.

help getting handle of an element.
Author: Message:
Ash_
Senior Member
****

Avatar

Posts: 638
Reputation: 31
35 / Male / –
Joined: Aug 2004
O.P. help getting handle of an element.
ok, basically i have an element
code:
            <Element xsi:type="ImageElement" Id="Avatar">
                <Position Top="1" Left="62"/>
                <Image><Name>avatar</Name></Image>
            </Element>


it has an image inside it, i wanna get the handle of it so i can use a GetDC() call on it (so i can write text on the image then save it and use as a DP). i found a GetControlHandle call im PlusWnd but i cant figure out how to get an image to load on a control (-dt- suggested using the Image control but i cant figure it out).

anyone got any advice on how i should go about writing text onto an image and saving it  (with the text on it still)?

thanks in advance
[Image: jeansiger5.jpg]
08-09-2006 11:06 AM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: help getting handle of an element.
Instead of using GetDC() (which implies GDI), try getting the data into a Bitmap object (which is in the far better GDI+).

Using the GDI+ API will allow you to render text easily, and quickly save the file in one of a number of formats.

Even if you have to get a DC, it should be possible to use a GetHandle-type call on the element with the ID of 'Avatar', and then copy the data from that DC to the Bitmap.

If you like, I'll post more information later when I've had a chance to fully research it.
[Image: spartaafk.png]
08-09-2006 02:38 PM
Profile PM Web 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