Format

Format

package hl

Available on hl

These are the bindings for the HL fmt.hdll library, which contains various low level formats handling.

Static methods

static decodeJPG (src:Bytes, srcLen:Int, dst:Bytes, width:Int, height:Int, stride:Int, format:PixelFormat, flags:Int):Bool

Decode JPG data into the target buffer.

static decodePNG (src:Bytes, srcLen:Int, dst:Bytes, width:Int, height:Int, stride:Int, format:PixelFormat, flags:Int):Bool

Decode PNG data into the target buffer.

static scaleImage (out:Bytes, outPos:Int, outStride:Int, outWidth:Int, outHeight:Int, _in:Bytes, inPos:Int, inStride:Int, inWidth:Int, inHeight:Int, flags:Int):Void

Upscale/downscale an image. Currently supported flag bits: 1 = bilinear filtering

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/hl/Format.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部