M
Muhammad Arif
Hi,
I am developing an application for PDA for Windows CE environment. I
am using Bitmap and Graphics object to create a bitmap. This BMP will
have a 3x3 matrix on screen and have to place some text or image in
each cell of the matrix. The height of text or image may vary and
that's why I need to calculate the height of a string before drawing
so that I can have the coordinates of next cell on screen.
I just need to know the following two things:
1- Is there any API or function/procedure in .NET CF library which
return me the height of a string in pixels or any other unit?
2- Same with the physical bitmap file (.BMP file) i.e, any API or
function/procedure which return me the height of stored .BMP file?
Regards
Arif
I am developing an application for PDA for Windows CE environment. I
am using Bitmap and Graphics object to create a bitmap. This BMP will
have a 3x3 matrix on screen and have to place some text or image in
each cell of the matrix. The height of text or image may vary and
that's why I need to calculate the height of a string before drawing
so that I can have the coordinates of next cell on screen.
I just need to know the following two things:
1- Is there any API or function/procedure in .NET CF library which
return me the height of a string in pixels or any other unit?
2- Same with the physical bitmap file (.BMP file) i.e, any API or
function/procedure which return me the height of stored .BMP file?
Regards
Arif