Exemplo n.º 1
0
 public static extern bool SetBitmapDimensionEx([In] IntPtr hbm, int w, int h, ref Size lpsz);
Exemplo n.º 2
0
 /// <summary>
 /// The SetBitmapDimensionEx function assigns preferred dimensions to a bitmap. These dimensions can be used by applications
 /// however, they are not used by the system
 /// </summary>
 /// <param name="hbm">Handle to the bitmap. The bitmap cannot be a DIB-section bitmap</param>
 /// <param name="nWidth">Specifies the width, in 0.1-millimeter units, of the bitmap</param>
 /// <param name="nHeight">Specifies the height, in 0.1-millimeter units, of the bitmap</param>
 /// <param name="lpsz">Pointer to a SIZE structure to receive the previous dimensions of the bitmap. This pointer can be null</param>
 /// <returns>If the function succeeds, the return value is true, else false</returns>
 public static bool SetBitmapDimensionEx([In] IntPtr hbm, int nWidth, int nHeight, ref Size lpsz)
 {
     return Native.SetBitmapDimensionEx(hbm, nWidth, nHeight, ref lpsz);
 }
Exemplo n.º 3
0
 public static extern bool SetBitmapDimensionEx([In] IntPtr hbm, int w, int h, ref Size lpsz);
Exemplo n.º 4
0
 public static extern bool GetBitmapDimensionEx([In] IntPtr hbit, [Out] out Size lpsize);
Exemplo n.º 5
0
 /// <summary>
 /// The SetBitmapDimensionEx function assigns preferred dimensions to a bitmap. These dimensions can be used by applications
 /// however, they are not used by the system
 /// </summary>
 /// <param name="hbm">Handle to the bitmap. The bitmap cannot be a DIB-section bitmap</param>
 /// <param name="nWidth">Specifies the width, in 0.1-millimeter units, of the bitmap</param>
 /// <param name="nHeight">Specifies the height, in 0.1-millimeter units, of the bitmap</param>
 /// <param name="lpsz">Pointer to a SIZE structure to receive the previous dimensions of the bitmap. This pointer can be null</param>
 /// <returns>If the function succeeds, the return value is true, else false</returns>
 public static bool SetBitmapDimensionEx([In] IntPtr hbm, int nWidth, int nHeight, ref Size lpsz)
 {
     return(Native.SetBitmapDimensionEx(hbm, nWidth, nHeight, ref lpsz));
 }
Exemplo n.º 6
0
 /// <summary>
 /// The GetBitmapDimensionEx function retrieves the dimensions of a compatible bitmap.
 /// The retrieved dimensions must have been set by the SetBitmapDimensionEx function.
 /// </summary>
 /// <param name="hbit">Handle to a compatible bitmap (DDB)</param>
 /// <param name="lpsize">Pointer to a SIZE structure to receive the bitmap dimensions. For more information, see Remarks</param>
 /// <returns>If the function succeeds, the return value is true, else false</returns>
 /// <remarks>The function returns a data structure that contains fields for the height and width of the bitmap, in .01-mm units.
 /// If those dimensions have not yet been set, the structure that is returned will have zeroes in those fields</remarks>
 public static bool GetBitmapDimensionEx([In] IntPtr hbit, [Out] out Size lpsize)
 {
     return(Native.GetBitmapDimensionEx(hbit, out lpsize));
 }