Software Developer's Kit - ChemDraw

Send comments on this topic
PNGResolution Property
See Also 

Description

Member of ChemDrawControl.Preferences.

Sets and returns the resolution used to produce PNG files.

Property type

Read-write property

Syntax

Visual Basic
Public Property PNGResolution() As Long

Return Type

Long

Remarks

Sets and returns the resolution used to produce PNG files, expressed in DPI (dots per inch). PNG portable network graphics format is an alternative to the GIF format for adding graphics to web pages. You can save, but not open, files in PNG format.

 

Example

'Modifies a value of preferences 
 Private Sub cmdApplication_click()
     ctlChemDraw.ActiveDocument.Activate
     Dim myApp As ChemDrawControl11Ctl.Application
     Set myApp = ctlChemDraw.Application
     myApp.Preferences.PNGResolution = 10
 End Sub

See Also