Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
BitmapSource Class
CopyPixels Method
Collapse All/Expand All Collapse All
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
BitmapSource..::.CopyPixels Method

Copies the bitmap pixel data.

  NameDescription
Public methodCopyPixels(Array, Int32, Int32)Copies the bitmap pixel data into an array of pixels with the specified stride, starting at the specified offset.
Public methodCopyPixels(Int32Rect, Array, Int32, Int32)Copies the bitmap pixel data within the specified rectangle into an array of pixels that has the specified stride starting at the specified offset.
Public methodCopyPixels(Int32Rect, IntPtr, Int32, Int32)Copies the bitmap pixel data within the specified rectangle
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
CopyPixels is not enough versatile....      adam.sida   |   Edit   |   Show History

having custom implementation of BitmapSource is useless in following case:

source bitmap 20000x25000 pixels 24bpp

rendering to Visual as 200x200pixels

because next components after custom BitmapSource in WIC pipeline can asks for data only by using CopyPixels, there is no way how to tell to back to custom bitmap that destination resolution is only 200x200 and that can be used pre-resampled source instead of hugh original of custom bitmap....

Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker