示例#1
0
        /// <summary>
        /// Raises the Pixel set with the given particle
        /// </summary>
        /// <param name="p"></param>
        protected virtual void OnPixelSet(Particle2D p)
        {
            PixelSetHandler temp = PixelSet;

            if (temp != null)
            {
                temp((int)p.OldLocation.X, (int)p.OldLocation.Y, (int)p.Location.X, (int)p.Location.Y, p.Color);
            }
        }
示例#2
0
        protected virtual void OnPixelSet(Particle3D p)
        {
            //bmp.SetPixel((int)p.Location.X, pic.Height - 1 - (int)p.Location.Y, p.Color);
            PixelSetHandler temp = PixelSet;

            if (temp != null)
            {
                temp((int)p.OldLocation.X, (int)p.OldLocation.Y, (int)p.OldLocation.Z, (int)p.Location.X, (int)p.Location.Y, (int)p.Location.Z, p.Color);
            }
            //}
        }