-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When creating an ImageElement with the "Bitmap bitmap" override, DXHookD3D11 throws an exception #83
Comments
Update: I also came across this exception:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
So I'm trying to create an ImageElement from a Bitmap... until now, I was using the ImageElement's "Image" property, and converting my bitmap into a byte[] and using that to construct a new ImageElement, and this was and is working fine...
My problem however, is I'm trying to make the update loop as fast as possible, and converting an 1920x1080 bitmap to a byte[] takes more than 16ms, which is way to long for my purposes... I'm trying to use the "correct" method, and constructing the ImageElement with the Bitmap override to save some time, but for some reason, it always throws an error, and I can't seem to figure out what the issue is... Below I attached some additional context :)
Exception message:
The code that handles updating the overlay (called every frame):
Thanks in advance for anyones help :)!
M
The text was updated successfully, but these errors were encountered: