enesim  0.0.23.1
Drawinglibrary
Functions
Radial Distortion
Renderer

Filters a source image using a barrel distortion inherits from \1. More...

Functions

EAPI Enesim_Rendererenesim_renderer_raddist_new (void)
 Creates a new radial distortion filter renderer.
EAPI void enesim_renderer_raddist_radius_set (Enesim_Renderer *r, double radius)
 Sets the radius of the renderer .
EAPI double enesim_renderer_raddist_radius_get (Enesim_Renderer *r)
 Gets the radius of the renderer .
EAPI void enesim_renderer_raddist_factor_set (Enesim_Renderer *r, double factor)
 Sets the factor of the renderer .
EAPI double enesim_renderer_raddist_factor_get (Enesim_Renderer *r)
 Gets the factor of the renderer .
EAPI void enesim_renderer_raddist_source_surface_set (Enesim_Renderer *r, Enesim_Surface *src)
 Sets the source surface of the renderer .
EAPI Enesim_Surfaceenesim_renderer_raddist_source_surface_get (Enesim_Renderer *r)
 Gets the source surface of the renderer .
EAPI void enesim_renderer_raddist_x_set (Enesim_Renderer *r, double ox)
 Sets the center in X of the renderer .
EAPI void enesim_renderer_raddist_y_set (Enesim_Renderer *r, double oy)
 Sets the center in Y of the renderer .

Detailed Description

Filters a source image using a barrel distortion inherits from \1.


Function Documentation

Creates a new radial distortion filter renderer.

Returns:
The renderer
EAPI void enesim_renderer_raddist_radius_set ( Enesim_Renderer r,
double  radius 
)

Sets the radius of the renderer .

Parameters:
[in]rThe radial distortion renderer
[in]radiusThe radius to use

Gets the radius of the renderer .

Parameters:
[in]rThe radial distortion renderer
Returns:
The radius to use
EAPI void enesim_renderer_raddist_factor_set ( Enesim_Renderer r,
double  factor 
)

Sets the factor of the renderer .

Parameters:
[in]rThe radial distortion renderer
[in]factorThe factor to use

Gets the factor of the renderer .

Parameters:
[in]rThe radial distortion renderer
Returns:
The factor to use

Sets the source surface of the renderer .

Parameters:
[in]rThe radial distortion renderer
[in]srcThe source surface [Transfer full]

Gets the source surface of the renderer .

Parameters:
[in]rThe radial distortion renderer
Returns:
The source surface to use
EAPI void enesim_renderer_raddist_x_set ( Enesim_Renderer r,
double  ox 
)

Sets the center in X of the renderer .

Parameters:
[in]rThe radial distortion renderer
[in]oxThe center in X of the radial distortion
EAPI void enesim_renderer_raddist_y_set ( Enesim_Renderer r,
double  oy 
)

Sets the center in Y of the renderer .

Parameters:
[in]rThe radial distortion renderer
[in]oyThe center in Y of the radial distortion
 All Data Structures Variables