OpenHantek / OpenHantek6022

OpenHantek6022 is a DSO software for Hantek USB digital signal oscilloscopes 6022BE / BL. Development OS is Debian Linux, but the program also works on FreeBSD, MacOS, RaspberryPi and Windows. No support for non-Linux related issues unless a volunteer steps in!
GNU General Public License v3.0
867 stars 152 forks source link

PDF Export - Waveforms not visible #95

Closed cutephoton closed 4 years ago

cutephoton commented 4 years ago

Describe the bug

PDF Output does not appear to have traces. (It does, but they are very very thin.) I am using a 4K monitor, but the main app seems to work well. Image Export is fine.

image You can't see the waveforms...

Well... If you zoom in, the lines are visible, and very faint. image

To Reproduce It was consistent. Image png is rendered acceptably.

Expected behavior Visible traces ;)

Computer environment (please complete the following information):

Scope device (please complete the following information):

Would like to express my appreciation for the work that has gone in to this application. I have a fancy scope for the real work, but this is a great tool for quick and dirty jobs.

Ho-Ro commented 4 years ago

Would like to express my appreciation for the work that has gone in to this application.

Thx, I appreciate positive feedback - in contrary to an op amp that works better with negative feedback :)

I have a fancy scope for the real work, but this is a great tool for quick and dirty jobs.

Me too, but my real 4-channel storage scope rests most of the time on the shelf, because it is much too bulky for my desk.

The image/pdf support has been an ugly hack in the original Openhantek for years, which I wanted to get rid of a year ago when I cloned my OpenHantek6022, because it had to duplicate all screen formatting (through OpenGL) with incompatible calls of the QPainter class, very hard to maintain consistency between screen and exported image. Please use the new functions Export/Screenshot (makes a 1:1 picture of the complete program, either image or pdf), Export/Hardcopy (takes a picture of the scope screen only with printer colors, either image or pdf) or Export/Print screen to print directly. The new functions are available in the unstable release or the latest source code. A zoomed screen can be exported in normal or double height, according to the setting in Oscilloscope/Settings/File menu. Printer colors (default) or screen colors for Hardcopy and Print screen can be chosen in Oscilloscope/Settings/Colors menu. You should delete (or rename) the old config file (~/.config/OpenHantek/OpenHantek6022) to use the new default printer colors.

P.S.: Windows users should use the system tool regedit and delete Computer\HKEY_CURRENT_USER\Software\OpenHantek to get the new default screen and printer colors.

Ho-Ro commented 4 years ago

I assume you are satisfied with the solution, otherwise please reopen again.