LoadData() public method

Loads the specified Pixmaps pixel data.
public LoadData ( ContentRef basePixmap ) : void
basePixmap ContentRef The that is used as pixel data source.
return void
Beispiel #1
0
        protected override void OnCopyDataTo(object target, ICloneOperation operation)
        {
            base.OnCopyDataTo(target, operation);
            Texture c = target as Texture;

            c.LoadData(this.basePixmap, this.texSizeMode);
        }
Beispiel #2
0
        protected override void OnCopyTo(Resource r, Duality.Cloning.CloneProvider provider)
        {
            base.OnCopyTo(r, provider);
            Texture c = r as Texture;

            c.size        = this.size;
            c.filterMag   = this.filterMag;
            c.filterMin   = this.filterMin;
            c.wrapX       = this.wrapX;
            c.wrapY       = this.wrapY;
            c.pixelformat = this.pixelformat;
            c.LoadData(this.basePixmap, this.texSizeMode);
        }