---
title: "Client-Side Object Model (Web Controls)"
canonical: https://www.graphicsmill.com/docs/gm5/ClientSideObjectModel.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# Client-Side Object Model (Web Controls)
 
The classes from [Aurigma.GraphicsMill.WebControls](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WebControls.htm.md) provide not only server-side properties, methods, and events. They are inseparably linked with the appropriate JavaScript code which allows to work with these controls on the client side (i.e. without having to run any code on the server). This way most members of these classes are doubled in JavaScript.
 
We have followed the following convensions:
 
- All members are called in the JavaScript-style *camel notation*, i.e. all the words in the member name are capitalized except of the first one: it is written in the lowercase, e.g. **someClassMember()**.
- The name of the methods based on the server properties are constructed in the following way:
    - The property reader method has the word **get** prepended to the appropriate property name, i.e. **get*PropertyName*** . For example, **getZoom**.
    - The property writer method has the word **set** prepended to the appropriate property name, i.e. **set*PropertyName*** . For example, **setZoom**.
- The events are represented in the following ways:
- - The method that attaches an event handler has the word **add** prepended to the appropriate event name, i.e. **add*EventName*** . For example, **addBitmapChanged**.
    - The method that detaches an event handler has the word **remove** prepended to the appropriate event name, i.e. **remove*EventName*** . For example, **removeBitmapChanged**.
