API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IBITMAPFX_SETPOSTERIZATION()

Brew Release
Brew MP 1.0.2
See Also
None
Description
This function changes the posterization of the input image. The user can set the posterization of the image. The posterization value can range from 0 to 255
Params
me
[in]:
Pointer to me Interface.
inImage
[in]:
Pointer to the input image. outImage[in/out]: Pointer to the output image
posterize
[in]:
the posterization value ranging from 0 to 255
Interface
Prototype
  •     int IBitmapFX_SetPosterization
        (
          IBitmapFX * me,
          IBitmap* inImage,
          IBitmap* outImage,
          int32 posterize
        )
    
Return
  • Returns AEEError codes
    AEE_SUCCESS, if the function completed successfully EBADPARM, if the posterization factor is outside the specified range [0..255]
Side Effect
  • None.
Comments
The size of the output image should be the same size as the input image The colorScheme of the output image needs to be set by the user. If posterize value is 0 then it do nothing and return original image.