Fix the variable transparency case that was broken by the #8255 commit. #8612
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.






The fix in the #8255 was actually very incomplete and left the working array still pointing to a zero filled array and hence this type of transparency was totally broken. This PR fixes that. But this PR also addressees other situations.
grdimage_img_set_transparencyfunction that either copies a color or blends it. I don't know enough postscript to follow this matter any further.If someone wants to play with a variable transparency file, here is one.

EDIT: The SC bellow sows a cut of the original of the
transp_mixtest. The top left image (that in fact is the second row, first col of the full image) shows the same grid pattern as the lower left. This grid pattern in PS is what we see when using the true variable transparency that works by drawing a rectangle for each pixel (that is why those PS are huge). So, at a given point the single value transparency (obtained for example withgrdmix -A) must have been working, but as I said above, I have no idea how. I think we should replace that orig PS by the one produced now by thetransp_mix.shscript and remove theGMT_KNOWN_FAILURE. @seisman Coul you do it after this RR is merged? I am not able to update original PS's.