praeclarum / NGraphics

NGraphics is a cross platform library for rendering vector graphics on .NET. It provides a unified API for both immediate and retained mode graphics using high quality native renderers.
MIT License
711 stars 133 forks source link

Is there a way to recycle the bitmap #61

Open slam023 opened 8 years ago

slam023 commented 8 years ago

I am having out of memory when using the library. I need to show an image on a single view and when user clicked on the button , I should load a new image using LoadImage on NGraphics. On Android, I usually use image.Recycle and image.dispose before I set image object to null to clear the memory. In this IImage, I can't see a function to recycle teh memory used on the IImage.

praeclarum commented 7 years ago

Interesting. Just so I understand 100%, what kind of control are you assigning it to and which property? Do you have a little code snippet?