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

  • Home
  • SEARCH
  • 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 6671259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:22:01+00:00 2026-05-26T03:22:01+00:00

Does anyone know if it’s possible to do the Photoshop layer composite mode negative

  • 0

Does anyone know if it’s possible to do the Photoshop layer composite mode “negative multiply”?

Multiply is possible, but i need the negative way.

MagickBooleanType aStat = MagickCompositeImage(magick_wand_local, magick_wand_local_comp, MultiplyCompositeOp, 0, 0);   

Thanks

  • 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-05-26T03:22:02+00:00Added an answer on May 26, 2026 at 3:22 am

    Okay. Found it myself.

    It’s called: ScreenCompositeOp

    Some sample code (not cleaned!):

        CGImageRef standardized = srcCGImage; //createStandardImage(srcCGImage);
    
        // could use the image directly if it has 8/16 bits per component,
        // otherwise the image must be converted into something more common (such as images with 5-bits per component)
        // here we’ll be simple and always convert
        const char *map = "ARGB"; // hard coded
        const StorageType inputStorage = CharPixel;
    
        NSData *srcData = (NSData *) CGDataProviderCopyData(CGImageGetDataProvider(standardized));
    
        const void *bytes = [srcData bytes];
        MagickWandGenesis();
        MagickWand * magick_wand_local= NewMagickWand();
        MagickBooleanType status = MagickConstituteImage(magick_wand_local, width, width, map, inputStorage, bytes);
        if (status == MagickFalse) {
            ThrowWandException(magick_wand_local);
        }    
        /*
         status = MagickOrderedPosterizeImage(magick_wand_local, "h8x8o");
         if (status == MagickFalse) {
         ThrowWandException(magick_wand_local);
         }
         */
    
        //status = MagickThresholdImage(magick_wand_local, 100.0);
    
        MagickWand * magick_wand_local_comp = NewMagickWand();
        NSString *file = @"winter_over.jpg";
        if(export == YES) {
            file = @"winter_over_large.jpg";
        }
    
        if(MagickReadImage(magick_wand_local_comp,[[[NSBundle mainBundle] pathForResource:file ofType:@""] UTF8String]) == MagickFalse) {
            ExceptionType severity;
            char *err = MagickGetException(magick_wand_local_comp, &severity);
            printf("%s\n",err);
            NSLog(@"error");
        }
    
        MagickBooleanType aStat = MagickCompositeImage(magick_wand_local, magick_wand_local_comp, ScreenCompositeOp, 0, 0);    
        if(aStat == MagickFalse) {
            NSLog(@"error");
        }
    
        status = MagickModulateImage(magick_wand_local, 100, 29, 100);
    
    
    
        if (status == MagickFalse) {
            ThrowWandException(magick_wand_local);
        }
    
        const int bitmapBytesPerRow = (width * strlen(map));
        const int bitmapByteCount = (bitmapBytesPerRow * height);
        CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
        char *trgt_image = malloc(bitmapByteCount);
        status = MagickExportImagePixels(magick_wand_local, 0, 0, width, height, map, CharPixel, trgt_image);
        if (status == MagickFalse) {
            ThrowWandException(magick_wand_local);
        }
        magick_wand_local = DestroyMagickWand(magick_wand_local);
        magick_wand_local_comp = DestroyMagickWand(magick_wand_local_comp);
        MagickWandTerminus();
        CGContextRef context = CGBitmapContextCreate (trgt_image,
                                                      width,
                                                      height,
                                                      8, // bits per component
                                                      bitmapBytesPerRow,
                                                      colorSpace,
                                                      kCGImageAlphaPremultipliedFirst);
        CGColorSpaceRelease(colorSpace);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know of a good Command Prompt replacement? I've tried bash/Cygwin, but that
Does anyone know of a Mootools script that provides nested sortable but also works
Does anyone know of an existing way to change the order of an existing
Does anyone know how to select datatable by row range? say if I need
Does anyone know of a way to authenticate in a Rails application and allow
Does anyone know if there is any way to restrict access to the remote
Does anyone know of a neat way in java or any packages that will
Does anyone know is there a better way to check if some image contain
Does anyone know why template arguments are needed for return-types but not for argument-types
does anyone know a smooth / fast way of removing transparency from e.g. pngs/tiffs

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.