C# Класс iTextSharp.text.Jpeg

An Jpeg is the representation of a graphic element (JPEG) that has to be inserted into the document
Наследование: Image, IElement
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
JFIF_ID byte[]
NOPARAM_MARKERS int[]
PS_8BIM_RESO byte[]
UNSUPPORTED_MARKERS int[]
VALID_MARKERS int[]

Открытые методы

Метод Описание
Jpeg ( Image image ) : System

Construct a Jpeg-object, using a Image

Jpeg ( Uri Uri ) : System

Constructs a Jpeg-object, using an Uri.

Deprecated, use Image.GetInstance(...) to create an Image

Jpeg ( byte img ) : System

Constructs a Jpeg-object from memory.

Jpeg ( byte img, float width, float height ) : System

Constructs a Jpeg-object from memory.

Приватные методы

Метод Описание
GetShort ( Stream istr ) : int

Reads a short from the Stream.

GetShortInverted ( Stream istr ) : int

Reads an inverted short from the Stream.

MarkerType ( int marker ) : int

Returns a type of marker.

ProcessParameters ( ) : void

This method checks if the image is a valid JPEG and processes some parameters.

Описание методов

Jpeg() публичный метод

Construct a Jpeg-object, using a Image
public Jpeg ( Image image ) : System
image Image a Image
Результат System

Jpeg() публичный метод

Constructs a Jpeg-object, using an Uri.
Deprecated, use Image.GetInstance(...) to create an Image
public Jpeg ( Uri Uri ) : System
Uri System.Uri the Uri where the image can be found
Результат System

Jpeg() публичный метод

Constructs a Jpeg-object from memory.
public Jpeg ( byte img ) : System
img byte the memory image
Результат System

Jpeg() публичный метод

Constructs a Jpeg-object from memory.
public Jpeg ( byte img, float width, float height ) : System
img byte the memory image.
width float the width you want the image to have
height float the height you want the image to have
Результат System

Описание свойств

JFIF_ID публичное статическое свойство

public static byte[] JFIF_ID
Результат byte[]

NOPARAM_MARKERS публичное статическое свойство

Jpeg markers without additional parameters.
public static int[] NOPARAM_MARKERS
Результат int[]

PS_8BIM_RESO публичное статическое свойство

public static byte[] PS_8BIM_RESO
Результат byte[]

UNSUPPORTED_MARKERS публичное статическое свойство

Unsupported Jpeg markers.
public static int[] UNSUPPORTED_MARKERS
Результат int[]

VALID_MARKERS публичное статическое свойство

Acceptable Jpeg markers.
public static int[] VALID_MARKERS
Результат int[]