Hello
I am trying to export a tab file of a Thematic map in MapX to MapInfo and
creating the same thematic map using objMapInfo.Do command. This works fine
but for some reason the colour settings in mapx do not match the resulting
colours of the newly created thematic map in MapInfo.
Dim ThmeFields As String
Dim slittle() As String
Dim mapbasicCmd As String
mapbasicCmd = "Shade window frontwindow() 1 with " & ThmeFields & " ranges
apply color "
mapbasicCmd = mapbasicCmd & slittle(0) & ": " & slittle(1) & " Brush (2," &
slittle(2) & "), "
objMapInfo.Do mapbasicCmd
I have ommitted the background colour e.t.c I tried also to use the RGB
function to work it out
I am surprised at this because I thought that the colours in mapX and
MapInfo would be the same
Does anyone know if mapinfo has a colour pallete or something that may cause
this?
This is the colour in mapx theme
<<...OLE_Obj...>>
and this is the colour in the mapinfo theme (not what I wanted).
<<...OLE_Obj...>>
What seems to be happening is that the RGB red values being recorded are
actually the values for the RGB blue colour e.g. Red 128 Green 255 Blue 255
when it should be (is in MapX) Red 255 Green 255 and Blue 128
Thanks
Scott Pontifex
GIS Programmer
Demography/Population Program
Secretariat of the Pacific Community (SPC)
B.P.D5, Noumea Cedex 98848
New Caledonia
Phone (687) 26.20.00 ext(331)
Fax (687) 26.38.18
E-mail: [EMAIL PROTECTED]
www.spc.int/demog
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.558 / Virus Database: 350 - Release Date: 2/01/2004