Boolean DrawPixel(nLeft As Number, nTop As Number, nPenColor As Number, nPenOpacity As Number)
Parameter | Type | Required | Description |
nLeft | Number | Yes | Specifies the horizontal coordinate of the pixel. |
nTop | Number | Yes | Specifies the vertical coordinate of the pixel. |
nPenColor | Number | No | Optional parameter containing a color value. If no color is specified, the current pen color will be used instead. |
nPenOpacity | Number | No | Optional parameter containing the opacity percentage (where 0% is completely transparent). If no opacity is specified, the current pen opacity will be used instead. |
1 // Creates a new transparent image
2 MarblecoreImaging.Create(150, 150, true);
3
4 // Execute the operation
5 MarblecoreImaging.DrawPixel(75, 75);
6
7 // Save the modified image to the specified file
8 MarblecoreImaging.SaveToFile("example-drawpixel.jpg");