Click here to Skip to main content
15,920,633 members
Home / Discussions / Graphics
   

Graphics

 
GeneralRe: OpenGL picking Pin
Jheriko++17-Nov-07 16:49
Jheriko++17-Nov-07 16:49 
QuestionImage in form of matrix Pin
shemhamforash6-Nov-07 4:00
shemhamforash6-Nov-07 4:00 
AnswerRe: Image in form of matrix Pin
Ju@ncho8-Nov-07 2:52
Ju@ncho8-Nov-07 2:52 
QuestionGetting Image properties Pin
sniper475-Nov-07 23:19
sniper475-Nov-07 23:19 
AnswerRe: Getting Image properties Pin
MikeMarq8-Nov-07 4:44
MikeMarq8-Nov-07 4:44 
AnswerRe: Getting Image properties Pin
Pawel Gielmuda9-Nov-07 2:59
Pawel Gielmuda9-Nov-07 2:59 
GeneralRe: Getting Image properties Pin
sniper4710-Nov-07 8:15
sniper4710-Nov-07 8:15 
GeneralRe: Getting Image properties Pin
Luc Pattyn10-Nov-07 14:50
sitebuilderLuc Pattyn10-Nov-07 14:50 
Hi,

AFAIK these properties are optional, and supported by JPEG only.

These are the propID, propName pairs I recovered from some code:
Hashtable propNames=new Hashtable();
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");


and this shows the kind of code you will need to extract a property:

	PropertyItem pi=image.GetPropertyItem(ID);
	s="";
	byte[] bb=pi.Value;
	switch ((PropertyTagType)pi.Type) {
		case PropertyTagType.Byte: 
			type="(byte)";
			for (int i=0; i<bb.Length; i++) {
				byte us=bb[i];
				s+=" "+us.ToString("X2");
				if (bb.Length==1) s+="("+us.ToString()+")";
			}
			break;
		case PropertyTagType.ASCII:
			type="(ASCII)";
			s=" "+ASCIIencoding.GetString(pi.Value, 0, pi.Len-1);
			break;
		case PropertyTagType.Short:
			type="(short)";
			for (int i=0; i<bb.Length/2; i++) {
				ushort us=BitConverter.ToUInt16(bb,2*i);
				s+=" "+us.ToString("X4");
				if (bb.Length==2) s+="("+us.ToString()+")";
			}
			break;
...


Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google


QuestionDirect 3D retained mode Pin
anjeneya5-Nov-07 18:34
anjeneya5-Nov-07 18:34 
QuestionSimple Texturing Pin
Cyrilix5-Nov-07 15:29
Cyrilix5-Nov-07 15:29 
AnswerRe: Simple Texturing Pin
Cyrilix5-Nov-07 15:52
Cyrilix5-Nov-07 15:52 
QuestionPictureBox Bitmap Manipulation Pin
MikeMarq4-Nov-07 7:03
MikeMarq4-Nov-07 7:03 
AnswerRe: PictureBox Bitmap Manipulation Pin
Luc Pattyn4-Nov-07 8:01
sitebuilderLuc Pattyn4-Nov-07 8:01 
GeneralRe: PictureBox Bitmap Manipulation Pin
MikeMarq4-Nov-07 19:47
MikeMarq4-Nov-07 19:47 
Questionis there size limit for displaying an image? Pin
King Tran3-Nov-07 22:55
King Tran3-Nov-07 22:55 
AnswerRe: is there size limit for displaying an image? Pin
Luc Pattyn4-Nov-07 1:33
sitebuilderLuc Pattyn4-Nov-07 1:33 
GeneralRe: is there size limit for displaying an image? Pin
King Tran4-Nov-07 2:31
King Tran4-Nov-07 2:31 
AnswerRe: is there size limit for displaying an image? Pin
Paul Conrad4-Nov-07 8:00
professionalPaul Conrad4-Nov-07 8:00 
GeneralRe: is there size limit for displaying an image? Pin
King Tran5-Nov-07 2:08
King Tran5-Nov-07 2:08 
GeneralRe: is there size limit for displaying an image? Pin
Dan Neely6-Nov-07 2:19
Dan Neely6-Nov-07 2:19 
AnswerRe: is there size limit for displaying an image? Pin
El Corazon5-Nov-07 11:44
El Corazon5-Nov-07 11:44 
GeneralRe: is there size limit for displaying an image? Pin
Dan Neely6-Nov-07 2:20
Dan Neely6-Nov-07 2:20 
GeneralRe: is there size limit for displaying an image? Pin
El Corazon6-Nov-07 3:25
El Corazon6-Nov-07 3:25 
AnswerRe: is there size limit for displaying an image? Pin
Jheriko++17-Nov-07 16:59
Jheriko++17-Nov-07 16:59 
QuestionDirectX Animated Mesh Pin
Aknght2-Nov-07 16:28
Aknght2-Nov-07 16:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.