Show / Hide Table of Contents

Struct IFImage

Image(s) or color(s) for uiimage.find and similar functions.

public struct IFImage
Remarks

Has implicit conversions from:

  • string - path of .png or .bmp file. If not full path, uses folders.ThisAppImages.
  • string that starts with "resources/" or has prefix "resource:" - resource name; see ResourceUtil.GetGdipBitmap.
  • string with prefix "image:" - Base64 encoded .png image.
    Can be created with tool Find image or color in window or with function Au.Controls.KImageUtil.ImageToString (in Au.Controls.dll).
  • ColorInt, int or uint in 0xRRGGBB color format, Color - color. Alpha isn't used.
  • System.Drawing.Bitmap - image object.
  • IFImage[] - multiple images or/and colors. Action - find any. To create a different action can be used callback function (parameter also).

Icons are not supported directly; you can use icon to get icon and convert to bitmap.


Namespace: Au.Types
Assembly: Au.dll

Properties

Name Description
Value

Gets the raw value stored in this variable. Can be string, Bitmap, ColorInt, IFImage[], null.

Operators

Name Description
implicit operator IFImage(ColorInt)
implicit operator IFImage(IFImage[])
implicit operator IFImage(Bitmap)
implicit operator IFImage(Color)
implicit operator IFImage(int)
implicit operator IFImage(string)
implicit operator IFImage(uint)
implicit operator IFImage(Color)