ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder


ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Crop grid lines hard to see
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  


74 Posts

Posted - Apr 27 2021 :  18:25:01  Show Profile  Reply
In ImageEn 9.3.0 and earlier, the grid guide lines looked like dashed lines. In 10.0 then are hard to see and look more like tiny dots rather than dashes. How can I change it back to dashes?

I see this in your code:
iec.Pen.Style := psDash;

But they are not dashes, or perhaps they are super tiny ones. Pen color is 0.



74 Posts

Posted - Apr 27 2021 :  19:15:40  Show Profile  Reply
I swapped the two SelColors so that the solid line is black and the dashed line is white instead of the other way around, which helps in my case. I may experiment with other colors. Setting pen width to 2 instead of 1 also helps, but that required modifying your code which I don't like to do.

I ended up modifying your code to set the Pen width to 2, solid as black and dashed as white, and instead of psDash I went with psDashDot for both the main polygon and guides.

If you have the chance, it would be nice to be able to set these (pen colors, width and style) via some sort of additional TImageEnView.CropTool properties so I don't have to modify your code. :)

Go to Top of Page


6243 Posts

Posted - May 03 2021 :  22:24:36  Show Profile  Reply
Hi Eric

Unfortunately the default dash style for GDI+ is not very good. For 10.0.1, we use custom 5px dashes which look much better.

Xequte Software
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: