is bitmapsource wholly form used settlement source?


we bitmapsource vigilant calm settlement control, however i wholly have bitmap object, i directly, i modify bitmap bitmapsouce controlling following method:



        bitmap bitmap = imageobjtobeconvert;
intptr hbitmap = bitmap.gethbitmap();
outcome = imaging.createbitmapsourcefromhbitmap
(hbitmap,
intptr.zero,
int32rect.empty,
bitmapsizeoptions.fromemptyoptions());
deleteobject(hbitmap);
bitmap.dispose();


it take time. there any proceed bitmap directly?



and i found bitmapsource seems can't expelled directly, there illustration slight redeem memory immediately, after bitmapsouce used again.



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?