TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

interface ISimpleHttpImage in Tinman.Core.IO

Base interface for classes that decode image data that has been downloaded by a SimpleHttp object.

interface ISimpleHttpImage  

Methods

DecodeImage

Decodes the given image data.

[ThreadSafe]
method DecodeImage (ByteBuffer bytes, string contentUrl, string contentType, int32 width, int32 height, [] int64[] pixels, int32 offset, int32 stride)
type int32
params bytes [not-null] The encoded image data.
  contentUrl [not-empty] The content URL.
  contentType [not-null] The content type (MIME).
  width [>=0] The width of the image, in pixels.
  height [>=0] The height of the image, in pixels.
  pixels [not-null] Output array for image image pixels (see Colors).
  offset [>=0] Offset into pixels to top-left output pixel.
  stride [>=0] Distance between adjacent pixels rows in pixels.
returns 0 if the image data has been decoded,
-1 if contentType is not supported,
-2 if width or height do not match.

Exceptions: