Skip to content

hxd.res.Image

hxd.res.Image

Inherits from: hxd.res.Resource

Fields

NameType
texh3d.mat.Texture
infVirtual[bc, format, height, width]
staticALLOW_NPOTBool
staticDEFAULT_FILTERh3d.mat.Filter
staticDEFAULT_ASYNCBool
staticENABLE_AUTO_WATCHBool
staticdecodeJPGFun
staticdecodePNGFun

Protos

  • f@5978 getFormat(hxd.res.Image) → I32
  • f@5979 getSize(hxd.res.Image) → Virtual[height, width]
  • f@5980 getPixels(hxd.res.Image, hxd.PixelFormat, Null) → hxd.Pixels
  • f@5981 watchCallb(hxd.res.Image) → Void
  • f@5982 loadTexture(hxd.res.Image) → Void
  • f@5983 toTexture(hxd.res.Image) → h3d.mat.Texture
  • f@5973 toTile(hxd.res.Image) → h2d.Tile

Bindings

  • static f@5977 __constructor__(hxd.res.Image, hxd.fs.FileEntry) → Void
  • static f@5976 decodePNG(haxe.io.Bytes, I32, I32, hxd.PixelFormat, Bool) → hxd.Pixels
  • static f@5975 decodeJPG(haxe.io.Bytes, I32, I32, hxd.PixelFormat, Bool) → hxd.Pixels