Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "BITMAP" in [All]

Interfaces

.

    void InitializeFromBitmap(

.
Summary
Exposes memory-efficient methods for accessing bitmaps. This interface is used as a thin wrapper around HBITMAP objects, allowing those objects to be reference counted and protected from having their underlying data changed.
.

public interface ISharedBitmap

.

    uint GetSharedBitmap(

.

    uint InitializeBitmap(

.
Documentation
[ISharedBitmap] on MSDN
.

    IntPtr hbitmap = IntPtr.Zero;

.

    ((IShellItemImageFactory)ppsi).GetImage(new SIZE(256, 256), 0x0, out hbitmap);

.

    IntPtr hbitmap = IntPtr.Zero;

.

    ((IShellItemImageFactory)ppsi).GetImage(new SIZE(256, 256), 0x0, out hbitmap);

.

        [Out][MarshalAs(UnmanagedType.Interface)] out ISharedBitmap ppvThumb,

.

        [Out][MarshalAs(UnmanagedType.Interface)] out ISharedBitmap ppvThumb,

.
Summary
IUIImageFromBitmap is a factory interface implemented by the Windows Ribbon (Ribbon) framework that defines the method for creating an IUIImage object.
.

// Produces containers for bitmap images

.

public interface IUIImageFromBitmap

.

    HRESULT CreateImage(IntPtr /* HBITMAP */ bitmap, UI_Ownership options, [Out(), MarshalAs(UnmanagedType.Interface)] out IUIImage image);

.
Documentation
[IUIImageFromBitmap] on MSDN

kernel32

.

     FsctlGetVolumeBitmap = (EFileDevice.FileSystem << 16) | (27 << 2) | EMethod.Neither | (0 << 14),

.

    BITMAP = 2,

.

    BITMAP = 2

.

    private const uint RT_BITMAP = 0x00000002;

.

Public Function ConvertRBGTo1bpp(ByVal pSrcImg As Image) As Bitmap

.

  Dim bitmap As Bitmap = New Bitmap(Width, Height, PixelFormat.Format1bppIndexed)

.

  Dim BmpCopy As Bitmap = New Bitmap(Width, Height, PixelFormat.Format32bppArgb)

.

  Dim bitmapData As BitmapData

.

  bitmapData = bitmap.LockBits(rect, ImageLockMode.WriteOnly, PixelFormat.Format1bppIndexed)

.

  Dim pixels As IntPtr = bitmapData.Scan0

.

  If (bitmapData.Stride > 0) Then

.

    pBits = pixels.ToInt32() + bitmapData.Stride * (Height - 1)

.

  Dim stride As Integer = Math.Abs(bitmapData.Stride)

.

  bitmap.UnlockBits(bitmapData)

.

  Return bitmap

cards

.
Summary
Animates the backs of cards by overlaying part of the card back with an alternative bitmap.

msvcrt

12: memcpy
.

public static Bitmap Clone(Bitmap src)

.

        // lock source bitmap data

.

        BitmapData srcData = src.LockBits(

.

        Bitmap dst = new Bitmap(width, height, src.PixelFormat);

.

        // lock destination bitmap data

.

        BitmapData dstData = dst.LockBits(

avifil32

.

   ByRef bih As BITMAPINFOHEADER) As Integer

.

                         ByRef lpFormat As BITMAPINFOHEADER,

.

    Public Structure BITMAPINFOHEADER

.

VB BITMAPINFOHEADER Warning

.

    Public Shared Function AVIStreamReadFormat2(ByVal aviStream As IntPtr, ByVal lPos As Int32, ByRef lpFormat As BITMAPINFOHEADER, ByRef cbFormat As Int32) As Integer

.

                         ByRef lpFormat As BITMAPINFOHEADER,

.

    Public Structure BITMAPINFOHEADER

.

VB BITMAPINFOHEADER Warning

.

    Public Shared Function AVIStreamReadFormat2(ByVal aviStream As IntPtr, ByVal lPos As Int32, ByRef lpFormat As BITMAPINFOHEADER, ByRef cbFormat As Int32) As Integer

comctl32

.

static extern bool ImageList_AddMasked(IntPtr hImageList, IntPtr hBitmap, int crMask);

.

Private Shared Function ImageList_AddMasked(hImageList As IntPtr, hBitmap As IntPtr, crMask As Integer) As Boolean

.

static extern bool ImageList_AddMasked(IntPtr hImageList, IntPtr hBitmap, int crMask);

.

       /// <param name="value">A Bitmap of the image to add to the list.</param>

.

       /// <param name="transparentColor">The color to use as the transparent color within the Bitmap.</param>

.

       /// <param name="value">A Bitmap of the image to add to the list.</param>

.

       /// <param name="transparentColor">The color to use as the transparent color within the Bitmap.</param>

coredll

.
Summary
Set Clipboad data(Text, bitmap, etc).
.

        CF_BITMAP = 2

opengl32

.

        GL_BITMAP_TOKEN = 0x0704,

.

        GL_BITMAP = 0x1A00,

.

    public static extern void glBitmap(int width, int height, float xorig, float yorig, float xmove, float ymove, byte[] bitmap);

shell32

.

        pictureBox1.Image = ico.ToBitmap();

.

    THB_BITMAP  = 0x1,

.

    UINT  iBitmap;

.

    public int xBitmap;    // x offest from the upperleft of bitmap

.

    public int yBitmap;    // y offset from the upperleft of bitmap

.

button4.Image = Icon.FromHandle(sii.hIcon).ToBitmap();

.

    public uint iBitmap;

Structures

27: BITMAP
.

public struct BITMAPINFOHEADER

.

    public BitmapCompressionMode  biCompression;

.

Public Structure BITMAPINFOHEADER

.

     Public biCompression As BitmapCompressionMode

.

BitmapCompressionMode

.
Summary
Introduces a .bmp file, and is followed by a [BITMAPINFOHEADER] structure.
.

public struct BITMAPFILEHEADER

.

Structure BITMAPFILEHEADER

.
Documentation
[BITMAPFILEHEADER] on MSDN
.

public struct BITMAPINFOHEADER

.

    public BitmapCompressionMode  biCompression;

.

Public Structure BITMAPINFOHEADER

.

     Public biCompression As BitmapCompressionMode

.
Summary
BITMAPINFOHEADER
.

The BITMAPINFOHEADER contains information about the color space and dimensions of a DIB.

.

public struct BITMAPINFOHEADER

.

    public BitmapCompressionMode  biCompression;

.

Public Structure BITMAPINFOHEADER

.

     Public biCompression As BitmapCompressionMode

.

    //     The storage medium is a Graphics Device Interface (GDI) component (HBITMAP).

.

    //     the bitmap.

.

    //     the bitmap.

.

    //     the bitmap.

.

    '     The storage medium is a Graphics Device Interface (GDI) component (HBITMAP).

.

    '     the bitmap.

.

    '     the bitmap.

.

    '     the bitmap.

.

    /// The icon bitmask bitmap

.

    /// A handle to the icon color bitmap.

.

   ''' The icon bitmask bitmap.

.

   ''' A handle to the icon color bitmap.

.

        public int xBitmap;

.

        public int yBitmap;

.

        Public xBitmap As Integer

.

        Public yBitmap As Integer

gdiplus

.
Summary
Retrieve the color of the pixel at position (x,y) in a bitmap.
.

static extern int GdipBitmapGetPixel(HandleRef bitmap, int x, int y,

.

Declare Function GdipBitmapGetPixel Lib "gdiplus.dll" (TODO) As TODO

.

From the Bitmap class in the System.Drawing namespace (C# version):

.

    Color color = bitmap.GetPixel(int x, int y);

.
Documentation
[GdipBitmapGetPixel] on MSDN
.

static extern int GdipBitmapLockBits(HandleRef bitmap, ref GPRECT rect,

.

   ImageLockMode flags, PixelFormat format, ref BitmapData lockedBitmapData);

.

Declare Function GdipBitmapLockBits Lib "gdiplus.dll" (TODO) As TODO

.
Documentation
[GdipBitmapLockBits] on MSDN
.
Summary
Set the pixel color at position (x,y) in a bitmap.
.

static extern int GdipBitmapSetPixel(HandleRef bitmap, int x, int y, int argb);

.

Declare Function GdipBitmapSetPixel Lib "gdiplus.dll" (TODO) As Int

.

In the Bitmap class in the System.Drawing namespace (C# version):

.

    bitmap.SetPixel(int x, int y, Color color);

.
Documentation
[GdipBitmapSetPixel] on MSDN
.

static extern int GdipBitmapSetResolution(HandleRef bitmap, float dpix,

.

Declare Function GdipBitmapSetResolution Lib "gdiplus.dll" (TODO) As TODO

.
Documentation
[GdipBitmapSetResolution] on MSDN
.

static extern int GdipBitmapUnlockBits(HandleRef bitmap,

.

   BitmapData lockedBitmapData);

.

Declare Function GdipBitmapUnlockBits Lib "gdiplus.dll" (TODO) As TODO

.
Documentation
[GdipBitmapUnlockBits] on MSDN
.

static extern int GdipCloneBitmapAreaI(int x, int y, int width,

.

   int height, int format, HandleRef srcbitmap, out IntPtr dstbitmap);

.

Declare Function GdipCloneBitmapAreaI Lib "gdiplus.dll" (TODO) As TODO

.
Documentation
[GdipCloneBitmapAreaI] on MSDN
.

static extern int GdipCreateBitmapFromFileICM(string filename,

.

   out IntPtr bitmap);

.

Declare Function GdipCreateBitmapFromFileICM Lib "gdiplus.dll" (TODO) As TODO

.
Documentation
[GdipCreateBitmapFromFileICM] on MSDN
.

static extern int GdipCreateBitmapFromGdiDib(IntPtr bminfo, IntPtr pixdat, ref IntPtr image);

.

Declare Function GdipCreateBitmapFromGdiDib Lib "GdiPlus.dll" (ByRef GdiBitmapInfo As BITMAPINFO, ByVal GdiBitmapData As Long, ByRef bitmap As Long) As Status

.

    int st = GdipCreateBitmapFromGdiDib(bminfo, pixdat, ref img);

.
Documentation
[GdipCreateBitmapFromGdiDib] on MSDN
.

static extern int GdipCreateBitmapFromGraphics(int width, int height,

.

   HandleRef graphics, out IntPtr bitmap);

.

Declare Function GdipCreateBitmapFromGraphics Lib "gdiplus.dll" (TODO) As TODO

.
Documentation
[GdipCreateBitmapFromGraphics] on MSDN
.

static extern int GdipCreateBitmapFromHBITMAP(HandleRef hbitmap,

.

   HandleRef hpalette, out IntPtr bitmap);

.

Declare Function GdipCreateBitmapFromHBITMAP Lib "gdiplus.dll" (TODO) As TODO

.
Documentation
[GdipCreateBitmapFromHBITMAP] on MSDN
.

static extern int GdipCreateBitmapFromHICON(HandleRef hicon, out IntPtr bitmap);

.

Declare Function GdipCreateBitmapFromHICON Lib "gdiplus.dll" (TODO) As TODO

.
Documentation
[GdipCreateBitmapFromHICON] on MSDN

ole32

.

    CF_BITMAP = 2,

.

    CF_DSPBITMAP = 0x82,

.

       /// Creates a bitmap from the supplied ActiveX control using OleDraw

.

           Bitmap bmp = new Bitmap(rect.Width, rect.Height);

Enums

.
Summary
.

enum BitmapCompressionMode : uint {

.

Enum BitmapCompressionMode As UInteger

.
Documentation
[BitmapCompressionMode] on MSDN
.

    CompatibleBitmap,

.

    /// Saves, as a bitmap, the portion of the screen image obscured by a window of this class.

.

    /// When the window is removed, the system uses the saved bitmap to restore the screen image, including other windows that were obscured.

.

    /// Therefore, the system does not send WM_PAINT messages to windows that were obscured if the memory used by the bitmap has not been discarded and if other screen actions have not invalidated the stored image.

.

    /// This style increases the time required to display the window, because the system must first allocate memory to store the bitmap.

.

    ''' Saves, as a bitmap, the portion of the screen image obscured by a window of this class.

.

    ''' When the window is removed, the system uses the saved bitmap to restore the screen image, including other windows that were obscured.

.

    ''' Therefore, the system does not send WM_PAINT messages to windows that were obscured if the memory used by the bitmap has not been discarded and if other screen actions have not invalidated the stored image.

.

    ''' This style increases the time required to display the window, because the system must first allocate memory to store the bitmap.

.

    /// a fixed background bitmap (if supported)

.

        ///DCTT_BITMAP      Device can print TrueType fonts as graphics.

.
Summary
The format of the bmiColors member of the BITMAPINFO structure.
.

    HasIconicBitmap,

.

    ///There was an error in a Windows GDI call while converting the bitmap to a DIB

.

    [Description("There was an error in a Windows GDI call while converting the bitmap to a DIB")]

.

    public const int CONVERT10_E_OLESTREAM_BITMAP_TO_DIB = unchecked((int)0x800401C3);

.

    ///There was an error in a Windows GDI call while converting the DIB to a bitmap.

.

    [Description("There was an error in a Windows GDI call while converting the DIB to a bitmap.")]

.

    public const int CONVERT10_E_STG_DIB_TO_BITMAP = unchecked((int)0x800401C6);

.

    '''There was an error in a Windows GDI call while converting the bitmap to a DIB

.

    <Description("There was an error in a Windows GDI call while converting the bitmap to a DIB")> _

.

    Public Const CONVERT10_E_OLESTREAM_BITMAP_TO_DIB As Integer = CInt(&H800401c3UI)

.

    '''There was an error in a Windows GDI call while converting the DIB to a bitmap.

.

    <Description("There was an error in a Windows GDI call while converting the DIB to a bitmap.")> _

.

    Public Const CONVERT10_E_STG_DIB_TO_BITMAP As Integer = CInt(&H800401c6UI)

55: PROPID
.

        /// Thumbnail, clipboard format + metafile/bitmap (not supported)

.

        /// The width of the arrow bitmap on a horizontal scroll bar, in pixels.

.

        /// The width of the default menu check-mark bitmap, in pixels.

.

        /// The height of the default menu check-mark bitmap, in pixels.

.

        /// The height of the arrow bitmap on a vertical scroll bar, in pixels.

.

    ''' Height of the arrow bitmap on a vertical scroll bar, in pixels.

.

    ''' Width of the arrow bitmap on a horizontal scroll bar in pixels.

.

    ''' Width of the default menu check-mark bitmap in pixels.

.

    ''' Height of the default menu check-mark bitmap in pixels.

.

    Transfer = 0, // IUIImage now owns HBITMAP.

.

    Copy = 1, // IUIImage creates a copy of HBITMAP. Caller still owns HBITMAP.

.
Summary
Indicates whether a bitmap has an alpha channel.

Constants

.

        SetBitmap(buttonPlsVisible, IDB_NOW_PLAYING);

.

        SetBitmap(buttonPlsVisible, IDB_NOW_PLAYING);

.

        //SetBitmap(hWnd, (isPlaylistVisible ? IDB_RESTORE_PRESSED : IDB_CLOSE_PRESSED));

.

        //SetBitmap(hWnd, (isPlaylistVisible ? IDB_RESTORE_NORMAL : IDB_CLODE_NORMAL));

60: GGO_
.

public const uint GGO_BITMAP       = 1;

.

public const uint GGO_GRAY2_BITMAP = 4;

.

public const uint GGO_GRAY4_BITMAP = 5;

.

public const uint GGO_GRAY8_BITMAP = 6;

.

Public Const GGO_BITMAP       As Integer = 1;

.

Public Const GGO_GRAY2_BITMAP As Integer = 4;

.

Public Const GGO_GRAY4_BITMAP As Integer = 5;

.

Public Const GGO_GRAY8_BITMAP As Integer = 6;

Cut off search results after 60. Please refine your search.


 
Access PInvoke.net directly from VS: