public override bool Initialize() { base.Initialize(); _imageInput = GetProperty("ImageInput") as ImageProperty; _kernelSize = GetProperty("KernelSize") as IntegerProperty; _imageOutput = GetProperty("ImageOutput") as ImageProperty; return true; }
public override bool Initialize() { base.Initialize(); _imageInput = GetProperty("ImageInput") as ImageProperty; _adjustValue = GetProperty("AdjustValue") as IntegerProperty; _imageOutput = GetProperty("ImageOutput") as ImageProperty; return true; }
public override bool Initialize() { base.Initialize(); _imageInput = GetProperty("ImageInput") as ImageProperty; _kernelSize = GetProperty("KernelSize") as IntegerProperty; _spatialFactor = GetProperty("SpatialFactor") as IntegerProperty; _colorFactor = GetProperty("ColorFactor") as IntegerProperty; _colorPower = GetProperty("ColorPower") as DoubleProperty; _imageOutput = GetProperty("ImageOutput") as ImageProperty; return true; }
public int GetInteger (IntegerProperty prop) { if (!Enum.IsDefined (typeof (IntegerProperty), prop)) throw new System.ComponentModel.InvalidEnumArgumentException ("prop", (int)prop, typeof (IntegerProperty)); int result; last_hresult = VisualStyles.UxThemeGetThemeInt (theme, this.part, this.state, prop, out result); return result; }
bool GetInteger (ThemeHandle handle, int part, int state, IntegerProperty property, out int result) { switch (handle) { case ThemeHandle.PROGRESS: switch ((PROGRESSPARTS)part) { case PROGRESSPARTS.PP_CHUNK: case PROGRESSPARTS.PP_CHUNKVERT: switch (property) { case IntegerProperty.ProgressChunkSize: result = ThemeWin32Classic.ProgressBarGetChunkSize (); return true; case IntegerProperty.ProgressSpaceSize: result = ThemeWin32Classic.ProgressBarChunkSpacing; return true; } break; } break; } result = 0; return false; }
public int UxThemeGetThemeInt (IntPtr hTheme, int iPartId, int iStateId, IntegerProperty prop, out int result) { return (int)(GetInteger ((ThemeHandle)(int)hTheme, iPartId, iStateId, prop, out result) ? S.S_OK : S.S_FALSE); }
set => SetValue(IntegerProperty, value);
public IntegerProperty(IntegerProperty copySource) : base(copySource) { lBound = copySource.lBound; uBound = copySource.uBound; defaultValue = copySource.defaultValue; }
/// <include file='doc\VisualStyleRenderer.uex' path='docs/doc[@for="VisualStyleRenderer.GetInteger"]/*' /> /// <devdoc> /// <para> /// [See win32 equivalent.] /// </para> /// </devdoc> public int GetInteger(IntegerProperty prop) { //valid values are 0x961 to 0x978 if (!ClientUtils.IsEnumValid(prop, (int)prop, (int)IntegerProperty.ImageCount, (int)IntegerProperty.MinDpi5)) { throw new InvalidEnumArgumentException("prop", (int)prop, typeof(IntegerProperty)); } int val = 0; lastHResult = SafeNativeMethods.GetThemeInt(new HandleRef(this, Handle), part, state, (int)prop, ref val); return val; }
int GetDisplayOrder(IntegerProperty sender) { return(displayOrder); }
void SetDisplayOrder(IntegerProperty sender, int newValue) { displayOrder = newValue; }
public ColliderComponent(IntegerProperty xProperty, IntegerProperty yProperty, IntegerProperty widthProperty, IntegerProperty heightProperty) { XProperty = xProperty; YProperty = yProperty; WidthProperty = widthProperty; HeightProperty = heightProperty; }
public TextureComponent(StringProperty textureName, IntegerProperty wight, IntegerProperty height) { TextureName = textureName; Wight = wight; Height = height; }
public int GetInteger(IntegerProperty prop) { }
public override bool Initialize() { base.Initialize(); _imageInput = GetProperty("ImageInput") as ImageProperty; _maxBlue = GetProperty("MaxBlue") as IntegerProperty; _minBlue = GetProperty("MinBlue") as IntegerProperty; _medianBlue = GetProperty("MedianBlue") as IntegerProperty; _meanBlue = GetProperty("MeanBlue") as DoubleProperty; _stdDevBlue = GetProperty("StdDevBlue") as DoubleProperty; _maxGreen = GetProperty("MaxGreen") as IntegerProperty; _minGreen = GetProperty("MinGreen") as IntegerProperty; _medianGreen = GetProperty("MedianGreen") as IntegerProperty; _meanGreen = GetProperty("MeanGreen") as DoubleProperty; _stdDevGreen = GetProperty("StdDevGreen") as DoubleProperty; _maxRed = GetProperty("MaxRed") as IntegerProperty; _minRed = GetProperty("MinRed") as IntegerProperty; _medianRed = GetProperty("MedianRed") as IntegerProperty; _meanRed = GetProperty("MeanRed") as DoubleProperty; _stdDevRed = GetProperty("StdDevRed") as DoubleProperty; return true; }
public int UxThemeGetThemeInt (IntPtr hTheme, int iPartId, int iStateId, IntegerProperty prop, out int result) { int retval; int hresult = UXTheme.GetThemeInt (hTheme, iPartId, iStateId, (int)prop, out retval); result = retval; return hresult; }
public int GetInteger(IntegerProperty prop) { if (!System.Windows.Forms.ClientUtils.IsEnumValid(prop, (int) prop, 0x961, 0x978)) { throw new InvalidEnumArgumentException("prop", (int) prop, typeof(IntegerProperty)); } int piVal = 0; this.lastHResult = System.Windows.Forms.SafeNativeMethods.GetThemeInt(new HandleRef(this, this.Handle), this.part, this.state, (int) prop, ref piVal); return piVal; }
void SetTransparency(IntegerProperty sender, int newValue) { Transparency = newValue; }
/// <summary> /// Initializes this instance. /// </summary> /// <returns></returns> public override bool Initialize() { base.Initialize(); _imageInput = GetProperty("ImageInput") as ImageProperty; _factor = GetProperty("Factor") as IntegerProperty; _imageOutput = GetProperty("ImageOutput") as ImageProperty; return true; }
int GetTransparency(IntegerProperty sender) { return(transparency); }