How can i store diffrent images to my list using C#? -


i have problem follow:

i have code generates series of bitmap images. @ end of each iteration use:

i expecting after iterations being completed, end new list consisting of different images. realised in list-1 same image going copied again , again.

can tell me if making mistake in code?

you need make new image each loop iteration in "code generates series of bitmap images" (in code you're not displaying).

if reuse same image (the bmp variable), without creating new image, (ie: bmp = new bitmap(width, height) or similar), you'll end overwriting , reusing same image in memory each loop iteration, explains current behavior.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -