本文整理汇总了C#中MediaPortal.GUI.Library.GUIImage.SetBorder方法的典型用法代码示例。如果您正苦于以下问题:C# GUIImage.SetBorder方法的具体用法?C# GUIImage.SetBorder怎么用?C# GUIImage.SetBorder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MediaPortal.GUI.Library.GUIImage
的用法示例。
在下文中一共展示了GUIImage.SetBorder方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FinalizeConstruction
/// <summary>
/// This method gets called when the control is created and all properties has been set
/// It allows the control todo any initialization
/// </summary>
public override void FinalizeConstruction()
{
base.FinalizeConstruction();
_imageIcon = new GUIImage(ParentID, GetID, _positionX, _positionY, 0, 0, _textureIcon, 0);
_imageIcon2 = new GUIImage(ParentID, GetID, _positionX, _positionY, 0, 0, _textureIcon2, 0);
_imageFocusedLeft = new GUIImage(ParentID, GetID, _positionX, _positionY, Width, Height, _textureFocusedLeft, 0);
_imageFocusedMid = new GUIImage(ParentID, GetID, _positionX, _positionY, Width, Height, _textureFocusedMid, 0);
_imageFocusedRight = new GUIImage(ParentID, GetID, _positionX, _positionY, Width, Height, _textureFocusedRight, 0);
_imageNonFocusedLeft = new GUIImage(ParentID, GetID, _positionX, _positionY, Width, Height, _textureNonFocusedLeft,
0);
_imageNonFocusedMid = new GUIImage(ParentID, GetID, _positionX, _positionY, Width, Height, _textureNonFocusedMid,
0);
_imageNonFocusedRight = new GUIImage(ParentID, GetID, _positionX, _positionY, Width, Height,
_textureNonFocusedRight, 0);
_isSelected = false;
_labelControl1 = new GUILabelControl(ParentID);
_labelControl2 = new GUILabelControl(ParentID);
_imageIcon.ParentControl = this;
_imageIcon2.ParentControl = this;
_imageFocusedLeft.ParentControl = this;
_imageFocusedMid.ParentControl = this;
_imageFocusedRight.ParentControl = this;
_imageNonFocusedLeft.ParentControl = this;
_imageNonFocusedMid.ParentControl = this;
_imageNonFocusedRight.ParentControl = this;
_labelControl1.ParentControl = this;
_labelControl2.ParentControl = this;
_imageFocusedLeft.DimColor = DimColor;
_imageFocusedMid.DimColor = DimColor;
_imageFocusedRight.DimColor = DimColor;
_imageNonFocusedLeft.DimColor = DimColor;
_imageNonFocusedMid.DimColor = DimColor;
_imageNonFocusedRight.DimColor = DimColor;
_imageIcon.DimColor = DimColor;
_imageIcon2.DimColor = DimColor;
_labelControl1.DimColor = DimColor;
_labelControl2.DimColor = DimColor;
_labelControl1.SetShadow(_shadowAngle1, _shadowDistance1, _shadowColor1);
_labelControl2.SetShadow(_shadowAngle2, _shadowDistance2, _shadowColor2);
_imageFocusedLeft.SetBorder(_strBorderTFL, _borderPositionTFL, _borderTextureRepeatTFL, _borderTextureRotateTFL,
_borderTextureFileNameTFL, _borderColorKeyTFL, _borderHasCornersTFL,
_borderCornerTextureRotateTFL);
_imageNonFocusedLeft.SetBorder(_strBorderTNFL, _borderPositionTNFL, _borderTextureRepeatTNFL,
_borderTextureRotateTNFL,
_borderTextureFileNameTNFL, _borderColorKeyTNFL, _borderHasCornersTNFL,
_borderCornerTextureRotateTNFL);
_imageFocusedMid.SetBorder(_strBorderTFM, _borderPositionTFM, _borderTextureRepeatTFM, _borderTextureRotateTFM,
_borderTextureFileNameTFM, _borderColorKeyTFM, _borderHasCornersTFM,
_borderCornerTextureRotateTFM);
_imageNonFocusedMid.SetBorder(_strBorderTNFM, _borderPositionTNFM, _borderTextureRepeatTNFM,
_borderTextureRotateTNFM,
_borderTextureFileNameTNFM, _borderColorKeyTNFM, _borderHasCornersTNFM,
_borderCornerTextureRotateTNFM);
_imageFocusedRight.SetBorder(_strBorderTFR, _borderPositionTFR, _borderTextureRepeatTFR, _borderTextureRotateTFR,
_borderTextureFileNameTFR, _borderColorKeyTFR, _borderHasCornersTFR,
_borderCornerTextureRotateTFR);
_imageNonFocusedRight.SetBorder(_strBorderTNFR, _borderPositionTNFR, _borderTextureRepeatTNFR,
_borderTextureRotateTNFR,
_borderTextureFileNameTNFR, _borderColorKeyTNFR, _borderHasCornersTNFR,
_borderCornerTextureRotateTNFR);
_imageIcon.SetBorder(_strBorderTI, _borderPositionTI, _borderTextureRepeatTI, _borderTextureRotateTI,
_borderTextureFileNameTI, _borderColorKeyTI, _borderHasCornersTI,
_borderCornerTextureRotateTI);
_imageIcon2.SetBorder(_strBorderTI2, _borderPositionTI2, _borderTextureRepeatTI2, _borderTextureRotateTI2,
_borderTextureFileNameTI2, _borderColorKeyTI2, _borderHasCornersTI2,
_borderCornerTextureRotateTI2);
TileFillTFL = _textureFocusedLeftTileFill;
TileFillTNFL = _textureNonFocusedLeftTileFill;
TileFillTFM = _textureFocusedMidTileFill;
TileFillTNFM = _textureNonFocusedMidTileFill;
TileFillTFR = _textureFocusedRightTileFill;
TileFillTNFR = _textureNonFocusedRightTileFill;
}