Jump to content
Sign in to follow this  
sotsotteik

Using DLL which has class

Recommended Posts

sotsotteik

Currently i want to detect some pixel from the screen. But i don't want to use GDI32.DLL for detecting pixel. Recently i found out that VB.Net has their own detecting pixel DLL file which is System.Drawing.DLL.

The problem is i can't use the function in the DLL

$a = DllCall("System.Drawing.dll", "str", "GetPixel", "int", 100, "int", 100)

ConsoleWrite(@Error)

i shows Function not found.

But i'm sure the GetPixel function is in there.

As i know System.Drawing.dll got a class name call Bitmap and inside the class got the GetPixel.

How can i use the GetPixel function??

Thank you very much in advance~~

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×