Example-VB | Example-VC++ |
Despeckles (removes black pixels from) the displayed image.
Ö | Imaging for Windows Professional Edition V1.0, V1.1, and V2.0 |
Imaging for Windows 95 and 98 | |
Imaging for Windows NT 4.0 |
Image Edit control
object.Despeckle [Pattern]
Parameter | Data Type | Setting | Description |
Pattern | Long (enumerated) |
0 (default) | Removes dots using a single-pixel pattern |
1 | Removes dots smaller than average | ||
2 | Removes dots of average size, those typically encountered and safely removed | ||
3 | Removes dots slightly larger than average | ||
4 | Removes most dots | ||
5 | Remove very large dots |
None
This method despeckles black-and-white images only. Use caution when setting the Pattern parameter so that the despeckling process does not negatively alter the image.
The Display method must be invoked prior to calling this method.
After invoking the Despeckle method, the Save, SaveAs, or SavePage method must be invoked to save the altered image.
Invoking the Despeckle method sets the ImageModified property to True.