Click or drag to resize

Graphics Class

Graphics file handling of type Joint Photographic Experts Group (JPEG) image format
Inheritance Hierarchy
SystemObject
  SIC.DrawGraphics

Namespace:  SIC.Draw
Assembly:  SIC.Draw (in SIC.Draw.dll) Version: 19.1.21.1 (19.1.21.658)
Syntax
public class Graphics

The Graphics type exposes the following members.

Constructors
  NameDescription
Public methodGraphics(Byte)
Initializes a new instance of the Graphics class. Constructor with bytes parameter
Public methodGraphics(Stream)
Initializes a new instance of the Graphics class. Constructor with stream parameter.
Public methodGraphics(String)
Initializes a new instance of the Graphics class. Constructor with file name parameter and it's load this file.
Top
Properties
  NameDescription
Private propertyBytes
Original bytes of image
Public propertyFile
Graphics file name to load
Public propertyFileExtension
File extension for Joint Photographic Experts Group (JPEG) image format
Public propertyFileToSave
Graphics file name to save
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetGraphicsAsByte
Gives graphics as byte array
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Private methodLoad
Load graphics from Bytes (when exists)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSave
Graphics save to file
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWriteText
Write text to graphics
Top
Extension Methods
  NameDescription
Public Extension MethodGetObjectToBytes
Convert an object to byte array
(Defined by Extensions.)
Public Extension MethodIsNumber
Check is value a number
(Defined by Convert.)
Public Extension MethodToHTMLDisplay(DataGrid, TempDataDictionary)Overloaded. (Defined by Extensions.)
Public Extension MethodCode exampleToHTMLDisplay(String, DataGridDataTypes, String, String, String, String, TempDataDictionary)Overloaded.
Gives HTML code for display.
(Defined by Extensions.)
Public Extension MethodToHTMLEditor(DataGrid, TempDataDictionary, String)Overloaded. (Defined by Extensions.)
Public Extension MethodToHTMLEditor(String, DataGridDataTypes, String, String, String, TempDataDictionary, Boolean, String, DataPlacements, String, String)Overloaded.
Gives HTML code for Input field
(Defined by Extensions.)
Public Extension MethodCode exampleToHTMLHidden(String)Overloaded.
Gives HTML code for hidden data
(Defined by Extensions.)
Public Extension MethodToHTMLHidden(DataGrid)Overloaded.
Gives HTML code for hidden data
(Defined by Extensions.)
Public Extension MethodXMLWrite
Gives XML string from data item
(Defined by Helper.)
Top
Examples
An simple example write text in an image
SIC.Draw.Graphics lGraphics = new SIC.Draw.Graphics("TestImage.jpeg");
lGraphics.WriteText("Test title...", 10, 10);
lGraphics.Save("TestResultImage.jpeg");
See Also