Image
stb.Image (extern class)
Static Members
info(filename: String): StbImageInfo
Name | Type |
---|---|
filename |
String |
Returns |
---|
StbImageInfo |
info_from_memory(bytes: haxe.io.BytesData, length: Int): StbImageInfo
Name | Type |
---|---|
bytes |
haxe.io.BytesData |
length |
Int |
Returns |
---|
StbImageInfo |
load(filename: String, ?req_comp: Int = 0): StbImageData
Name | Type | Default |
---|---|---|
filename |
String | |
req_comp |
Int | 0 |
Returns |
---|
StbImageData |
load_from_memory(bytes: haxe.io.BytesData, length: Int, ?req_comp: Int = 0): StbImageData
Name | Type | Default |
---|---|---|
bytes |
haxe.io.BytesData | |
length |
Int | |
req_comp |
Int | 0 |
Returns |
---|
StbImageData |
failure_reason(): String
Returns |
---|
String |
Name | Type |
---|---|
flag |
Int |
loadf(filename: String, ?req_comp: Int = 0): StbImageData
Name | Type | Default |
---|---|---|
filename |
String | |
req_comp |
Int | 0 |
Returns |
---|
StbImageData |
loadf_from_memory(bytes: haxe.io.BytesData, length: Int, ?req_comp: Int = 0): StbImageData
Name | Type | Default |
---|---|---|
bytes |
haxe.io.BytesData | |
length |
Int | |
req_comp |
Int | 0 |
Returns |
---|
StbImageData |
Name | Type |
---|---|
filename |
String |
Returns |
---|
Bool |
is_hdr_from_memory(bytes: haxe.io.BytesData, length: Int): Bool
Name | Type |
---|---|
bytes |
haxe.io.BytesData |
length |
Int |
Returns |
---|
Bool |
Name | Type |
---|---|
gamma |
Float |
Name | Type |
---|---|
scale |
Float |
Name | Type |
---|---|
gamma |
Float |
Name | Type |
---|---|
scale |
Float |
Metadata
Name | Parameters |
---|---|
:build |
linc.Linc.touch() |
:build |
linc.Linc.xml("stb_image") |
:include |
"linc_stb_image.h" |