Posted By: shoshan | Apr 16th, 2006 @ 12:49 PM
page 1 of 1
Comments: 3 | Views: 2896

Hi..for some kind of reason my teacher is willing to pay me about 30$Big Smile for doing a tiny project for him in VB.NET 2003:

He wants me to get a fixed font name & size as input, and some chars, and the output will be the chars ordered by density.

So I thought what easy! :
for each char I will take a blank bitmap, fill it black,
draw the char in white, and count how many white pixels were drawn.

so I started a new windows form:


AND NOW, MY PROBLEM:
*  how can I draw text to a bitmap so that I can go over it's pixels ?
OR
*  how can I get pixels from a control (I drew on the control) ?
OR
*  how can I get pixels that were drawn by a controls getGraphics ?

Angus
Angus
.
shoshan wrote:
how can I get pixels from a control (I drew on the control) ?


I have done this in C# by creating a bitmap and assigning it to a control, therefore allowing me to use the methods specific to bitmaps. If I remember correctly it wasn't too hard. Try searching the Techoff I think I posted there.

Angus Higgins
page 1 of 1
Comments: 3 | Views: 2896
Microsoft Communities