-
Notifications
You must be signed in to change notification settings - Fork 0
5. Frame
Enes Okullu edited this page Apr 11, 2024
·
1 revision
Frame is simple image data class. It has array of RGBColor named ColorList, Width and Height. It has two constructors.
Frame(int width, int height)
{
ColorList = new RGBColor[width * height];
Width = width;
Height = height;
}
Frame(int width, int height, RGBColor[] colorList)
{
ColorList = colorList;
Width = width;
Height = height;
}
CreateFrameFromData(string numericText, int width, int height, Func<byte, RGBColor> colorizeFunction)
Returns Frame which consists array list of RGBColor.
- string numericText: Numerical string text. E.g "1071"
- int width: Width of frame. This value creates resolution with height.
- int height: Height of frame. This value creates resolution with width.
- Func<byte, RGBColor> colorizeFunction: A functions which will be used to choose colors for specified number.
CreateFrameRandomly(int width, int height, RGBColor[] colorList);
Returns a Frame which consists randomly colors from specified array of RGBColor.
- RGBColor[] colorList: Array of
RGBColor, which its color items will be used to randomly distributed for create a frame. - int width: Width of frame. This value creates resolution with height.
- int height: Height of frame. This value creates resolution with width.

CreateFrameRandomly(int width, int height, RandomColorLimit limits);
CreateFrameRandomly(int width, int height);
Returns a Frame which colors randomly distributed.
- int width: Width of frame. This value creates resolution with height.
- int height: Height of frame. This value creates resolution with width.
