StandardizedDiffuseAlbedoMaps.CalibratedTexture.SetAttribute C# (CSharp) Method

SetAttribute() private method

private SetAttribute ( XmlElement _Element, string _Attribute, string _Value ) : CalibratedTexture
_Element System.Xml.XmlElement
_Attribute string
_Value string
return CalibratedTexture
        private CalibratedTexture SetAttribute( XmlElement _Element, string _Attribute, string _Value )
        {
            m_CurrentElement = _Element;
            m_CurrentElement.SetAttribute( _Attribute, _Value );
            return this;
        }

Same methods

CalibratedTexture::SetAttribute ( string _Attribute, string _Value ) : CalibratedTexture

Usage Example

Example #1
0
            public ImageUtility.float4 Location = new ImageUtility.float4();                            // The location (in UV space) where the swatch color was taken (XY=Top Left Corner, ZW=Bottom Right Corner)
            public override void    Save(CalibratedTexture _Owner, XmlElement _SwatchElement)
            {
                base.Save(_Owner, _SwatchElement);

                _Owner.SetAttribute(_SwatchElement, "SampleTopLeft", (new ImageUtility.float2(Location.x, Location.y)).ToString());
                _Owner.SetAttribute(_SwatchElement, "SampleBottomRight", (new ImageUtility.float2(Location.z, Location.w)).ToString());
            }
All Usage Examples Of StandardizedDiffuseAlbedoMaps.CalibratedTexture::SetAttribute