Skip to content

Instantly share code, notes, and snippets.

@mostlydev
Last active February 20, 2021 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mostlydev/f17960c1af0eacadcb212e12b52247ea to your computer and use it in GitHub Desktop.
Save mostlydev/f17960c1af0eacadcb212e12b52247ea to your computer and use it in GitHub Desktop.
True-size printing using DICOM Printer 2

There are three steps to get true size output

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.

    <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.

Set the virtual printer DPI

  • Open the Command Prompt as Administrator
$ cd "\Program Files\Flux Inc\DICOM Printer 2\tools"
$ setdpi.bat

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

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment