Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / How can i read some image from DLL memory ?

Author
Message
SkinK4ir3
9
Years of Service
User Offline
Joined: 25th Aug 2015
Location:
Posted: 26th Jun 2021 18:14
I'm playing with creating Plugins for AGK2 Tier1, I decided to create a DLL that has an "image", inside the Windows.dll binary, the function: "GetImg" returns the memory address of the image in question, how do I load it this image from its memory address into AGK2?



screenshot :

Attachments

Login to view attachments
Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 26th Jun 2021 20:55
Create a memblock inside the dll, copy the content from the image into it, then you can pass the memblock to agk.
Is the image a bitmap? Then you can properly format it for agk in the dll so you can even use getimagefrommemblock()
in order to simplify things on T1 side.

Login to post a reply

Server time is: 2024-11-23 12:08:38
Your offset time is: 2024-11-23 12:08:38