public static SCBG LoadPng(string file, bool tiled = true) { var imageInfo = ImageUtil.LoadPng(file, tiled); return(new SCBG { Width = (ushort)imageInfo.Width, Height = (ushort)imageInfo.Height, Palette = RawPalette.From32bitColors(imageInfo.Palette), Pixels = imageInfo.Pixels, }); }
public static STL LoadPng(NCER ncer, string pngFile, bool tiled = false) { var imageInfo = ImageUtil.LoadPng( file: pngFile, bank: ncer.CellBanks.Banks[0], blockSize: ncer.CellBanks.BlockSize, tiled: tiled ); return(new STL() { Width = imageInfo.Width, Height = imageInfo.Height, Pixels = imageInfo.Pixels, Palette = RawPalette.From32bitColors(imageInfo.Palette), }); }