1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

behaviour of SaveSnapshot and SaveThumbnail

Discussion in 'Alibre Script' started by idslk, May 3, 2019.

  1. idslk

    idslk Alibre Super User

    Hello colleagues,

    it is intended that:
    - SaveSnapshot() only saves if UseAspectRatio or UseWidthandHeight are True
    and saving only with Width and Height (and ,False,False) does not work?
    - SaveThumbnail() saves everytime a square thumb using the bigger value of width and height?

  2. NateLiqGrav

    NateLiqGrav Alibre Super User

    The API says:

    bUseCanvasAspectRatio (Optional)
    Type: System. Boolean
    If true, the greater of the values passed for width/height will be used with the aspect ratio of the current display canvas to determine the size of the snapshot.

    bUseCanvasWidthAndHeight (Optional)
    Type: System. Boolean
    If true, other parameters are overridden and the current width and height of the graphic canvas are used.
  3. ajayre

    ajayre Alibre Super User

    SaveThumbnail saves a copy of the image thumbnail that you can see in Windows Explorer for AD files. I am not sure of the limitations of this - e.g. max size. In general if you want an image of your part then use SaveSnapshot.


Share This Page