- Topics - 9
- Replies - 583
- Total Posts - 592
and while we’re at it some of this is coming back to me (probably because I had a look thru the source code)
I don’t save the image from the DIB the way NetMaster shows in his interop artacle. …It didn’t do what I wanted for some reason ( but honestly that part hasn’t come back to me yet), and I switched to using SetDIBitsToDevice, but the part that struck me was that I don’t update the dpi with the GdipBitmapSetResolution call because I never got the drivers that I test with to give me dpi in a way that makes sense.
I did however build the project at one time with an option to update the resolution but I just used the SetResolution method (System.Drawing.Bitmap.SetResolution).
I know why I don’t fiddle with the resolution (my scanner’s driver wanted to tell me that the x and yResolution was 7432 or something when I thought it was 300) but why don’t you use SetResolution from the framework instead?
just wondering, it shouldn’t impact your current error.