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. QImage: Make similar pixels of two images transparent
Forum Updated to NodeBB v4.3 + New Features

QImage: Make similar pixels of two images transparent

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.1k 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.
  • P Offline
    P Offline
    peili
    wrote on last edited by
    #1

    Is there a method/library that will only make specific pixels in the destination image full-transparent? That is, the pixels in the destination image that match the given source image.

    !http://cropme.ru/s/d/6/1/8fb6af96.png(Sample)!

    peili

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Why would you want to have a library for that? Load the two images, iterate over all pixels and compare the pixel colors, set the pixel to transparent if they match. That should be doable in less than 15 lines of code using QImage.

      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