Ok I found this

Converting between RGB and BGR values for MapX

http://testdrive.mapinfo.com/techsupp/miprod.nsf/kbase_by_product/8C5BEBBC98
7D60BC85256802007C3AAE




-----Original Message-----
From: Scott Pontifex [mailto:[EMAIL PROTECTED]
Sent: Friday, 9 January 2004 4:50 PM
To: [EMAIL PROTECTED]
Subject: MI-L Thematic Map Export from MapX to Mapinfo 


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? 


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
 

---
Incoming 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
 

---
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
 

Reply via email to