We will write a Web application which will enable us to use the properties and methods of the Image class.
You will learn how to open, see, handle and record an image.
Property of the class Images
Image ss Objet
Using System.Drawing;
|
Property |
Description |
Flags |
Gets gold sets attribute flags for an image |
FrameDimensionsList |
Turn over a table of GUIDs which represents dimensions of frames in the image. |
Height, Width |
Turn over the width and the height of the image |
HorizontalResolution |
Turn over the resolutions horizontal pixel by pixel or for the image |
Pallets |
Takes or gives the color used for an image. |
PhysicalDimension |
Turn over the same thing that Height, Width |
PixelFormat |
Turn over the type of the image, in a number of pixel. PixelFormat can take one of the values of the enumeration of PixelFormat |
PropertyIdList |
Returns year array of the property IDs stored in year image. |
PropertyItems |
Returns year array of PropertyItem objects for year image. |
RawFormat |
Turn over the format of the image |
Size |
Turn over the size of the image |
VerticalResolution |
Turn over the resolutions horizontal pixel by pixel or for the image |
Methods of the class Image |
Methods |
Description |
FromFile, FromHbitmap, FromStream |
Create an Image object of a source file, |
GetBounds |
Turn over the limits of a rectangle for an image |
GetEncoderParameterList |
Turn over the parameters supported by an image. |
GetFrameCount |
Turn over the total number of copy available in an image. An image included of multiple copy. Each copy is separated by a copy with various properties. |
GetPixelFormatSize |
Turn over the intensity of the color |
GetPropertyItem |
Returns the property item.Retourne proprietés |
GetThumbnailImage |
Turn over a miniature of the image |
IsAlphaPixelFormat |
Turn over true if the format of the pixel for the Image object contains Alpha information. |
IsCanonicalPixelFormat |
Returns true yew the pixel format is canonical. This is has reserved format. |
IsExtendedPixelFormat |
Returns true yew the pixel format is extended. This is has reserved format. |
RemovePropertyItem |
Removes the property item. |
RotateFlip |
Opposite or a rotation of the image carries out |
Save |
Record the image with the specified format |
SaveAdd |
Takes one parameter of standard EncoderParameters that defines parameters required by the image encoder that is used by the saveadd operation. |
SelectActiveFrame |
Selects has frame specified by the dimension and index. The first parameter of this method is the frame dimension, which edge Be used to identify year image by its time, resolution, gold number page. The second parameter is the frame index of the activates frame. Calling this method causes all exchanges made to the previous frame to Be discarded. |
SetPropertyItem |
Sets the been worth of has property item. |