if (item.LoadAssetFromCache)
{
item.TextureData = Client.assets.Cache.getCachedAssetBytes(item.Data.TextureInfo.TextureID);
}
DecodedTgaImage cachedImage = decodeJpeg200Image(item.TextureData);
if(cachedImage == null)
throw new Exception("Error in decoding the image: " + item.Data.TextureInfo.TextureID);
item.Data.TextureInfo.HasAlpha = cachedImage.hasAlpha;
item.Data.TextureInfo.FullAlpha = cachedImage.fullAlpha;