ArcFM Desktop Developer Guide
GetBitmap(String,Point) Method


Version: 10.2.1b and 10.2.1b SP1

Resource Center Home

The name of the bitmap resource (without the .bmp suffix).
The pixel location in the bitmap containing the transparent color.
Retrieves a bitmap stored in an assembly's resources section for which the specified point defines the transparent color to use.
Syntax
'Declaration
 
Public Overloads Function GetBitmap( _
   ByVal bitmapName As String, _
   ByVal transparentPoint As Point _
) As Bitmap
'Usage
 
Dim instance As ResourceData
Dim bitmapName As String
Dim transparentPoint As Point
Dim value As Bitmap
 
value = instance.GetBitmap(bitmapName, transparentPoint)
public Bitmap GetBitmap( 
   string bitmapName,
   Point transparentPoint
)

Parameters

bitmapName
The name of the bitmap resource (without the .bmp suffix).
transparentPoint
The pixel location in the bitmap containing the transparent color.

Return Value

The desired bitmap.
Remarks
This method provides a general utility function to retrieve a Bitmap stored as an embedded resource in an assembly when the desired transparent color is different from the default Teal color. The first parameter specifies the name of the resource (without the .bmp suffix). The second parameter specifies the location of the pixel that contains the color to become the transparent color. The full name for the resource is {resourceBaseName}.{resource name}.bmp where {resourceBaseName} is the parameter to the constructor for this class.
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

ResourceData Class
ResourceData Members
Overload List

 

 


Send Comment