Esempio n. 1
0
        /// <summary>
        /// Loads the bitmap image on specified surface.
        /// </summary>
        /// <param name="surface">The target surface.</param>
        /// <param name="region">The target surface region to fill with this entry.</param>
        public void LoadOnSurface(Surface surface, Rectangle region)
        {
            if (null == surface) throw new ArgumentNullException("surface");

            surface.SetBitmapData(region, _bitmap);
        }