private IMapImage exportMap()
        {
            //export the map using the current map description
            IImageType imageType = new ImageType()
            {
                Format     = esriImageFormat.esriImagePNG32,
                ReturnType = esriImageReturnType.esriImageReturnURL
            };

            ImageDisplay id = new ImageDisplay()
            {
                Height           = 400,
                Width            = 400,
                DeviceResolution = 150
            };

            //sample has this from ImageDisplay also
            IImageDescription idesc = new ImageDescriptionClass();

            idesc.Display = id;
            idesc.Type    = imageType;

            return(((IMapServer4)ms).ExportMapImage((IMapDescription)mapDesc, idesc));
        }
        private IMapImage exportMap()
        {
            //export the map using the current map description
            IImageType imageType = new ImageType()
            {
                Format = esriImageFormat.esriImagePNG32,
                ReturnType = esriImageReturnType.esriImageReturnURL
            };

            ImageDisplay id = new ImageDisplay()
            {
                Height = 400,
                Width = 400,
                DeviceResolution = 150
            };

            //sample has this from ImageDisplay also
            IImageDescription idesc = new ImageDescriptionClass();
            idesc.Display = id;
            idesc.Type = imageType;

            return ((IMapServer4)ms).ExportMapImage((IMapDescription)mapDesc, idesc);
        }