Sack Library Documentation
ContentsIndexReferenceHome
PreviousUpNext
sack::image::do_lineExV Variable
C++
IMAGE_PROC_D void (__cdecl * do_lineExV)(Image pImage, S_32 x, S_32 y , S_32 xto, S_32 yto, CDATA color , void (*func)( Image pif, S_32 x, S_32 y, int d ));
Parameters 
Description 
Image 
the image to pretend to draw on 
draw from this x coordinate 
draw from this y coordinate 
xto 
draw to this x coordinate 
yto 
draw to this y coordinate 
userdata (color data) 
func 
user callback function to a function of type...
void func( Image pif, S_32 x, S_32 y, int d ) ; 

routine which iterates through the points along a lone from x,y to xto,yto, calling a user function at each point.

The Image passed does not HAVE to be an Image, it can be any user POINTER

The data passed is limited to 32 bits, and will not hold a pointer if built for 64 bit platform.

Image image;
       
void MyPlotter( Image image, S_32 x, S_32 y, CDATA color )
{
    // do something with the image at x,y
}
       
void UseMyPlotter( Image image )
{
    do_lineExV( image, 10, 10, 80, 80, BASE_COLOR_BLACK, MyPlotter );
}
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!