thx schonmal für alle antworten

Code: Alles auswählen
Procedure.l ConvertToGray(Image.l)
Protected iHeight.l, iWidth.l, pColor.l
If StartDrawing(ImageOutput(Image))
For iHeight = 1 To ImageHeight(Image)
For iWidth = 1 To ImageWidth(Image)
pColor = Point(iWidth,iHeight)
pColor = (Red(pColor) * 77 + Green(pColor) * 150 + Blue(pColor) * 28) / 255
pColor = RGB(pColor,pColor,pColor)
Plot(iWidth,iHeight,pColor)
Next
Next
StopDrawing()
ProcedureReturn #True
EndIf
EndProcedure
Code: Alles auswählen
Macro Happy
;-)
EndMacro
Happy End
Code: Alles auswählen
Macro Happy
;-)
EndMacro
Happy End
Uiih, wo hast Du die Gewichtung der einzelnen Kanäle her?pColor = (Red(pColor) * 77 + Green(pColor) * 150 + Blue(pColor) * 28) / 255