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. How to apply antialiasing to shrunk QImage on OpenGLSurface(Windows Desktop and WinRT)
Forum Updated to NodeBB v4.3 + New Features

How to apply antialiasing to shrunk QImage on OpenGLSurface(Windows Desktop and WinRT)

Scheduled Pinned Locked Moved General and Desktop
openglopengl es2.0winrtwindows
1 Posts 1 Posters 1.4k 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.
  • T Offline
    T Offline
    Tank2005
    wrote on last edited by Tank2005
    #1

    I'm trying to draw the png image to QWindow::OpenGLSurface .

    When the app is Qt 5.4.1 for MSVC2013 or Windows Runtime, a shrunk QImage is not applied an antialiasing. On the other hand, scaled up QImage is antialiased at the same program. Is this issue solvable by a high-level API?

    QOpenGLPaintDevice device(this->size());
    QPainter painter;
    painter.begin(&device);
    
    painter.setRenderHints(QPainter::HighQualityAntialiasing | QPainter::SmoothPixmapTransform, true);
    painter.drawImage(QRect(0,0,100,100), qimg); //Size of qimg is larger than (100, 100)
    
    painter.end();
    
    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