## PreprocessingFilter.ToGrayscale method

Konverterar en bild till gråskalebild. Gråskalebild har 256 ljusnivåer i bilden (0 till 255).

```csharp
public static PreprocessingFilter ToGrayscale()
```

### Returvärde

GråskalaFilter-objekt.

### Se även

* class [PreprocessingFilter](../)
* namnutrymme [Aspose.OCR.Models.PreprocessingFilters](../../preprocessingfilter/)
* hopsättning [Aspose.OCR](../../../)


