VB6: GDI/GDI+ based function that draws multiple lines of text in a rotated rectangle

I’m looking for somebody to develop a GDI/GDI+ based function to be used in VB6 that draws multiple lines of text in a rotated rectangle.

Name of the function:





hDC of target to draw on







Horizontal Alignment (Left, Center, Right)

Vertical Alignment (Top, Middle, Bottom)

ReduceToFit (Yes, No)

Rotation in degrees

X-coordinate of center of rectangle

Y-coordinate of center of rectangle

Height of rectangle

Width of rectangle

(Note: If it makes the implementation easier, it would also be possible to pass the coordinates of the four corners of the rectangle, either in twips or pixels.)

If parameter ReduceToFit is no, the function should take the text and font-settings as-is, and try to fit as much as possible in the rectangle. Text that doesn’t fit is cropped.

If parameter ReduceToFit is yes, the function should try first if the full text fits with the font-settings. If it doesn’t, it should go through a loop, reducing the font-size with 1 point each step until the full text fits, or if the minimum font size is reached. The minimum font size should be taken as a variable that is read from the registry, and set to 4 if the registry key isn’t found. If the full text doesn’t fit with font size 4, the text that doesn’t fit is cropped.

The attached PowerPoint slides provide additional info on expected behavior.

Skills: Visual Basic, Windows API

See more: vertical lines and horizontal lines, top degrees, rectangle lines, i.t. degrees, fit text, rectangle, gdi, size function, read lines, vb6 function, rotation vb6, full text, rotated rectangle collision, additional function, gdi vb6, text coordinate, registry visual basic, horizontal vertical function, ad9833 based function generator, text message forwarded multiple numbers, vertical text horizontal, top hdc, function point, loop registry, vb6 registry

About the Employer:
( 19 reviews ) Grez-Doiceau, Belgium

Project ID: #5718200

Awarded to:


A proposal has not yet been provided

$54 USD in 3 days
(301 Reviews)

5 freelancers are bidding on average $136 for this job


Hi, I am #avdushima, I worked for you Drag&Drop code. If you wish, I can do this work too, at maximum in 2 days. I have long experience in VB Graphics. Thank you for your trust.

$100 USD in 2 days
(42 Reviews)

A proposal has not yet been provided

$55 USD in 3 days
(30 Reviews)

Hello. I have been developing in VB6 for many years, and have done this kind of work often. Check out the tool I developed at my website: You can see that the label object supports text placemne More

$155 USD in 3 days
(6 Reviews)

Hi, We are Expert in VB6 We have Complicated user defined grid Activex Control developed in visual basic 6 ($700) Apart from this We h More

$315 USD in 10 days
(21 Reviews)