How To: Export the Legend as a Bitmap in VC++
This document contains sample code to demonstrate how to export the MapObjects legend control as a bitmap.
- Create a variable to store the index number of the layer to be exported.
Use -1 to add all layers to the bitmap of the Legend.
short i = -1;
- Create a variable to store the path and location of the bitmap.
BSTR str = SysAllocString(L"C:\\temp\\temp.bmp");
- Export the Legend as a BMP file
Last Modified: 5/5/2016
Article ID: 000002283
Software: MapObjects IMS 1.0, 2.0 MapObjects-Windows 2.0, 2.0a