Skip to content

Instantly share code, notes, and snippets.

@mostlydev
Last active February 20, 2021 21:54
Show Gist options
  • Save mostlydev/f17960c1af0eacadcb212e12b52247ea to your computer and use it in GitHub Desktop.
Save mostlydev/f17960c1af0eacadcb212e12b52247ea to your computer and use it in GitHub Desktop.

Revisions

  1. mostlydev revised this gist Feb 20, 2021. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions dp2-true-size-printing.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    There are three steps to get true size output

    1. Disable magnification.
    ## Disable magnification.

    In the configuration, you have to add or modify three elements:

    @@ -33,7 +33,7 @@ In the configuration, you have to add or modify three elements:
    If the `BasicFilmBoxAttributes` or `BasicImageBoxAttributes` groups do not exist, then create them.


    2. Set the virtual printer DPI to match the resolution above
    ## Set the virtual printer DPI

    - Open the Command Prompt as Administrator

    @@ -44,7 +44,8 @@ $ setdpi.bat

    When prompted, enter your printer resolution, e.g., “320”, and press Enter.

    3. Make sure to select the correct film size in the printer dialog box when printing.
    ## Make sure to select the correct film size in the printer dialog

    If you select the wrong size then the image will be cut off, or not fill the page.

    If you don’t know your imager resolution then you’ll need to look that up online. You can use 254 x 254, or 508 x 580 for most Drypix printers, and the printer will automatically assume either STANDARD or FINE print modes based on the number of pixels it gets.
  2. mostlydev revised this gist Feb 20, 2021. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions dp2-true-size-printing.md
    Original file line number Diff line number Diff line change
    @@ -4,9 +4,9 @@ There are three steps to get true size output

    In the configuration, you have to add or modify three elements:

    `Resolution` should match your imager resolution, e.g., "320 x 320" for Drystar 520x.
    `MagnificationType` needs to be set to `NONE`, and
    `RequestedDecimateCropBehaviour` needs to be set to `CROP`.
    `Resolution` should match your imager resolution, e.g., "320 x 320" for Drystar 520x.
    `MagnificationType` needs to be set to `NONE`, and.
    `RequestedDecimateCropBehaviour` needs to be set to `CROP`.

    ```xml
    <Print name="PrintMe">
  3. mostlydev created this gist Feb 20, 2021.
    52 changes: 52 additions & 0 deletions dp2-true-size-printing.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,52 @@
    There are three steps to get true size output

    1. Disable magnification.

    In the configuration, you have to add or modify three elements:

    `Resolution` should match your imager resolution, e.g., "320 x 320" for Drystar 520x.
    `MagnificationType` needs to be set to `NONE`, and
    `RequestedDecimateCropBehaviour` needs to be set to `CROP`.

    ```xml
    <Print name="PrintMe">
    <Resolution>320 x 320</Resolution>
    <PrintMode>Grayscale12</PrintMode>
    <ConnectionParameters>
    <PeerAeTitle>DRYPIX</PeerAeTitle>
    <Host>192.168.11.100</Host>
    <Port>104</Port>
    </ConnectionParameters>
    <BasicFilmBoxAttributes>
    ...
    <MagnificationType>NONE</MagnificationType>
    ...
    </BasicFilmBoxAttributes>
    <BasicImageBoxAttributes>
    ...
    <RequestedDecimateCropBehavior>CROP</RequestedDecimateCropBehavior>
    ...
    </BasicImageBoxAttributes>
    </Print>
    ```

    If the `BasicFilmBoxAttributes` or `BasicImageBoxAttributes` groups do not exist, then create them.


    2. Set the virtual printer DPI to match the resolution above

    - Open the Command Prompt as Administrator

    ```md
    $ cd "\Program Files\Flux Inc\DICOM Printer 2\tools"
    $ setdpi.bat
    ```

    When prompted, enter your printer resolution, e.g., “320”, and press Enter.

    3. Make sure to select the correct film size in the printer dialog box when printing.
    If you select the wrong size then the image will be cut off, or not fill the page.

    If you don’t know your imager resolution then you’ll need to look that up online. You can use 254 x 254, or 508 x 580 for most Drypix printers, and the printer will automatically assume either STANDARD or FINE print modes based on the number of pixels it gets.