Scott Pontifex a �crit : >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 > > > > > Hello,
I had the same problem using maps both in MapX and MapInfo. The thing is that one uses a RGB color system and the other uses a BGR color system. The color problem you have should convert blue to red and so on. To correct it, you can write a function in the language you're using with MapX to convert RGB colors to BGR codes (i don't recall which program uses which system and I can't test it on my machine since I don't have MapX anymore, sorry). Hope this helps. -- Jean-Christophe Lacaze Charg� de mission SIG DRAF Auvergne France E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 9825
