Ejemplo n.º 1
0
 /// <summary>
 /// Creates a new image (icon, cursor, or bitmap) and copies the attributes 
 /// of the specified image to the new one. If necessary, the function stretches
 /// the bits to fit the desired size of the new image
 /// </summary>
 /// <param name="hImage">Handle to the image to be copied</param>
 /// <param name="type">Specifies the type of image to be copied</param>
 /// <param name="cxDesired">Specifies the desired width, in pixels, of the image. If this is zero,
 /// then the returned image will have the same width as the original hImage</param>
 /// <param name="cyDesired">Specifies the desired height, in pixels, of the image. If this is zero, 
 /// then the returned image will have the same height as the original hImage</param>
 /// <param name="flags">Image copy operation to be performed</param>
 /// <returns>If the function succeeds, the return value is the handle to the newly created image</returns>
 public static IntPtr CopyImage([In] IntPtr hImage, ImageCopyOption type, int cxDesired, int cyDesired,
     ImageCopyOperation flags)
 {
     return Native.CopyImage(hImage, type, cxDesired, cyDesired, flags);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a new image (icon, cursor, or bitmap) and copies the attributes
 /// of the specified image to the new one. If necessary, the function stretches
 /// the bits to fit the desired size of the new image
 /// </summary>
 /// <param name="hImage">Handle to the image to be copied</param>
 /// <param name="type">Specifies the type of image to be copied</param>
 /// <param name="cxDesired">Specifies the desired width, in pixels, of the image. If this is zero,
 /// then the returned image will have the same width as the original hImage</param>
 /// <param name="cyDesired">Specifies the desired height, in pixels, of the image. If this is zero,
 /// then the returned image will have the same height as the original hImage</param>
 /// <param name="flags">Image copy operation to be performed</param>
 /// <returns>If the function succeeds, the return value is the handle to the newly created image</returns>
 public static IntPtr CopyImage([In] IntPtr hImage, ImageCopyOption type, int cxDesired, int cyDesired,
                                ImageCopyOperation flags)
 {
     return(Native.CopyImage(hImage, type, cxDesired, cyDesired, flags));
 }
Ejemplo n.º 3
0
 public static extern IntPtr CopyImage([In] IntPtr hImage, ImageCopyOption type, int cx, int cy,
     ImageCopyOperation flags);
Ejemplo n.º 4
0
 public static extern IntPtr CopyImage([In] IntPtr hImage, ImageCopyOption type, int cx, int cy,
                                       ImageCopyOperation flags);