ThinkGeo.com    |     Documentation    |     Premium Support

FileBitmapTileCache Change File Size

Good day.
I have a question.
We using FileBitmapTileCache API.

        FileBitmapTileCache tileCache = new FileBitmapTileCache();
        tileCache.CacheDirectory = @"..\Cache\Data";            
        tileCache.CacheId = "WorldCache";
        tileCache.TileAccessMode = TileAccessMode.Default;
        tileCache.ImageFormat = TileImageFormat.Png;
        layerOverlay.TileCache = tileCache;            
        layerOverlay.TransitionEffect = TransitionEffect.None;

This code create png cache file at 256x256 size.
We want change this png file size. Maybe 512x512 or 1024x1024 or other custom size.

Please check this problem.
Best regards.

Hi Binary,

Please use the code below to change the size.

        FileBitmapTileCache tileCache = new FileBitmapTileCache();
        tileCache.CacheDirectory = @"..\Cache\Data";
        tileCache.CacheId = "WorldCache";
        tileCache.TileAccessMode = TileAccessMode.Default;
        tileCache.ImageFormat = TileImageFormat.Png;
        

        LayerOverlay layerOverlay = new LayerOverlay();
        layerOverlay.TileCache = tileCache;
        layerOverlay.TransitionEffect = TransitionEffect.None;
        layerOverlay.TileHeight = 512;
        layerOverlay.TileWidth = 512;

Thanks,
Peter

Hi peter.
We are resolve a problem with your support.
Thank you for your help.

Hi Binary,

I am glad to hear that’s helpful.

Regards,

Don