Skip to content

5. Frame

Enes Okullu edited this page Apr 11, 2024 · 1 revision

Frame

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

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

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.

2024-02-26-07-53-44-759

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.

2024-02-26-07-54-08-927

Clone this wiki locally