TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
gideon
NA
1
0
image information gatherer error
Feb 28 2006 3:03 PM
Hi guys n gals... mega nubie here
completley new to this c~ stuff, kind of feel like i am on the brink of understanding it but keep getting stuck, completley stuck.
i am on a mission to create the best image editor program for an assignment towards my uni degree.
i have created a window, i can open close jpeg/bmp files and rotate them in the x & y. no mean feat but for me its a miricle : )3
anyway i am trying to follow some code that allows me to generate a small window displaying image info, see below, anyway i keep getting error messages, i know to you guys they may be stupid and easy to cure, i got no chance on my own..
please help me find out whats wrong with this code...
private
void
imagePropertiesToolStripMenuItem_Click(
object
sender,
EventArgs
e)
{
string
w = memBitmap.Width.ToString();
string
h = memBitmap.Height.ToString();
string
vRes =memBitmap.VerticalResolution.ToString();
string
hRes = memBitmap.HorizontalResolution.ToString();
string
pFormat = memBitmap.PixelFormat.ToString();
string
phyDim = memBitmap.PhysicalDimension.ToString();
MessageBox
.Show(
"Image Width ="
+w+
"\n"
+
"Image Height ="
+h+
"\n"
+
"Verticle Resolution ="
+vRes+
"\n"
+
"Horizontal Resolution ="
+hRes+
"\n"
+
"Pixel Format = "
+pFormat+
"\n"
+
"Physical Dimension = "
+phyDim+
"\n"
+
"image Information"
,
MessageBoxButtons
.OK,
MessageBoxIcon
.Information);
Reply
Answers (
0
)
SAPI 5.1 and C# , please Help
Countdown timer