Imagine\Gmagick\Effects | Imagine API

- Classes
- Namespaces
- Interfaces
- Index

Imagine API
Class

# Imagine\Gmagick\Effects

class Effects implements EffectsInterface

Effects implementation using the Gmagick PHP extension

## Methods

| __construct(Gmagick $gmagick) |
EffectsInterface | gamma(float $correction) Apply gamma correction |
EffectsInterface | negative() Invert the colors of the image |
EffectsInterface | grayscale() Grayscale the image |
EffectsInterface | colorize(Color $color) Colorize the image |
EffectsInterface | sharpen() Sharpens the image |

## Details

###
at line 25
`public __construct(Gmagick $gmagick)`

#### Parameters

Gmagick | $gmagick |

###
at line 33
`public EffectsInterface gamma(float $correction)`

Apply gamma correction

#### Parameters

float | $correction |

#### Return Value

EffectsInterface |

#### Exceptions

RuntimeException |

###
at line 47
`public EffectsInterface negative()`

Invert the colors of the image

#### Return Value

EffectsInterface |

#### Exceptions

RuntimeException |

###
at line 66
`public EffectsInterface grayscale()`

Grayscale the image

#### Return Value

EffectsInterface |

#### Exceptions

RuntimeException |

###
at line 80
`public EffectsInterface colorize(Color $color)`

Colorize the image

#### Parameters

Color | $color |

#### Return Value

EffectsInterface |

#### Exceptions

RuntimeException |

###
at line 88
`public EffectsInterface sharpen()`

Sharpens the image

#### Return Value

EffectsInterface |

#### Exceptions

RuntimeException |