Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

get image information using c#

        Image img = Image.FromFile(fileName);
        ImageFormat format = img.RawFormat;
        Console.WriteLine("Image Type : "+format.ToString());
        Console.WriteLine("Image width : "+img.Width);
        Console.WriteLine("Image height : "+img.Height);
        Console.WriteLine("Image resolution : "+(img.VerticalResolution*img.HorizontalResolution));

        Console.WriteLine("Image Pixel depth : "+Image.GetPixelFormatSize(img.PixelFormat));
        Console.WriteLine("Image Creation Date : "+creation.ToString("yyyy-MM-dd"));
        Console.WriteLine("Image Creation Time : "+creation.ToString("hh:mm:ss"));
        Console.WriteLine("Image Modification Date : "+modify.ToString("yyyy-MM-dd"));
        Console.WriteLine("Image Modification Time : "+modify.ToString("hh:mm:ss"));
Comment

PREVIOUS NEXT
Code Example
Csharp :: length of arr c# 
Csharp :: partial mvc 
Csharp :: c# hashset 
Csharp :: c# project 
Csharp :: how to create a point c# 
Csharp :: c# get first word of string 
Csharp :: c# list with only unique items 
Csharp :: var c# 
Csharp :: unity rate 
Csharp :: ocr library for c# 
Csharp :: c# use enum in class 
Csharp :: how to get the index of an element in a list in unity 5 
Csharp :: out variable in c# 
Csharp :: c# window instantly close 
Csharp :: width="331" height="331" 
Csharp :: come controllare se textbox è vuota c# 
Csharp :: unity product.hasreceipt 
Html :: input tag no suggestions 
Html :: degree symbol html 
Html :: sample text 
Html :: href email in html 
Html :: html long text three dots 
Html :: target blanc 
Html :: input hidden 
Html :: bootstrap footer bottom of page 
Html :: how to change the logo in the title of a webpage 
Html :: html get redirect to another page on load 
Html :: how to comment out html 
Html :: mobile number regex in html 
Html :: code to start text from right in html in arabic 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =