Пример #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);
        }
Пример #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);
        }
Пример #3
0
 public void Fetch(ImageHandle handle, FetchHandler callback)
 {
     Fetch(handle, false, callback);
 }