Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Printing jpeg images in Qt with special quality
Forum Updated to NodeBB v4.3 + New Features

Printing jpeg images in Qt with special quality

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    swhweng
    wrote on last edited by
    #1

    Hi.

    I have next question. I need to print jpeg images using QPrinter and QPainter, by painter.drawImage(...) or painter.drawPixmap(...). The clients say that the images are printed not so good: 90% quality. I need something that print the images using a specify quality of them (0 -100).

    If you save or render in memory a low quality jpg file with 30% you get a small image for example 30KB. ( Image01 = 30 ) + ( PDF and ptext = 50 ) = 80KB pdf size. I expect that but if I render it in a PDF of QT4, using your function or another, I get a file size of 150KB for example. Qt4 always render the image in 90% jpg. I can do that using c# and PDFSharp, using XGraphics and change the quality of the image, but in Qt4 I don't know how I can made it or what tool use

    Does anybody know how to print in C++ jpeg image with variable qulaity from lowest till highest ( 100 % ) quality ?

    Awaiting for your response,

    Thanks in advance,

    Paul.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved