Print Preview ActiveX Active Users: 58 / Visits Today: 235
Highest Active Users: 99
Print Preview ActiveX
Home | Profile | Register | Active Topics | Members | Search | FAQ | RSS
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Print Preview
 Help file
 DrawPSet - Method
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic: DrawRoundRect - Function Topic Next Topic: DrawPolygon - Method  

emiel
Administrator

Belgium
327 Posts

Posted - 07/15/2005 :  12:25:48  Show Profile
Method DrawPSet

Action:

This method draws a point in a pre-set color.

Syntax:

DrawPSet (lXpos As Long, lYpos As Long)

Parameter --- Description

  • lXpos --- Horizontal position of point in twips
  • lYpos --- Vertical position of point in twips

    Remarks:

    If the current value of DrawWidth = 1, then the effect of this method is to set a single pixel nearest to the specified point.

    If the current value of DrawWidth > 1, then the effect of this method is to draw a circle with the size of DrawWidth, centered on the specified position.

    After the method has completed, CurrentX and CurrentY are set to the specified position.

    To clear a pixel or point, use DrawPSet with the color set to the current background color.

    Example:

    To set a red pixel:

    x = Preview.ConvertToTwip(prCentimeter, 2)
    y = Preview.ConvertToTwip(prCentimeter, 2)
    Preview.DrawWidth = 1
    Preview.ForeColor = vbRed
    Preview.PSet x, y

    See Also:

    DrawCircle ->
    DrawLine ->
    DrawStyle ->
    DrawWidth ->

    Come and visit :
    www.immoassist.com
    www.ppreview.net
    www.vbdiamond.com
    www.d2dsources.com
    www.mandix.com

    Go to Bottom of Page
      Previous Topic: DrawRoundRect - Function Topic Next Topic: DrawPolygon - Method  
     New Topic  Topic Locked
     Printer Friendly
    Jump To:
    Print Preview ActiveX © Mandix Go To Top Of Page
    This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000 Version 3.4.02