Programming language: VB6
I have a problem to copy region within a picture determined by 4 points (p1,p2,p3,p4), and reskew it to a another picture with fixed rectangle (P1,P2,P3,P4), as shown:
I don't have the details but you need StretchBlit.
Related
Need some help with shape formatting.
Seems like there must be an easy way to do this, but I can't seem to figure it out.
I want to lock the size of the blue circles shown below, but still want to be able to move them.
The purpose of the blue circles is to drag and drop into the bullseye target during robot leveling checks.
I just don't want to allow the user to change the size of the blue circle when selecting it and placing it in the bullseye target.
Use Line (shape) instead of a circle.
Step :
Insert (a very short) line.
set weight (around 5-6 pt)
set Begin Arrow Type : Round
The will look like a circle. ( :
Done.
p/s : by defining a very short line there is no 'radius' parameter.
I need help with this : I have Freeform area and shapes in form of circles named from A to G. Some of this points are inside of Freeform area and some of them no. I need macro which will check each of this points - if this point is inside/ outside of freeform area. How can i get result in form of table where in Column A are Names of shapes (circles-points) and in column B result (if point is inside/outside of freeform).
Thanks
Victor
Picture of what I need is here:
There are several ways to do that. Either over calculation of the Angles or by creating a ray trough the point and find the intersections To the polygons. If the count are even, it's inside; if it's odd it's outside. Those algorithms are not that trivial and numerical a challenge. Here are some links (They have vb6/vba source):
Paul Bourke Point inside Polygon
VB-Helper Point inside Polygon
If it has not that exact you may draw the points in a picturebox and determine the background color.
To find more search the web for "points inside polygon".
In MS Excel, I applied conditional formatting to a cell A1 so that it's color changes from blue at value 0 and red at value 100. I copied that cell and pasted it as linked picture(I) specially.(Paste Special). The color of the rectangle picture now changes if value in original cell is changed. The problem is, the shape is only rectangular, it can be converted into square and diamond shape at best.If same rectangle can be transformed into different shapes(maybe by adding extra anchor on rectangle shape), a heat map can be created easily. Please share your insights about this thing if there is a way.
Following pictures may help understand the problem:
[Example][1]
If you want a heat map, please consider using a CHART not gazillions of picture objects, colored/placed/rotated/etc to ... mimic a chart.
First, google anything about "surface chart" in Excel, see how it looks in Excel, whatever. Just see it and think about it so you can compare it to your current approach.
You will observe some things, like:
it's 3D
it has just a few layers/colors
etc.
But really, all of them can be solved. Probably easier than your current approach.
you can easily turn off both axes and you can rotate it so the camera is totally straight top-down - then it looks flat as paper and noone can see it as 3D anymore
you can add more layers, you can set each of them to specific colors
etc.
Some resources:
multiple colors in surface chart
how to change rotation of 3d chart
geesh, I just found even a whole article/tutorial dedicated to creating heat map charts.
Please, read that last link and I'm pretty sure you will want to use that approach instead of doing picture puzzles.
I have one dimensions and one expressions. is there any way to color every segment (in my example i got 11 segment) in different colors. I now have this
and I want different color for every of this 11 segment.
Does anyone have an idea how to resolve problem?
You can use the Multicolored checkbox in Color tab in the chart properties
With this checkbox checked the result will be:
I want to fill some part of the shapes in actionscript, lets say "half of a circle", but unfortunately i could not find any suitable way to do it ?. Any suggestions will be appreciated thanks :)
one solution, in your case you have to draw some Close-region# square and rectangle triangle etc. in your Main region and then you can fill it whole part of the region which you draw. so if you want to fill a part of the region then you must draw a region on your main region then you can fill it so user have a feeling that he has filling a half region.
May This link'll be helpfull the ActionScript Drawing API & Drawing and Filling Partial Circles