Пример #1
0
public BitmapPlus(IStream stream)
{
    GpBitmap bitmap = new GpBitmap();

        lastResult = NativeMethods.GdipCreateBitmapFromStreamICM(stream, out bitmap);

    SetNativeImage((GpImage)(IntPtr)bitmap);
}
Пример #2
0
public BitmapPlus(string filename)
{
    GpBitmap bitmap = new GpBitmap();

        lastResult = NativeMethods.GdipCreateBitmapFromFileICM(filename, out bitmap);

    SetNativeImage((GpImage)(IntPtr)bitmap);
}
Пример #3
0
public BitmapPlus(
    int width, 
    int height, 
    GraphicsPlus target)
{
    GpBitmap bitmap = new GpBitmap();

    lastResult = NativeMethods.GdipCreateBitmapFromGraphics(width,
                                                          height,
                                                          target.nativeGraphics,
                                                          out bitmap);

    SetNativeImage((GpImage)(IntPtr)bitmap);
}
Пример #4
0
public BitmapPlus(
    int width,
    int height,
    PixelFormat format
    )
{
    GpBitmap bitmap = new GpBitmap();

    lastResult = NativeMethods.GdipCreateBitmapFromScan0(width,
                                                       height,
                                                       0,
                                                       format,
                                                       IntPtr.Zero,
                                                       out bitmap);

    SetNativeImage((GpImage)(IntPtr)bitmap);
}
Пример #5
0
GdipBitmapGetPixel(GpBitmap bitmap, int x, int y, out int color);
Пример #6
0
GdipBitmapUnlockBits(GpBitmap bitmap,
                     BitmapData lockedBitmapData);
Пример #7
0
 public static extern GpStatus GdipCreateBitmapFromStreamICM(IStream stream, out GpBitmap bitmap);
Пример #8
0
 public static extern GpStatus GdipCreateBitmapFromHBITMAP(IntPtr hbm,
                     IntPtr hpal,
                     out GpBitmap  bitmap);
Пример #9
0
 public static extern GpStatus GdipCreateBitmapFromFileICM(string filename, out GpBitmap bitmap);
Пример #10
0
 public static extern GpStatus GdipBitmapSetPixel(GpBitmap bitmap, int x, int y, int color);
Пример #11
0
GdipCreateBitmapFromFileICM(string filename, out GpBitmap bitmap);
Пример #12
0
GdipCreateBitmapFromStreamICM(IStream stream, out GpBitmap bitmap);
Пример #13
0
 public BitmapPlus(GpBitmap nativeBitmap)
{
    lastResult = GpStatus. Ok;

    SetNativeImage((IntPtr)nativeBitmap);
}
Пример #14
0
GdipBitmapSetPixel(GpBitmap bitmap, int x, int y, int color);
Пример #15
0
GdipCreateBitmapFromScan0(int width,
                          int height,
                          int stride,
                          PixelFormat format,
                          IntPtr scan0,
                          out GpBitmap  bitmap);
Пример #16
0
 public static extern GpStatus GdipBitmapLockBits(GpBitmap bitmap,
            GpRect rect,
            uint flags,
            PixelFormat format,
            BitmapData lockedBitmapData);
Пример #17
0
GdipCreateBitmapFromGraphics(int width,
                             int height,
                             GpGraphics target,
                             out GpBitmap bitmap);
Пример #18
0
 public static extern GpStatus GdipBitmapUnlockBits(GpBitmap bitmap,
              BitmapData lockedBitmapData);
Пример #19
0
GdipCreateBitmapFromHBITMAP(IntPtr hbm,
                            IntPtr hpal,
                            out GpBitmap  bitmap);
Пример #20
0
 public static extern GpStatus GdipCreateBitmapFromGraphics(int width,
                      int height,
                      GpGraphics target,
                      out GpBitmap bitmap);
Пример #21
0
GdipCreateHBITMAPFromBitmap(GpBitmap bitmap,
                            out HBITMAP hbmReturn,
                            int background);
Пример #22
0
 public static extern GpStatus GdipCreateBitmapFromScan0(int width,
                   int height,
                   int stride,
                   PixelFormat format,
                   IntPtr scan0,
                   out GpBitmap  bitmap);
Пример #23
0
GdipBitmapLockBits(GpBitmap bitmap,
                   GpRect rect,
                   uint flags,
                   PixelFormat format,
                   BitmapData lockedBitmapData);
Пример #24
0
 public static extern GpStatus GdipCreateHBITMAPFromBitmap(GpBitmap bitmap,
                     out HBITMAP hbmReturn,
                     int background);
Пример #25
0
/* 
public Bitmap(
    BITMAPINFO* gdiBitmapInfo, 
    VOID* gdiBitmapData
    )
{
    GpBitmap bitmap = new GpBitmap();

    lastResult = NativeMethods.GdipCreateBitmapFromGdiDib(gdiBitmapInfo,
                                                        gdiBitmapData,
                                                        out bitmap);

    SetNativeImage((GpImage)(IntPtr)bitmap);
}
*/
 
public BitmapPlus(
    HBITMAP hbm, 
    IntPtr hpal
    )
{
    GpBitmap bitmap = new GpBitmap();

    lastResult = NativeMethods.GdipCreateBitmapFromHBITMAP(hbm, hpal, out bitmap);

    SetNativeImage((GpImage)(IntPtr)bitmap);
}