DarthAffe / ScreenCapture.NET

Fast and easy to use screen-capturing
GNU Lesser General Public License v2.1
60 stars 10 forks source link

Convert IImage #28

Closed krysek89 closed 5 months ago

krysek89 commented 5 months ago

Hello, how can i convert IImage or other object to Bitmap ? image

image

not working...

krysek89 commented 5 months ago

I changed to DX9ScreenCaptureService and starting works.

DarthAffe commented 5 months ago

You can't just copy the whole buffer due to the possible difference in the stride between the bitmap and the data itself. Here is an example that prevents this by copying line by line: https://github.com/DarthAffe/ScreenCapture.NET/issues/22#issuecomment-1763063003