/// <summary> /// Set the colour of the image based on the channels in the currently loaded mask. /// </summary> /// <param name="ch1Colour">(Nullable) ARGB colour to the image when the first channel of the mask is active.</param> /// <param name="ch2Colour">(Nullable) ARGB colour to the image when the second channel of the mask is active.</param> /// <param name="ch3Colour">(Nullable) ARGB colour to the image when the third channel of the mask is active.</param> /// <param name="ch4Colour">(Nullable) ARGB colour to the image when the fourth channel of the mask is active.</param> public void ApplyColours(uint?ch1Colour, uint?ch2Colour, uint?ch3Colour, uint?ch4Colour) { if (!loaded || !MaskLoaded) { return; } ddsFile.MaskedSetColour(ddsMask, ch1Colour, ch2Colour, ch3Colour, ch4Colour); ckb_CheckedChanged(null, null); }