build Constructors 1

data_object Properties 20

Blur
float
The intensity of the blur effect. If 0, no blur is applied.
Brightness
float
The brightness of the image.
CacheToDisk
bool
Colorize
bool
When enabled, every pixel in the image will be re-colored to the Sandbox.Resources.ImageFileGenerator.TargetColor (interpolated by the alpha).
Contrast
float
The contrast of the image.
ConvertHeightToNormals
bool
When enabled, the output texture will be a normal map generated from the heightmap of the image.
Cropping
Margin
How many pixels from each edge to crop from the image. If negative values are used, the image will be expanded instead of cropped.
FilePath
string
The path to the image file, relative to any other assets in the project.
FlipHorizontal
bool
Whether or not to flip the image horizontally. This is done after everything else has been applied.
FlipVertical
bool
Whether or not to flip the image vertically. This is done after everything else has been applied.
Hue
float
How much to adjust the hue of the image, in degrees. If 0, no hue adjustment is applied.
InvertColor
bool
Whether or not to invert the colors of the image.
MaxSize
int
The maximum size of the image in pixels. If the imported image is larger than this (after cropping), it will be downscaled to fit.
NormalScale
float
The scale of the normal map when using Sandbox.Resources.ImageFileGenerator.ConvertHeightToNormals. If negative, the normal map will be inverted.
Padding
Margin
How many pixels of padding from each edge. After the image has been cropped, padding is added without affecting the size of the image (scaling the original image down to fit padded margins).
Rotate
float
How much to rotate the image by, in degrees. This is applied after cropping and padding.
Saturation
float
The saturation of the image.
Sharpen
float
The intensity of the sharpen effect. If 0, no sharpening is applied.
TargetColor
Color
When Sandbox.Resources.ImageFileGenerator.Colorize is enabled, this is the target color that every pixel in the image will be re-colored to.
Tint
Color
The color the image should be tinted. This effectively multiplies the color of each pixel by this color (including alpha).

Inheritance

people
Log in to reply
You can't reply if you're not logged in. That would be crazy.