Sack Library Documentation
ContentsIndexReferenceHome
PreviousUpNext
sack::image::BlotScaledImageSizedEx Function
C++
__cdecl IMAGE_PROC void BlotScaledImageSizedEx(Image pifDest, Image pifSrc, S_32 xd, S_32 yd, _32 wd, _32 hd, S_32 xs, S_32 ys, _32 ws, _32 hs, _32 nTransparent, _32 method, ...);
void (* BlotScaledImageSizedEx)(Image pifDest, Image pifSrc , S_32 xd, S_32 yd , _32 wd, _32 hd , S_32 xs, S_32 ys , _32 ws, _32 hs , _32 nTransparent , _32 method, ...);
#define BlotScaledImageSized( pd, ps, xd, yd, wd, hd, xs, ys, ws, hs ) BlotScaledImageSizedEx( pd, ps, xd, yd, wd, hd, xs, ys, ws, hs, 0, BLOT_COPY )
#define BlotScaledImageSizedMultiShaded( pd, ps, xd, yd, wd, hd, xs, ys, ws, hs,r,g,b ) BlotScaledImageSizedEx( pd, ps, xd, yd, wd, hd, xs, ys, ws, hs, 0, BLOT_MULTISHADE,r,g,b )
#define BlotScaledImageSizedTo( pd, ps, xd, yd, wd, hd) BlotScaledImageSizedEx( pd, ps, xd, yd, wd, hd, 0, 0, (ps)->width, (ps)->height, 0, BLOT_COPY )
#define BlotScaledImageSizedToAlpha( pd, ps, xd, yd, wd, hd, a) BlotScaledImageSizedEx( pd, ps, xd, yd, wd, hd, 0, 0, (ps)->width, (ps)->height, a, BLOT_COPY )
#define BlotScaledImageSizedToShaded( pd, ps, xd, yd, wd, hd,shade) BlotScaledImageSizedEx( pd, ps, xd, yd, wd, hd, 0, 0, (ps)->width, (ps)->height, 0,BLOT_SHADED, shade )
#define BlotScaledImageSizedToShadedAlpha( pd, ps, xd, yd, wd, hd,a,shade) BlotScaledImageSizedEx( pd, ps, xd, yd, wd, hd, 0, 0, (ps)->width, (ps)->height, a, BLOT_SHADED, shade )
#define BlotScaledImageSizedToMultiShaded( pd, ps, xd, yd, wd, hd,r,g,b) BlotScaledImageSizedEx( pd, ps, xd, yd, wd, hd, 0, 0, (ps)->width, (ps)->height, 0,BLOT_MULTISHADE, r,g,b )
#define BlotScaledImageSizedToMultiShadedAlpha( pd, ps, xd, yd, wd, hd,a,r,g,b) BlotScaledImageSizedEx( pd, ps, xd, yd, wd, hd, 0, 0, (ps)->width, (ps)->height, a,BLOT_MULTISHADE, r,g,b )
#define BlotScaledImageAlpha( pd, ps, t ) BlotScaledImageSizedEx( pd, ps, 0, 0, (pd)->width, (pd)->height, 0, 0, (ps)->width, (ps)->height, t, BLOT_COPY )
#define BlotScaledImageShadedAlpha( pd, ps, t, shade ) BlotScaledImageSizedEx( pd, ps, 0, 0, (pd)->width, (pd)->height, 0, 0, (ps)->width, (ps)->height, t, BLOT_SHADED, shade )
#define BlotScaledImageMultiShadedAlpha( pd, ps, t, r, g, b ) BlotScaledImageSizedEx( pd, ps, 0, 0, (pd)->width, (pd)->height, 0, 0, (ps)->width, (ps)->height, t, BLOT_MULTISHADE, r, g, b )
#define BlotScaledImage( pd, ps ) BlotScaledImageSizedEx( pd, ps, 0, 0, (pd)->width, (pd)->height, 0, 0, (ps)->width, (ps)->height, 0, BLOT_COPY )
#define BlotScaledImageShaded( pd, ps, shade ) BlotScaledImageSizedEx( pd, ps, 0, 0, (pd)->width, (pd)->height, 0, 0, (ps)->width, (ps)->height, 0, BLOT_SHADED, shade )
#define BlotScaledImageMultiShaded( pd, ps, r, g, b ) BlotScaledImageSizedEx( pd, ps, 0, 0, (pd)->width, (pd)->height, 0, 0, (ps)->width, (ps)->height, 0, BLOT_MULTISHADE, r, g, b )
#define BlotScaledImageTo( pd, ps ) BlotScaledImageToEx( pd, ps, FALSE, BLOT_COPY )
Parameters 
Description 
Image pifDest 
Destination image 
Image pifSrc 
image to copy from 
S_32 xd 
destination x coordinate 
S_32 yd 
destination y coordinate 
_32 wd 
destination width (source image width will be scaled to this) 
_32 hd 
destination height (source image height will be scaled to this) 
S_32 xs 
source x coordinate (where to copy from) 
S_32 ys 
source y coordinate (where to copy from) 
_32 ws 
source width (how much of the image to copy) 
_32 hs 
source height (how much of the image to copy) 
_32 nTransparent 
Alpha method... 
_32 method 
specifies how the source color data is transformed if at all. See BlotMethods ... : possible extra parameters depending on method Method == BLOT_MULTISHADE extra parameters 
red 
Color to use the red channel to output the scale from black to color 
green 
Color to use the red channel to output the scale from black to color 
blue 
Color to use the red channel to output the scale from black to color Method == BLOT_SHADED extra parameters 
shade 
_nt_ 

Copies some or all of an image to a destination image of specified width and height. This does linear interpolation scaling. 

 

There are simple forms of this function as macros, since commonly you want to output the entire image, a macro which automatically sets (0,0),(width,height) as the source parameters to output the whole image exists.

Alpha Methods 

Blot Methods 

 

BlotScaledImage 

BlotScaledImageShaded 

BlotScaledImageShadedAlpha

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.
Copyright (c) 2000+. All rights reserved.
What do you think about this topic? Send feedback!