c# - convert IntPtr to bitmapimage -


i use twain_32 scan , in twainlib.transferpictures use dibtobitmap.formhdib(hbitmap) bitmapsource intptr want bitmapimage.

i want convert intptr bitmapsource bitmapimage directly instead make bitmapsource bitmapimage

use bitmap constructor method

bitmap newbitmap = new bitmap(width, height, stride, pixelformat, bitmapsource); 

Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -