WIC copy pixels

Hello,

I have two IWICBitmap objects. I need to copy parts of them in void* memory.

What is the most efficient option? IWICBitmap.Lock() or IWICBitmapSource.CopyPixels()?

Thanks and Regards

Reuben Sant
Last edited on
This is a quote from MSDN documentation:

Because of to the internal memory representation implied by the IWICBitmap, in-place modification and processing using the Lock is more efficient than CopyPixels, usually reducing to a simple pointer access directly into the memory owned by the bitmap rather than a as a copy. This is contrasted to procedural bitmaps which implement only CopyPixels because there is no internal memory representation and one would need to be created on demand to satisfy a call to Lock.
Topic archived. No new replies allowed.