T
Two Many
Use MeasureString, right? Nope, I need to find out the exact width of
drawn text. I am thinking of inspecting pixels to find where the text
starts and ends. I would start to scan vertically from the far left
and move right until I hit a colored pixel and this would be the
start. Then, I would scan vertically from the far right and move left
until I hit a colored pixel and this would be the end. Thus,
end-start = exact drawn width. This is the best that I could think
of... unless somebody has a better solution????
-
TM
drawn text. I am thinking of inspecting pixels to find where the text
starts and ends. I would start to scan vertically from the far left
and move right until I hit a colored pixel and this would be the
start. Then, I would scan vertically from the far right and move left
until I hit a colored pixel and this would be the end. Thus,
end-start = exact drawn width. This is the best that I could think
of... unless somebody has a better solution????
-
TM