Code: Select all
DrawingWand *d_wand = NewDrawingWand();
//Drawing diamond
DrawPathStart(d_wand);
int x, y; //point
x = width / 2;
y = height / 2 - i * step * hScale; //(x,y)
DrawPathMoveToAbsolute(d_wand, x, y);
x = width / 2 - i * step;
y = height / 2; //(x,y)
DrawPathLineToAbsolute(d_wand, x, y);
x = width / 2;
y = height / 2 + i * step * hScale; //(x,y)
DrawPathLineToAbsolute(d_wand, x, y);
x = width / 2 + i * step;
y = height / 2; //(x,y)
DrawPathLineToAbsolute(d_wand, x, y);
x = width / 2;
y = height / 2 - i * step * hScale; //(x,y)
DrawPathLineToAbsolute(d_wand, x, y);
DrawPathClose(d_wand);
DrawPathFinish(d_wand);
// Now "peek" at the wand
DrawInfo *draw_info = PeekDrawingWand(d_wand);
draw_info->fill_pattern = mw->images; // set fill pattern ******
DrawImage(mw_frame->images, draw_info);

On the 6.9.4 version, Show is changed. Pictures displayed filling the position has changed, not centered.

How to modify the code needs to do?
Please advise.
thanks.