Tag Archives: orientation

List an image’s EXIF properties in C#

This post shows how you can read an image’s EXIF properties. Note that pictures taken with any modern camera, phone, tablet, etc. contain a lot of EXIF data, some of which can be very useful. To read an image’s EXIF … Continue reading

Posted in files, graphics, image processing | Tagged , , , , , , , , , , , , , | Leave a comment

Make an enumeration of EXIF property IDs in C#

This post is really a helper program that lists EXIF property IDs for the following post. To get an EXIF image’s properties, you read through a list of EXIF property IDs and examine their values. The IDs are numeric so, … Continue reading

Posted in files, graphics, image processing | Tagged , , , , , , , , , , , , , | 1 Comment

Use EXIF information to orient an image in C#

The example Read an image file’s EXIF orientation data in C# shows how to read EXIF orientation information from an image. Using that information, it’s easy to orient the image so it appears right side up. This example uses the … Continue reading

Posted in files, graphics, image processing | Tagged , , , , , , , , , , , | Leave a comment

Read an image file’s EXIF orientation data in C#

The EXchangeable Image File (EXIF) standard defines all sorts of information that a camera can add to a jpg file. For example, the camera may record latitude, longitude, altitude, date and time, focal length, shutter speed, and resolution. This example … Continue reading

Posted in files, graphics, image processing | Tagged , , , , , , , , , , , | 3 Comments

Change print orientation and margins in C#

This example shows how to change the print orientation and margins in a printout or print preview. By default, when you display a print preview or print a document, the document appears in portrait orientation with one inch margins. To … Continue reading

Posted in printing | Tagged , , , , , , , , , | 1 Comment

Perform geometric operations on polygons in C#

This example contains a Polygon class that perform several useful geometric operations for polygons. The following list describes the key methods provided by the class. Click the links to see posts that describe the methods in greater detail. PolygonIsConvex – … Continue reading

Posted in algorithms, geometry, graphics, mathematics | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , | 1 Comment

Reverse the orientation of a polygon in C#

Reversing the orientation of a polygon is easy. Simply reverse the order of its points. If the points are stored in an array of Point or PointF, you can just call the Array.Reverse method. The Polygon class’s OrientPolygonClockwise method shown … Continue reading

Posted in algorithms, geometry, graphics, mathematics | Tagged , , , , , , , , , , , , | 2 Comments