transform - transformations available for ASImages libAfterImage/transform.h
Contents
Description
This function will try to convert double precision indexed image data into actuall color image using
palette. Original data should be attached to ASImage using vector member. Operation is relatively fast
and allows representation of scientific data as color image with dynamically changing palette.
libAfterImage/transform/create_asimage_from_vector()
Example
ASTile
libAfterImage/transform/merge_layers()
Inputs
asv - pointer to valid ASVisual structure
src - source ASImage.
slice_x_start
- ending of the left corners
slice_x_end
- beginning of the right corners
slice_y_start
- ending of the top corners
slice_y_end
- beginning of the bottom corners
to_width
- width of the generated image;
to_height
- height of the generated image;
scaled - if True - middle part of the image will be scaled, otherwise - tiled;
out_format
- optionally describes alternative ASImage format that should be produced as the result - XImage,
ARGB32, etc.;
compression_out-
compression level of resulting image in range 0-100;
quality
- output quality.
Name
transform - transformations available for ASImages libAfterImage/transform.h
Nameadjust_Asimage_Hsv()
- adjusts image color properties in HSV colorspace
Nameblur_Asimage_Gauss()
Performs Gaussian blurr of the image ( useful for drop shadows and the likes ).
Namecolorize_Asimage_Vector()
creates ASImage from double precision indexed image data - useful for scientific visualisation.
Namecreate_Asimage_From_Vector()
- convenience function allowing one to create new ASImage, set its vector data and colorize it using
palette - all in one step.
Namefill_Asimage()
- Fills rectangle within the existing ASImage with specified color.
Nameflip_Asimage()
- rotates ASImage in 90 degree increments
Namemake_Gradient()
- renders linear gradient into new ASImage
Namemerge_Layers()
Namemirror_Asimage()
Namepad_Asimage()
enlarges ASImage, padding it with specified color on each side in accordance with requested geometry.
Namescale_Asimage()
- scales source ASImage into new image of requested dimensions.
Nameslice_Asimage2()
- slice ASImage leaving its corners intact, and scaling the middle part.
Nametile_Asimage()
- tiles/crops ASImage to desired size, while optionally tinting it at the same time.
Nametransform
Return Value
New ASImage on success, NULL on failure.
See Also
scale_asimage(), tile_asimage()
3rd Berkeley Distribution AfterStep v.2.2.12 transform(3x)
Synopsis
ASImage* slice_asimage2( ASVisual *asv, ASImage *src,
int slice_x_start, int slice_x_end,
int slice_y_start, int slice_y_end,
int to_width,
int to_height,
Bool scaled,
ASAltImFormats out_format,
unsigned int compression_out, int quality );
