Skip to content

Creating EncodedImage or EncodedDepthImage straight from memory stream? #178

Answered by chitsaw
xiangzhi asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you are correct that this is a current limitation of EncodedImage. The image dimensions need to be provided in the EncodedImage, and there currently isn’t a way to create one from just a memory stream. In the next release we'll be adding a SetBuffer method to provide the ability to set the underlying bytes, but you would still need to know the image dimensions up front when creating the EncodedImage. Unfortunately if your application doesn’t know the dimensions of the encoded byte streams it receives, then your current workaround is your best bet for now.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@xiangzhi
Comment options

Answer selected by xiangzhi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants