What type of WPF image should be used to perform several conversions

I need to perform several operations with the image, for example, I need to resize the image, maybe place it to maintain the aspect ratio (and draw the background color) and conditionally print the watermark.

I am currently using BitmapFrameas the type that I pass between the methods used.

Can anyone recommend a different type that I should use to perform incremental image updates?

I could create a composition from different images, although I'm not sure which types I should use for this?

+5
source share
2 answers

WriteableBitmap , . BitmapFrame WriteableBitmap BitmapSource, WriteableBitmap BitmapSource.

WriteableBitmapEx, WriteableBitmap . WPF, Silverlight, WP7 Metro.

+9

WriteableBitmap

http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.writeablebitmap.aspx

WriteableBitmap . , , , , .

.

1. .

2. , BackBuffer.

3. . , WriteableBitmap .

4. AddDirtyRect, , .

5. , .

, . , , "".

+6

All Articles