Hi,
I was looking on the SDK but I can't find how to draw text in angles
different from 0 and 90. Is it possible? If not, does exist some 3rd party
library allowing this? Any hint is welcomed
Thanks in advance
Faustino 3 9748
Try using Graphics.DrawPa th() or FillPath() methods. Look at help for
GraphicsPath.Ad dString() that might help you out..
--
Girish Bharadwaj
"faustino Dina" <fd***@matusa.c om.mx> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. Hi,
I was looking on the SDK but I can't find how to draw text in angles different from 0 and 90. Is it possible? If not, does exist some 3rd party library allowing this? Any hint is welcomed
Thanks in advance Faustino
Hi,
To rotate text at a location, follow these steps
1 - Do a translate transformation to the location of your text
2 - Do a rotate transform through the required angle
3 - Write the text as normal using drawstring
The following code should help you, it assumes that there are no prior
transformations
objGraphics.Tra nslateTransform (X, Y)
objGraphics.Rot ateTransform(.R otation)
objGraphics.Dra wString(Text, Font, objBrush, 0, 0, .StringFormat)
James
--
Create interactive flowcharts, diagrams and UML models with ERM3 at http://www.crainiate.net
"faustino Dina" <fd***@matusa.c om.mx> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. Hi,
I was looking on the SDK but I can't find how to draw text in angles different from 0 and 90. Is it possible? If not, does exist some 3rd party library allowing this? Any hint is welcomed
Thanks in advance Faustino
The GDI+ FAQ has the answer.
--
Bob Powell [MVP]
C#, System.Drawing
September's edition of Well Formed is now available. http://www.bobpowell.net/currentissue.htm
Answer those GDI+ questions with the GDI+ FAQ http://www.bobpowell.net/gdiplus_faq.htm
Blog http://bobpowelldotnet.blogspot.com
"faustino Dina" <fd***@matusa.c om.mx> wrote in message
news:#6******** ******@TK2MSFTN GP10.phx.gbl... Hi,
I was looking on the SDK but I can't find how to draw text in angles different from 0 and 90. Is it possible? If not, does exist some 3rd party library allowing this? Any hint is welcomed
Thanks in advance Faustino
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: rzed |
last post by:
I'm using PIL to generate some images which may be rotated at the
user's option. When they are rotated, the original image is cropped
in the new image (which is fine), and the corners are black (which
is not, in this case). I can't find any documented way to change
the default fill color (if that's what it is) for the corners, and
PIL also doesn't seem to support a flood fill. I have created a
flood fill in Python, which works but which...
|
by: Shalley |
last post by:
Hello, there,
I have no idea how to draw an ellipse with an rotated
angle. For example, the ellipse's center is (20.0, 50.0),
two conjugate diameter pairs end-point are (35.0, 35.0),
(25.0, 55.0). I hope to use win32 API functions to finish
this drawing. Is it possible?
Please help me giving your suggestion. Tks.
|
by: Cc |
last post by:
how do I draw string upside down?
|
by: faustino Dina |
last post by:
Hi,
I was looking on the SDK but I can't find how to draw text in angles
different from 0 and 90. Is it possible? If not, does exist some 3rd party
library allowing this? Any hint is welcomed
Thanks in advance
Faustino
|
by: mrajanikrishna |
last post by:
Hello friends,
I have developed an application using ASP.NET and SQL Server.
Ours is a garment factory. I need to design another module in my
application.
I want to generate images on fly based on users selection(body, sleeve
etc).
Until here no problem. Coz we have only 2 types of bodies and 3 types
of sleeves and 3 types of necks. I can design static images and save in
| |
by: Khadim |
last post by:
Hi,
I am facing a problem in my application. I have an image on which there
are many numbers present. I can find the pixel position of the center
of those numbers. Now I have the names of those numbers in seperate
file which I have to write to corresponding numbers.
I rotate my image on 45 degrees with point to rotate 30 pixels on top
left which shows my text on 45 degrees on top left. Writing this
doesn't gives my much trouble.
|
by: Smokey Grindel |
last post by:
I want to draw a string that is at a 90 degree angle instead of left to
right it would be rotated 90 degrees... how would you go about doing this?
thanks!
|
by: austincollins |
last post by:
I have been searching for hours to find a solution to display text rotated at 90 degrees in firefox, and could not find one. css3 and IE has the css command "writing-mode: tb-rl;" but this does not work in firefox. i came to conclusion that SVG is the solution. I have been playing with SVG for few hours now and it is brilliant, you can do graphics and animation like flash but text and javascript based!. anyway check this out, this is one...
|
by: halo combat22 |
last post by:
I need help on a project i was assigned.
I need a way to recognize these numbers.
Any help is appreciated.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |