Beispiel #1
0
        private void SetLayer(TextLayer layer)
        {
            int index = 0;

            Manager.TryGetLayerIndex(layer.Name, out index);
            _textLayers[index] = layer;
        }
Beispiel #2
0
        /// <summary>
        /// Prototype of processing method.
        /// </summary>
        /// <param name="text">Processed object.</param>
        /// <returns>An array of the resulting layers.</returns>
        public virtual TextLayer[] Process(TextInfo text)
        {
            TextLayer[] result = null;

            if (text != null)
            {
                result = new TextLayer[_outputLayers.Count];
                for (int i = 0; i < _outputLayers.Count; ++i)
                {
                    result[i] = new TextLayer(_outputLayers[i], new List <BaseTextLayerItem> {
                        new BaseTextLayerItem()
                    });
                }
            }
            return(result);
        }