how draw Region border with pen style?
-
how draw Region border with pen style?
-
how draw Region border with pen style?
I do not think that you will be able to do the border of a region with a pen. The reason is that windows does not actually calculate the border of your region for the
FrameRgn
function, it simply creates another region and fills that area. This gives the effect of a border. Of you wanted to you could calculate the border yourself from all of the rectnagles that create the region, but this may be time consuming depending on how complicated your region is. You would have to calculate the convex hull of all of the rectangles, even then, if you have holes in your region, they would be difficult to detect as well. How are you getting your region? What are you trying to accomplish with the pen. Because there are other tools you can use like paths, they are pretty powerful. If you post a few more details of what you would like, I will try to help you find a solution. -
I do not think that you will be able to do the border of a region with a pen. The reason is that windows does not actually calculate the border of your region for the
FrameRgn
function, it simply creates another region and fills that area. This gives the effect of a border. Of you wanted to you could calculate the border yourself from all of the rectnagles that create the region, but this may be time consuming depending on how complicated your region is. You would have to calculate the convex hull of all of the rectangles, even then, if you have holes in your region, they would be difficult to detect as well. How are you getting your region? What are you trying to accomplish with the pen. Because there are other tools you can use like paths, they are pretty powerful. If you post a few more details of what you would like, I will try to help you find a solution.I get region by: CombineRgn or CreateRectRgn ... or Create a standard region, then rotate it Thanks
-
I do not think that you will be able to do the border of a region with a pen. The reason is that windows does not actually calculate the border of your region for the
FrameRgn
function, it simply creates another region and fills that area. This gives the effect of a border. Of you wanted to you could calculate the border yourself from all of the rectnagles that create the region, but this may be time consuming depending on how complicated your region is. You would have to calculate the convex hull of all of the rectangles, even then, if you have holes in your region, they would be difficult to detect as well. How are you getting your region? What are you trying to accomplish with the pen. Because there are other tools you can use like paths, they are pretty powerful. If you post a few more details of what you would like, I will try to help you find a solution.sorry for replying so late and thanks for ur suggestion the problem here is not with rgns i could actually get the desired output on the screen with FrameRgn( , ,1,1); but when i take a print out i get an image with more width to what i see on the screen i am not able to under stand the problem as u suggested paths r powerful but they do not support arcs and ellipses in win 98 platform so i could not use paths for creating aregion o fill the path thanks for ur help