How can I get byte array by OpenJPEG WITHOUT System.Drawing.Bitmap

Description

How can I get byte array by OpenJPEG WITHOUT System.Drawing.Bitmap

I want to get byte array by OpenJPEG.Encode (ManagedImage image, bool lossless)
Not OpenJPEG.EncodeFromImage (Bitmap bitmap, bool lossless)

I do this:

Then got the message: upload failure

Does this mean :I can not use OpenJPEG.EncodeFromImage (Bitmap bitmap, bool lossless) to get TextureAsBytes to upload ?

Steps to Reproduce

None

Assignee

Unassigned

Reporter

Peter W

Labels

None

Environment

Mono / OSX

Fixed in Revision

None

Components

Affects versions

Priority

Blocker
Configure