public byte[] GetData(ImageHandle handle) { var dimensions = GetDimensions(handle); var data = new byte[dimensions.Width * dimensions.Height * 4]; GetData(handle, data); return(data); }
public Texture2D GetTexture(ImageHandle handle) { var dimensions = GetDimensions(handle); var texture = new Texture2D((int)dimensions.Width, (int)dimensions.Height, TextureFormat.RGBA32, false, true); texture.LoadRawTextureData(GetData(handle)); texture.Apply(); return(texture); }
public void Fetch(ImageHandle handle, FetchHandler callback) { Fetch(handle, false, callback); }