CImageChart::GetUserImagePtr

CImageChart::SetUserImagePtr


void SetUserImagePtr( double *imagePtr );
double *GetUserImagePtr( void );

Parameters

Description

This function sets the image pointer for the current chart. It does NOT copy the data to the chart, and instead uses this pointer to calculate the word aligned image buffer needed for display.

This function allows the user to set a temporary image to draw from. This can be useful in situations where the data is changing frequently, or when the data is easier kept by the application than by CImageChart. In the case of a program I was writing, this was true since the data was modified frequently, and it would have been slow to keep calling SetData and having to copy the data over and over again.

Use this function sparingly, however, since it is best to store the image data with CImageChart. This way the serialization and other such things work.


CImageChart Reference | CPlot Reference