Пример #1
0
 public static extern bool SetBitmapDimensionEx([In] IntPtr hbm, int w, int h, ref Size lpsz);
Пример #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);
 }
Пример #3
0
 public static extern bool SetBitmapDimensionEx([In] IntPtr hbm, int w, int h, ref Size lpsz);
Пример #4
0
 public static extern bool GetBitmapDimensionEx([In] IntPtr hbit, [Out] out Size lpsize);
Пример #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));
 }
Пример #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));
 }