I'm trying to use DevExpress ImageEdit control to get access to Image Stream.
I have property ImageSource
which is binded to Source
property of ImageEdit control:
public BitmapImage ImageSource { get; set; }
Then I'm trying to do following:
byte[] bytes = new byte[255];
ImageSource.StreamSource.Read(bytes, 0, 255);
And the problem is, that this stream contains only zeros. (In example I read 255 bytes, but whole stream is ZERO.
Could you tell me what am I doing wrong? How can I get stream from that?