Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Answer
image information gatherer error
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
gideon
18y
1.7k
1
Reply
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);
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
SAPI 5.1 and C# , please Help
Countdown timer