.net - image WriteableBitmap image .Pixels The field, constructor or member 'Pixels' is not defined? -


    let image = writeablebitmap(100, 100, 300.0, 300.0, media.pixelformats.bgra32, null);             let pixel = image.pixels 

error 2 field, constructor or member 'pixels' not defined

writeablebitmap.pixels property msdn

why not defined?

is framework issue? or ... scope? or ?

thanks

pixels property of system.windows.media.imaging.writeablebitmap class silverlight, different system.windows.media.imaging.writeablebitmap class of standard framework.

you should reference silverlight version of framework use first class - , have pixels property - writing silverlight application, not standard windows one.

to access pixel values using standard framework can use copypixels methods


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -