StiImageUtils Class
Namespace: Stimulsoft.Base.Drawing
Methods
| Method | Returns | Description |
|---|---|---|
ConvertToDisabled static |
Bitmap | |
ConvertToGrayscale static |
Bitmap | |
ExistsImage static (+1 overloads) |
bool | Returns true if specified image exists. |
GetByteArray static (+4 overloads) |
byte[] | |
GetImage static (+5 overloads) |
Bitmap | |
IconFromBytes static |
Icon | |
MakeImageBackgroundAlphaZero static |
void | |
ReplaceImageColor static |
Bitmap | |
ResizeImage static (+1 overloads) |
Bitmap |
Method Details
ConvertToDisabled static
ConvertToDisabled(bmp: Bitmap): Bitmap
Parameters
- bmp (Bitmap)
Returns Bitmap
ConvertToGrayscale static
ConvertToGrayscale(bmp: Bitmap): Bitmap
Parameters
- bmp (Bitmap)
Returns Bitmap
ExistsImage static
ExistsImage(imageAssembly: Assembly, imageName: string): bool
Returns true if specified image exists.
Parameters
- imageAssembly (Assembly) — Assembly in which is the Image object is placed.
- imageName (string) — The name of the image file to look for.
Returns bool — True if specified image exists.
ExistsImage(imageAssembly: string, imageName: string): bool
Returns true if specified image exists.
Parameters
- imageAssembly (string) — Assembly in which is the Image object is placed.
- imageName (string) — The name of the image file to look for.
Returns bool — True if specified image exists.
GetByteArray static
GetByteArray(type: Type, imageName: string, throwError: StiErrorProcessing): byte[]
Parameters
- type (Type)
- imageName (string)
- throwError (StiErrorProcessing)
Returns byte[]
GetByteArray(type: Type, imageName: string, makeTransparent: bool, throwError: StiErrorProcessing): byte[]
Parameters
- type (Type)
- imageName (string)
- makeTransparent (bool)
- throwError (StiErrorProcessing)
Returns byte[]
GetByteArray(assemblyName: string, imageName: string, throwError: StiErrorProcessing): byte[]
Parameters
- assemblyName (string)
- imageName (string)
- throwError (StiErrorProcessing)
Returns byte[]
GetByteArray(assemblyName: string, imageName: string, makeTransparent: bool, throwError: StiErrorProcessing): byte[]
Parameters
- assemblyName (string)
- imageName (string)
- makeTransparent (bool)
- throwError (StiErrorProcessing)
Returns byte[]
GetByteArray(imageAssembly: Assembly, imageName: string, makeTransparent: bool, throwError: StiErrorProcessing): byte[]
Parameters
- imageAssembly (Assembly)
- imageName (string)
- makeTransparent (bool)
- throwError (StiErrorProcessing)
Returns byte[]
GetImage static
GetImage(type: Type, imageName: string, throwError: StiErrorProcessing): Bitmap
Parameters
- type (Type)
- imageName (string)
- throwError (StiErrorProcessing)
Returns Bitmap
GetImage(type: Type, imageName: string, makeTransparent: bool, throwError: StiErrorProcessing): Bitmap
Gets the Image object associated with Type.
Parameters
- type (Type) — The type with which Image object is associated.
- imageName (string) — The name of the image file to look for.
- makeTransparent (bool)
- throwError (StiErrorProcessing)
Returns Bitmap — The Image object.
GetImage(assemblyName: string, imageName: string, throwError: StiErrorProcessing): Bitmap
Parameters
- assemblyName (string)
- imageName (string)
- throwError (StiErrorProcessing)
Returns Bitmap
GetImage(assemblyName: string, imageName: string, makeTransparent: bool, throwError: StiErrorProcessing): Bitmap
Gets the Image object placed in assembly.
Parameters
- assemblyName (string) — The name of assembly in which the Cursor object is placed.
- imageName (string) — The name of the image file to look for.
- makeTransparent (bool)
- throwError (StiErrorProcessing)
Returns Bitmap — The Image object.
GetImage(imageAssembly: Assembly, imageName: string, throwError: StiErrorProcessing): Bitmap
Parameters
- imageAssembly (Assembly)
- imageName (string)
- throwError (StiErrorProcessing)
Returns Bitmap
GetImage(imageAssembly: Assembly, imageName: string, makeTransparent: bool, throwError: StiErrorProcessing): Bitmap
Gets the Image object placed in assembly.
Parameters
- imageAssembly (Assembly) — Assembly in which is the Image object is placed.
- imageName (string) — The name of the image file to look for.
- makeTransparent (bool)
- throwError (StiErrorProcessing)
Returns Bitmap — The Image object.
IconFromBytes static
IconFromBytes(**: bytebytes): Icon
Parameters
- ** (bytebytes)
Returns Icon
MakeImageBackgroundAlphaZero static
MakeImageBackgroundAlphaZero(image: Bitmap): void
Parameters
- image (Bitmap)
ReplaceImageColor static
ReplaceImageColor(bmp: Bitmap, colorForReplace: Color, replacedColor: Color): Bitmap
Parameters
- bmp (Bitmap)
- colorForReplace (Color)
- replacedColor (Color)
Returns Bitmap
ResizeImage static
ResizeImage(image: Image, width: int, height: int): Bitmap
Parameters
- image (Image)
- width (int)
- height (int)
Returns Bitmap
ResizeImage(image: Image, canvasWidth: int, canvasHeight: int, imageWidth: int, imageHeight: int, allowSampling: bool): Bitmap
Parameters
- image (Image)
- canvasWidth (int)
- canvasHeight (int)
- imageWidth (int)
- imageHeight (int)
- allowSampling (bool)
Returns Bitmap