Web development India freelance website designer developer India SEO

Declare Function Chord Lib "gdi32.dll" (ByVal hdc As Long, ByVal X1 As Long, _
ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal X3 As Long, _
ByVal Y3 As Long, ByVal X4 As Long, ByVal Y4 As Long) As Long

Chord draws an elliptical chord on a device. The chord is drawn using the device's currently selected pen and is filled using its
currently selected brush. The chord consists of a line segment connecting two points along an ellipse; the area between the chord
and the ellipse's edge is filled (going counterclockwise around the ellipse). The first two sets of (x,y) coordinate pairs specify the
bounding rectangle which determines the ellipse. The last two sets of (x,y) pairs determine the points along the ellipse; the start and
endpoints are determined by the intersection of a ray from the ellipse's center through the (x,y) coordinate and the ellipse. The
function returns 1 if successful, or 0 if an error occured.

hdc
A device context to the device to draw the chord on.
X1
The x-coordinate of the upper-left corner of the ellipse's bounding rectangle.
Y1
The y-coordinate of the upper-left corner of the ellipse's bounding rectangle.
X2
The x-coordinate of the lower-right corner of the ellipse's bounding rectangle.
Y2
The y-coordinate of the lower-right corner of the ellipse's bounding rectangle.
X3
The x-coordinate of the point determining the starting point of the chord.
Y3
The y-coordinate of the point determining the starting point of the chord.
X4
The x-coordinate of the point determining the ending point of the chord.
Y4
The y-coordinate of the point determining the ending point of the chord.

Example:

' Draw a chord on window Form1. The ellipse has a bounding rectangle
' of (10,20)-(210,120). The chord will have endpoints on the ellipse of (210,70)
' and (110,20) -- i.e., the "upper-right" portion of the ellipse. Draw the chord using
' Form1's current brush and pen.
Dim retval As Long ' return value

' Draw the chord as specified above.
retval = Chord(Form1.hDC, 10, 20, 210, 120, 210, 70, 110, 20)
Chord Function

151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300

India web developer web development India | Freelance web development ecommerce web developer | Prayagasoft - web designer India, Ecommerce developer india, Ecommerce design