ColorMap type

A pair of colours: one to replace and the colour that takes its place.

An array of ColorMap is a remap table, which ImageAttributes.SetRemapTable applies while an image is drawn. The type mirrors the GDI+ ColorMap structure.

Fields

Field Type Meaning
oldColor Color The colour to replace.
newColor Color The colour to put in its place.

Creating

Syntax: map = ColorMap( oldColor, newColor )

oldColor, newColor
required Color values for the fields.
Dim user As GdiPlusUser = GdiPlusUser()

Dim map As ColorMap = ColorMap(Color(1, 2, 3, 4), Color(5, 6, 7, 8))
Debug.Print Hex$(map.oldColor.argb) & " " & Hex$(map.newColor.argb)
' Output:
' 1020304 5060708

See Also