Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8112805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T02:37:56+00:00 2026-06-06T02:37:56+00:00

My program generate 3 different images and I’d like to combine them using some

  • 0

My program generate 3 different images and I’d like to combine them using some opacity settings.

First I have the raw image, which I already converted into a QPixmap to display it in a QGraphicsView.

First Image.

Then with this image I make some calculation and generate a QImage because I need basic pixel access, I also add a legend.

Second Image.

What I’d like to do is to be able to blend the two images while being able to modify the opacity.
I don’t have the tools to show an example, it should look like this:

Third image

But with the first image and the data image blended with opacity. Also I’d like the legend to stay 100% visible. I can create a different QImage for the legend if it’s needed.

Also I know exactly which pixel should be considered transparent instead of white if it comes to that.

In the future I would like to adjust the opacity just with a slider so I think it would be better if there was a solution that didn’t involve calculating a whole new image every-time…

Any lead would be appreciated…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T02:37:58+00:00Added an answer on June 6, 2026 at 2:37 am

    You could use QGraphicsPixmapItem::setOpacity to set the alpha blend value in the range 0.0…1.0 for the overlay image and have separate graphics items for the background an the foreground.

    If you actually need to generate a pixmap with the blended image, you can use setOpacity on QPainter before drawing the pixmap on it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a program to generate some wild visuals. So far I can paint
Am using the following program for generate the Token,based on the time(current time).It was
I have to generate an executable (.exe) file from my python program. I would
I have some doubts regarding In-Application-Billing in android: Can i test it with different
I'm using a program called Kinfold which produces different output each time I call
I would like to know how to generate assembler code from a C program
Situation: I have a C# program which does the following: Generate many files (replacing
I have a Java program that auto dials phone numbers, it can generate sounds
I have a Python program that generates a histogram using matplotlib. The problem is
I am using a program what can render color images but only without alpha

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.