DrawInfo.fill_pattern has changes ?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
tdh10
Posts: 1
Joined: 2018-11-09T00:18:03-07:00
Authentication code: 1152

DrawInfo.fill_pattern has changes ?

Post by tdh10 » 2018-11-09T00:25:40-07:00

DrawInfo.fill_pattern on the 6.8.9 version of the performance of normal, when I upgraded to 6.9.4

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);

User avatar
fmw42
Posts: 23998
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: DrawInfo.fill_pattern has changes ?

Post by fmw42 » 2018-11-09T00:49:13-07:00

Could be a bug in your updated version. But that vesion is rather old. Try upgrading to the current version, 6.9.10.14 or 7.0.8.14

Post Reply