Are there any ways as to how can I distinguish the real names from the ones that arent valid on progress
Func _ChangeImageColors($sInputImagePath, $sOutputImagePath, $aColorMap)
_GDIPlus_Startup()
Local $hImage = _GDIPlus_ImageLoadFromFile($sInputImagePath)
If @error Then Return False
Local $hGraphics = _GDIPlus_GraphicsCreateFromImage($hImage)
Local $iWidth = _GDIPlus_ImageGetWidth($hImage)
Local $iHeight = _GDIPlus_ImageGetHeight($hImage)
For $i = 0 To $iWidth - 1
For $j = 0 To $iHeight - 1
Local $iPixelColor = _GDIPlus_BitmapGetPixel($hImage, $i, $j)
Local $newColor = $aColorMap[0]
_GDIPlus_GraphicsDrawRectangle($hGraphics, $i, $j, 1, 1, $newColor)
Next
Next
_GDIPlus_ImageSaveToFile($hImage, $sOutputImagePath)
_GDIPlus_GraphicsDispose($hGraphics)
_GDIPlus_ImageDispose($hImage)
_GDIPlus_Shutdown()
Return True
EndFunc ;==>_ChangeImageColors