Exemple #1
0
        public byte[] GetData(ImageHandle handle)
        {
            var dimensions = GetDimensions(handle);
            var data       = new byte[dimensions.Width * dimensions.Height * 4];

            GetData(handle, data);
            return(data);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
 public void Fetch(ImageHandle handle, FetchHandler callback)
 {
     Fetch(handle, false, callback);
 }