- Members that accept enumeration as an argument actually accept strings. This string should contain a name of the enumeration member without a namespace prefix. E.g. **setZoomMode** method can accept such strings as **"None"**, **"BestFit"**, **"FitToWidth"**, and other member names of the [ZoomMode](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WebControls_ZoomMode.htm.md) enumeration.
- The members that have some appearance parameters such as colors, line styles, etc. are using HTML-compatible syntax. E.g. colors can be named (**red**, **green**, **black**) or specified in hex in HTML syntax (**#FF0000**, **#00FF00**, **#000000**).

When you need to refer the control instance in the JavaScript, use the **ClientID** of this control (using the **ClientID** property). Use &lt;%=control.ClientID%&gt; syntax for that.
 
Simple code samples demonstrating how to use Graphics Mill for .NET web controls in the JavaScript are shown below.
 
## Syntax Convetion
  
### Properties
 
```
getMyProperty()
setMyProperty(value)
```
 
Here is a simple JavaScript which uses **setZoom** property to change the bitmap viewer zoom:
 
```
<script language="javascript">
function windowOnLoad(){
  var bv=document.getElementById("<%=BitmapViewer1.ClientID%>");
  bv.setZoom(0.5);
}

window.onload=windowOnLoad;
</script>
```
 
### Methods
 
```
myMethod()
```
 
This simple JavaScript demonstrates how to use method **erase** to clear the selection from the control.
 
```
<script language="javascript"> 
function buttonClick(){
  var r=document.getElementById("<%=RectangleRubberband1.ClientID%>");
  r.erase();  
}
</script>
```
 
### Events
 
```
addMyEvent(
  handler : Function, 
  destination :  Object
 )
removeMyEvent(
  handler : Function, 
  destination : Object
 )
```
 
The code below demonstrates how to add the client-side event handler for the [Zoomed](https://www.graphicsmill.com/docs/gm5/E_Aurigma_GraphicsMill_WebControls_BitmapViewer_Zoomed.htm.md) event. In this event handler we display an actual zoom value in the drop-down list.
 
```
<script language="javascript">
function bitmapViewer_Zoomed(){
  document.getElementById("inputZoom").value = Math.round(bitmapViewer1.getZoom()*100) + "%";
}

function windowOnLoad(){
  var bv=document.getElementById("<%=BitmapViewer1.ClientID%>");
  bitmapViewer1.addZoomed(bitmapViewer_Zoomed, this);  
}

window.onload=windowOnLoad;
</script>
```
 
## Object Model
  
### Web Controls Classes
 
- BitmapViewer
    - bitmap (Bitmap)
    - getScrollingPosition / setScrollingPosition (Point)
- PanNavigator
- ZoomInNavigator
- ZoomOutNavigator
- ZoomRectangleResponsible
- RectangleRubberband
    - getRectangle / setRectangle (Rectangle)

### Auxiliary Classes
 
- Bitmap
- Point
- Rectangle
- RgbColor
- CmykColor
- GrayScaleColor
 
## Web Controls Classes
  
### BitmapViewer Class
 
**Properties**
 
|  Member Name |  Client-Side Syntax |  Description |
| --- | --- | --- |
 |  [AutoPostBack](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WebControls_BitmapViewer_AutoPostBack.htm.md) |  ```<br>getAutoPostBack() : Boolean<br>setAutoPostBack(value: Boolean)<br>``` |  Gets/sets a value indicating whether a postback to the server occurs automatically when the user zooms or scrolls the bitmap. |
 |  [Bitmap](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WebControls_BitmapViewer_Bitmap.htm.md) |  ```<br>bitmap : Bitmap<br>``` |  Gets/sets a bitmap which is displayed on the control. |
 |  N/A |  ```<br>getExceptionName() : String<br>``` |  When a remote scripting method fails, this method returns the exception name. If the method succeeded, an empty string is returned.<br> <br>To determine when remote method completes, use **StatusChanged** event (see **addStatusChanged/removeStatusChanged** methods below). |
 |  N/A |  ```<br>getExceptionDescription() : String<br>``` |  When a remote scripting method fails, this method returns the exception description. If the method succeeded, empty string returned.<br> <br>To determine when the remote method is completed, use **StatusChanged** event (see **addStatusChanged/removeStatusChanged** methods below). |
 |  [MaxZoom](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WebControls_BitmapViewer_MaxZoom.htm.md) |  ```<br>getMaxZoom() : Number<br>``` |  Gets/sets the maximum allowed zoom value. |
 |  [MinZoom](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WebControls_BitmapViewer_MinZoom.htm.md) |  ```<br>getMinZoom() : Number<br>``` |  Gets/sets the minimum allowed zoom value. |
 |  [Navigator](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WebControls_BitmapViewer_Navigator.htm.md) |  ```<br>getNavigator() : String<br>setNavigator(value : String)<br>``` |  Gets/sets the navigator control ID. |
 |  N/A |  ```<br>getReturnValue() : String<br>``` |  When a remote scripting method is completed, this method returns its return value. To determine when the remote method is completed, use **StatusChanged** event (see **addStatusChanged/removeStatusChanged** methods below). |
 |  [Rubberband](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WebControls_BitmapViewer_Rubberband.htm.md) |  ```<br>getRubberband() : String<br>setRubberband(value : String)<br>``` |  Gets/sets the rubberband control ID. |
 |  [ScrollBarsStyle](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WebControls_BitmapViewer_ScrollBarsStyle.htm.md) |  ```<br>getScrollBarsStyle() : String<br>``` |  Gets/sets a value that specifies when to display the scroll bars. |
 |  [ScrollBarWidth](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WebControls_BitmapViewer_ScrollBarWidth.htm.md) |  ```<br>getScrollBarWidth() : Number<br>``` |  Gets a value that specifies width of a scroll bar . |
 |  [ScrollingPosition](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WebControls_BitmapViewer_ScrollingPosition.htm.md) |  ```<br>getScrollingPosition() : Point<br>setScrollingPosition(value : Point)<br>``` |  Gets/sets a position of the scroll bars. |
 |  N/A |  ```<br>getStatus() : String<br>``` |  Gets a current bitmap status. It can be one of the following values:<br> <ul> <li> <strong>"Ready"</strong>. The remote scripting method has been completed (or was not run yet), and you can freely get return value or exception details.</li> <li> <strong>"Busy"</strong>. The remote scripting method is running (the bitmap state is changing).</li> <li> <strong>"Refresh"</strong>. The viewport updates a portion of image it displays (e.g. when user zoomed or scrolled it). The bitmap state is not changed while status is "Refresh".</li> </ul> |
 |  [Zoom](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WebControls_BitmapViewer_Zoom.htm.md) |  ```<br>getZoom() : Number<br>setZoom(value : Number)<br>``` |  Gets/sets the current zoom value. |
 |  [ZoomMode](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WebControls_BitmapViewer_ZoomMode.htm.md) |  ```<br>getZoomMode() : String<br>setZoomMode(value : String)<br>``` |  Gets/sets the zooming behavior of the control (automatic or manual). |
 |  [ZoomQuality](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WebControls_BitmapViewer_ZoomQuality.htm.md) |  ```<br>getZoomQuality() : Number<br>``` |  Gets/sets the value that specifies a zoom quality. |
 
**Methods**
 
|  Member Name |  Client-Side Syntax |  Description |
| --- | --- | --- |
 |  N/A |  ```<br>bitmapToControlPoint(point : Point)<br>``` |  Converts X and Y point values from the bitmap-related coordinates to the control-related ones. |
 |  N/A |  ```<br>controlToBitmapPoint(point : Point)<br>``` |  Converts X and Y point values from the control-related coordinates to the bitmap-related ones. |
 |  N/A |  ```<br>invokeRemoteMethod(<br>  name : String, <br>  args : Object<br>) : Boolean<br>``` |  Runs the specified remote method on the server. Read the [Remote Scripting Approach](https://www.graphicsmill.com/docs/gm5/RemoteScriptingApproach.htm.md) topic for more details. |
 |  N/A |  ```<br>delayedRefresh()<br>``` |  Indicates that the viewport needs to be refreshed. The actual refreshing is applied when the user does not update the viewport state (such as scroll position, zoom value) in one second. |
 |  N/A |  ```<br>refresh()<br>``` |  Refreshes the viewport immediately. |
 
**Events**
 
|  Member Name |  Client-Side Syntax |  Description |
| --- | --- | --- |
 |  [Click](https://www.graphicsmill.com/docs/gm5/E_Aurigma_GraphicsMill_WebControls_BitmapViewer_Click.htm.md) |  ```<br>addClick(<br>  handler : Function,<br>  destination : Object<br>)<br>removeClick(<br>  handler : Function,<br>  destination : Object<br>)<br>``` |  Fires when the image displayed in the control is clicked. |
 |  [BitmapChanged](https://www.graphicsmill.com/docs/gm5/E_Aurigma_GraphicsMill_WebControls_BitmapViewer_BitmapChanged.htm.md) |  ```<br>addBitmapChanged(<br>  handler : Function,<br>  destination : Object<br>)<br>removeBitmapChanged(<br>  handler : Function,<br>  destination : Object<br>)<br>``` |  Fires when the Bitmap property is changed or this bitmap is updated. |
 |  [Scrolled](https://www.graphicsmill.com/docs/gm5/E_Aurigma_GraphicsMill_WebControls_BitmapViewer_Scrolled.htm.md) |  ```<br>addScrolled(<br>  handler : Function, <br>  destination :  Object<br> )<br>removeScrolled(<br>  handler : Function, <br>  destination : Object<br> )<br>``` |  Fires when some scroll bar was moved. |
 |  N/A |  ```<br>addStatusChanged(<br>  handler : Function,<br>  destination : Object<br>)<br>removeStatusChanged(<br>  handler : Function,<br>  destination : Object<br>)<br>``` |  Fires when bitmap status (see **getStatus** method) is updated. Using this method you can determine when the remote scripting method was stopped. To do it, this event handler should analyze the value returned with the **getStatus** method. If it is **"Ready"**, the remote method has been completed. If it is **"Busy"**, the remote method has been started. If it is **"Refresh"**, the bitmap is not modified, but the viewport is downloading a portion of the image (e.g. when user zoomed or scrolled the image). |
 |  Zoomed |  ```<br>addZoomed(<br>  handler : Function,<br>  destination : Object<br>)<br>removeZoomed(<br>  handler : Function,<br>  destination : Object<br>)<br>``` |  Fires when the bitmap is zoomed in this [BitmapViewer](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WebControls_BitmapViewer.htm.md) control. |
 
### PanNavigator
 
**Methods**
 
|  Member Name |  Client-Side Syntax |  Description |
| --- | --- | --- |
 |  [Connect(BitmapViewer)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WebControls_IUserInputController_Connect_1_e952118f.htm.md) |  ```<br>connect(bitmapViewerId : String)<br>``` |  Connects this navigator to the BitmapViewer control. |
 |  Connect(BitmapViewer) |  ```<br>disconnect(bitmapViewerId : String)<br>``` |  Disconnects this navigator from the BitmapViewer control. |
 
### ZoomInNavigator
 
**Methods**
 
|  Server-Side Member Name |  Client-Side Member Name |  Description |
| --- | --- | --- |
 |  Connect(BitmapViewer) |  ```<br>connect(bitmapViewerId : String)<br>``` |  Connects this navigator to the BitmapViewer control. |
 |  Connect(BitmapViewer) |  ```<br>disconnect(bitmapViewerId : String)<br>``` |  Disconnects this navigator from the BitmapViewer control. |
 
### ZoomOutNavigator
 
**Methods**
 
|  Server-Side Member Name |  Client-Side Member Name |  Description |
| --- | --- | --- |
 |  Connect(BitmapViewer) |  ```<br>connect(bitmapViewerId : String)<br>``` |  Connects this navigator to the BitmapViewer control. |
 |  Connect(BitmapViewer) |  ```<br>disconnect(bitmapViewerId : String)<br>``` |  Disconnects this navigator from the BitmapViewer control. |
 
### ZoomRectangleResponsible
 
**Properties**
 
|  Server-Side Member Name |  Client-Side Member Name |  Description |
| --- | --- | --- |
 |  [OutlineColor](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WebControls_RectangleController_OutlineColor.htm.md) |  ```<br>getOutlineColor() : String<br>setOutlineColor(value : String)<br>``` |  Gets/sets the color of the rectangle outline. |
 |  [OutlineStyle](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WebControls_RectangleController_OutlineStyle.htm.md) |  ```<br>getOutlineStyle() : String<br>setOutlineStyle(value : String)<br>``` |  Gets/sets the rectangle outline pen style (solid, dashed, etc). |
 |  [OutlineWidth](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WebControls_RectangleController_OutlineWidth.htm.md) |  ```<br>getOutlineWidth() : Number<br>setOutlineWidth(value : Number)<br>``` |  Gets/sets the rectangle outline width. |
 
**Methods**
 
|  Member Name |  Client-Side Syntax |  Description |
| --- | --- | --- |
 |  Connect(BitmapViewer) |  ```<br>connect(bitmapViewerId : String)<br>``` |  Connects this navigator to the BitmapViewer control. |
 |  Connect(BitmapViewer) |  ```<br>disconnect(bitmapViewerId : String)<br>``` |  Disconnects this navigator from the BitmapViewer control. |
 
### RectangleRubberband
 
**Properties**
 
|  Member Name |  Client-Side Syntax |  Description |
| --- | --- | --- |
 |  [AutoPostBack](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WebControls_RectangleRubberband_AutoPostBack.htm.md) |  ```<br>getAutoPostBack() : Boolean<br>setAutoPostBack(value : Boolean)<br>``` |  Gets/sets a value indicating whether a postback to the server automatically occurs when the user stops modifying the rectangle. |
 |  [Erasable](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WebControls_RectangleRubberband_Erasable.htm.md) |  ```<br>getErasable() : Boolean<br>setErasable(value : Boolean)<br>``` |  Gets/sets a value that specifies whether the rubberband can be erased (discarded) when the user clicks by a mouse out of this rectangle. |
 |  [GripSize](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WebControls_RectangleRubberband_GripSize.htm.md) |  ```<br>getGripSize() : Number<br>setGripSize(value : Number)<br>``` |  Gets/sets the grip size. |
 |  [GripsVisible](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WebControls_RectangleRubberband_GripsVisible.htm.md) |  ```<br>getGripsVisible() : Boolean<br>setGripsVisible(value : Boolean)<br>``` |  Gets/sets a value which shows or hides the grips on the rectangle. |
 |  [IsEmpty](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WebControls_RectangleRubberband_IsEmpty.htm.md) |  ```<br>getIsEmpty() : Boolean<br>``` |  Gets a value that specifies whether the rubberband rectangle is empty (and therefore whether it is visible). |
 |  [MaskVisible](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WebControls_RectangleRubberband_MaskVisible.htm.md) |  ```<br>getMaskVisible() : Boolean<br>setMaskVisible(value : Boolean)<br>``` |  Gets/sets a value which specifies whether to display a mask out of the rectangle. |
 |  [Movable](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WebControls_RectangleRubberband_Movable.htm.md) |  ```<br>getMovable() : Boolean<br>setMovable(value : Boolean)<br>``` |  Gets/sets a value which specifies whether the rubberband rectangle can be dragged on the BitmapViewer control. |
 |  OutlineColor |  ```<br>getOutlineColor() : String<br>setOutlineColor(value : String)<br>``` |  Gets/sets the color of the rectangle outline. |
 |  OutlineStyle |  ```<br>getOutlineStyle() : String<br>setOutlineStyle(value : String)<br>``` |  Gets/sets the rectangle outline pen style (solid, dashed, etc). |
 |  OutlineWidth |  ```<br>getOutlineWidth() : Number<br>setOutlineWidth(value : Number)<br>``` |  Gets/sets the rectangle outline width. |
 |  [Ratio](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WebControls_RectangleRubberband_Ratio.htm.md) |  ```<br>getRatio() : Number<br>setRatio(value : Number)<br>``` |  Gets/sets the aspect ratio of the rubberband rectangle which should be preserved when [ResizeMode](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WebControls_RectangleRubberband_ResizeMode.htm.md) is [Proportional](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WebControls_ResizeMode.htm.md). |
 |  [Rectangle](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WebControls_RectangleRubberband_Rectangle.htm.md) |  ```<br>getRectangle() : Rectangle<br>setRectangle(value : Rectangle)<br>``` |  Gets/sets a rubberband rectangle. |
 |  ResizeMode |  ```<br>getResizeMode()<br>setResizeMode(value)<br>``` |  Gets/sets an allowed resize mode for the rubberband rectangle. |
 
**Methods**
 
|  Member Name |  Client-Side Syntax |  Description |
| --- | --- | --- |
 |  Connect(BitmapViewer) |  ```<br>connect(bitmapViewerId : String)<br>``` |  Connects this rubberband to the BitmapViewer control. |
 |  Connect(BitmapViewer) |  ```<br>disconnect(bitmapViewerId : String)<br>``` |  Disconnects this rubberband from the BitmapViewer control. |
 |  [Erase()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WebControls_RectangleRubberband_Erase.htm.md) |  ```<br>erase()<br>``` |  Erases (discards) the rubberband from the control. |
 
**Events**
 
|  Member Name |  Client-Side Syntax |  Description |
| --- | --- | --- |
 |  [RectangleChanged](https://www.graphicsmill.com/docs/gm5/E_Aurigma_GraphicsMill_WebControls_RectangleRubberband_RectangleChanged.htm.md) |  ```<br>addRectangleChanged(<br>  handler : Function, <br>  destination : Object<br> )<br>removeRectangleChanged(<br>  handler : Function,<br>  destination : Object<br>)<br>``` |  Fires when the rubberband rectangle is modified (mouse button is released). |
 |  N/A |  ```<br>addRectangleChanging(<br>  handler : Function,<br>  destination : Object<br>)<br>removeRectangleChanging(<br>  handler : Function,<br>  destination : Object<br> )<br>``` |  Fires during the rubberband rectangle modification (before the mouse button is released). |
 
## Auxiliary Classed
  
### Bitmap Class
 
**Properties**
 
|  Member Name |  Client-Side Syntax |  Description |
| --- | --- | --- |
 |  [BitsPerPixel](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Bitmap_BitsPerPixel.htm.md) |  ```<br>getBitsPerPixel() : Number<br>``` |  Returns the number of bits per pixel. |
 |  [ColorSpace](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Bitmap_ColorSpace.htm.md) |  ```<br>getColorSpace() : String<br>``` |  Indicates color space of the current bitmap. |
 |  [HasAlpha](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Bitmap_HasAlpha.htm.md) |  ```<br>getHasAlpha() : Boolean<br>``` |  Specifies whether current pixel format supports alpha channel (information about opacity of pixels). |
 |  [Height](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Bitmap_Height.htm.md) |  ```<br>getHeight() : Number<br>``` |  Returns current bitmap height in pixels. |
 |  [IsCmyk](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Bitmap_IsCmyk.htm.md) |  ```<br>getIsCmyk() : Boolean<br>``` |  Indicates if color space of current bitmap is CMYK. |
 |  [IsEmpty](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Bitmap_IsEmpty.htm.md) |  ```<br>getIsEmpty() : Boolean<br>``` |  Indicates if bitmap is empty (no bitmap data loaded). |
 |  [IsExtended](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Bitmap_IsExtended.htm.md) |  ```<br>getIsExtended() : Boolean<br>``` |  Indicates if current pixel format is extended (i.e. 16 bits per channel). |
 |  [IsGrayScale](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Bitmap_IsGrayScale.htm.md) |  ```<br>getIsGrayScale() : Boolean<br>``` |  Indicates if color space of current bitmap is grayscale. |
 |  [IsIndexed](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Bitmap_IsIndexed.htm.md) |  ```<br>getIsIndexed() : Boolean<br>``` |  Indicates if current bitmap is indexed (palette-based). |
 |  [IsRgb](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Bitmap_IsRgb.htm.md) |  ```<br>getIsRgb() : Boolean<br>``` |  Indicates if color space of current bitmap is RGB. |
 |  [PixelFormat](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Bitmap_PixelFormat.htm.md) |  ```<br>getPixelFormat() : Number<br>``` |  Returns pixel format of the current bitmap. |
 |  [Width](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Bitmap_Width.htm.md) |  ```<br>getWidth() : Number<br>``` |  Returns current bitmap width in pixels. |
 
### Point Class
 
**Properties**
 
|  Member Name |  Client-Side Syntax |  Description |
| --- | --- | --- |
 |  X |  ```<br>x : Number<br>``` |  Gets or sets the x-coordinate of this **Point**. |
 |  Y |  ```<br>y : Number<br>``` |  Gets or sets the y-coordinate of this **Point**. |
 
### Rectangle Class
 
**Properties**
 
|  Member Name |  Client-Side Syntax |  Description |
| --- | --- | --- |
 |  Height |  ```<br>height : Number<br>``` |  Gets or sets the height of this **Rectangle** structure. |
 |  Left |  ```<br>left : Number<br>``` |  Gets or sets the x-coordinate of the left edge of this **Rectangle**. |
 |  Top |  ```<br>top : Number<br>``` |  Gets or sets the y-coordinate of the top edge of this **Rectangle**. |
 |  Width |  ```<br>width : Number<br>``` |  Gets or sets the width of this **Rectangle** structure. |
 
**Methods**
 
|  Member Name |  Client-Side Syntax |  Description |
| --- | --- | --- |
 |  N/A |  ```<br>clone() : Rectangle<br>``` |  Creates an exact copy of this **Rectangle** object. |
 
### RgbColor Class
 
**Properties**
 
|  Member Name |  Client-Side Syntax |  Description |
| --- | --- | --- |
 |  [A](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_RgbColor_A.htm.md) |  ```<br>a : Number<br>``` |  Returns 8-bit alpha channel value (color opacity). |
 |  [B](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_RgbColor_B.htm.md) |  ```<br>b : Number<br>``` |  Returns 8-bit blue channel value. |
 |  [G](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_RgbColor_G.htm.md) |  ```<br>g : Number<br>``` |  Returns 8-bit green channel value. |
 |  [R](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_RgbColor_R.htm.md) |  ```<br>r : Number<br>``` |  Returns 8-bit red channel value. |
 
### CmykColor Class
 
**Properties**
 
|  Member Name |  Client-Side Syntax |  Description |
| --- | --- | --- |
 |  [A](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_CmykColor_A.htm.md) |  ```<br>a : Number<br>``` |  Returns 8-bit alpha channel value (color opacity). |
 |  [C](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_CmykColor_C.htm.md) |  ```<br>c : Number<br>``` |  Returns 8-bit cyan channel value. |
 |  [K](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_CmykColor_K.htm.md) |  ```<br>k : Number<br>``` |  Returns 8-bit black channel value. |
 |  [M](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_CmykColor_M.htm.md) |  ```<br>m : Number<br>``` |  Returns 8-bit magenta channel value. |
 |  [Y](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_CmykColor_Y.htm.md) |  ```<br>y : Number<br>``` |  Returns 8-bit yellow channel value. |
 
### GrayScaleColor Class
 
**Properties**
 
|  Member Name |  Client-Side Syntax |  Description |
| --- | --- | --- |
 |  [A](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_GrayScaleColor_A.htm.md) |  ```<br>a : Number<br>``` |  Returns 8-bit alpha channel value (color opacity). |
 |  [Gray](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_GrayScaleColor_Gray.htm.md) |  ```<br>gray : Number<br>``` |  Returns 8-bit luminosity channel value. |
