Home > Software engineering >  Image background transparent processing
Image background transparent processing

Time:09-20

For image processing brothers:
Recently in images were extracted with PDF XPDF open-source library do things, but the picture of the extracted background turned out to be all black, as shown in the following:
Figure 1 is a snapshot of a PDF, figure 2 and figure 3 is extracted image:


The problem is this:
1. The picture of the extracted is two, a prospect of a background? Then, based on the two images, how to black areas in figure 2 in figure 1 to do transparent accordingly? That have the effect of figure 1,
2. If one can implement, so the image of library can be used? Libpng or Magick++ please, for example,
Before didn't contact with the image of this piece, this problem has puzzled me all day long, thank you for your help, thank you very much!

CodePudding user response:

Try TransparentBlt , you can set the transparent color

CodePudding user response:

Upload the original file, I see,
  • Related