|
Is that what he means ?
MasterSharp, this is why we discouraged you from writing owner drawn controls yesterday. Not because we don't want to help, but because you need to grasp the basics first. If this is what you meant, I urge you again to buy a book on C# and work through it, so you cover these sort of elementary gaps in your knowledge and build a firm foundation you can build on.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I don't follow. condition is different every time ?
if (x == 1 || y == 2 || z == 3)
will succeed if only one of those statements is true. && requires they are all true.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
How many '&&'s can you use, is what I mean. I guess that what it boils down to.
|
|
|
|
|
Until your & key wears out, and even then you can copy-and-paste.
|
|
|
|
|
Oh... I thought you could only use it once...
|
|
|
|
|
Well, next time... TRY IT!! You ain't gonna hurt the computer.
|
|
|
|
|
Well, it just seemed it would screw up tough, so thanks for the advice!
|
|
|
|
|
You can't screw up... unless you're testing a hard-disk-wiper-outer or something.
|
|
|
|
|
PIEBALDconsult wrote: unless you're testing a hard-disk-wiper-outer or something.
well, you know I started out with my first computer project to be a disk operating system... but then I smartly decided to start with drawing user interfaces. So far, in the last 27 years of computer programmng, I have crashed many computers, but I have never managed to crash a user. :->
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
PIEBALDconsult wrote: Well, next time... TRY IT!!
Programming is like pinball. The reward for doing it well is the
opportunity of doing it again.
- programmers' saying
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
But my wife is better at pinball than I am... oh, wait a minute...
Programming Sex is like pinball. The reward for doing it well is the opportunity of doing it again.
|
|
|
|
|
Keep my thread clean and PG. Kid, here.
|
|
|
|
|
"ERROR: You've mortally wounded the compiler, please refrain from using Visual Studio again. FOREVER!"
|
|
|
|
|
Seriously, you will never learn anything if you don't try basic stuff like this before asking others to explain it to you.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
OK, I got it, stop jumping on me!
|
|
|
|
|
Stop asking to be jumped upon.
|
|
|
|
|
Hello
If i have a string how i can split it into character
Ex:
200134 i want to have 2;0;0;1;3;4
Thanks a lot
Assaf
|
|
|
|
|
you can access individual characters in a string by indexing string[index] ;
you can convert the entire string to a char array String.ToCharArray()
and you can look that up in the documentation; I think you best start studying C# in a book !
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
|
Does anyone know how I can load a png or a jpg, change it's DPI ( so change the metadata that represents the DPI settng, NOT resize the image ) and then save that change ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
Great - thanks.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi Christian,
AFAIK a PNG just holds pixels, it does not know resolution or physical dimensions.
JPEG supports "properties", they populate what gets handled by
Image.PropertyItems, Image.GetPropertyItem(), Image.SetPropertyItem()
IIRC you can not add properties to an image, but you can modify the existing ones;
and they are indexed by number, so you need to figure out the index for each property.
Here are some of them I once found on the web:
propNames.Add(0x010E, "ImageDescription");
propNames.Add(0x010F, "EquipMake");
propNames.Add(0x0110, "EquipModel");
propNames.Add(0x0112, "Orientation");
propNames.Add(0x011A, "XResolution");
propNames.Add(0x011B, "YResolution");
propNames.Add(0x0132, "DateTime");
propNames.Add(0x0128, "ResolutionUnit");
propNames.Add(0x0131, "SoftwareUsed");
propNames.Add(0x0201, "JPEGInterFormat");
propNames.Add(0x0202, "JPEGInterLength");
propNames.Add(0x0213, "YCbCrPositioning");
propNames.Add(0x501B, "ThumbnailData");
propNames.Add(0x502D, "ThumbnailResolutionX");
propNames.Add(0x502E, "ThumbnailResolutionY");
propNames.Add(0x5090, "LuminanceTable");
propNames.Add(0x5091, "ChrominanceTable");
propNames.Add(0x829A, "ExifExposureTime");
propNames.Add(0x9003, "ExifDTOrig");
propNames.Add(0x9004, "ExifDTDigitized");
propNames.Add(0x9204, "ExifExposureBias");
propNames.Add(0x9209, "ExifFlash");
propNames.Add(0x927C, "ExifMakerNote");
propNames.Add(0x9286, "ExifUserComment");
propNames.Add(0xA002, "ExifPixXDim");
propNames.Add(0xA003, "ExifPixYDim");
Hope this helps.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Awesome - I'll try that if need be. Thanks.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
how can i leave the for when i found what seach about
i put an if condition in a for loop if this condition is true i want leave the for?
thanks in advance
Assaf
|
|
|
|