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 3284380
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:08:53+00:00 2026-05-17T20:08:53+00:00

I am looking to implement a mechanism that combines bitmaps together in a variety

  • 0

I am looking to implement a mechanism that combines bitmaps together in a variety of complex ways, using ternary raster operations like you can in Windows.

The idea is to be able to blt an image to a destination using any kind of combination of the source, brush, and destination pixels (source AND destination, source AND brush AND destination, etc.)

This is supported by Windows GDI in what’s called Ternary Raster Operations (check out http://msdn.microsoft.com/en-us/library/dd145130(VS.85).aspx). Is it possible that OS X and iOS completely lack this functionality? The only thing I’ve been able to find are blend modes, but they are not nearly as flexible.

Any ideas?

  • 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-17T20:08:54+00:00Added an answer on May 17, 2026 at 8:08 pm

    There are no ternary operators in Quartz or AppKit, and almost certainly not in UIKit, either. All drawing in Quartz-land is from a single source (image, color, gradient, etc.) into a single destination (context).

    You can have two source images, one as the “source” and the other as the “pattern”/“brush”. For actual pattern drawing, you can use a CGPattern instead of the second image.

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

Sidebar

Related Questions

I'm looking to implement the jQuery UI so that the slider bar fills one
I'm looking to implement a reputation-based point system for a QA site. I like
I want to implement an intialization mechanism that is annotation-based in Java. Specifically, I
I'm looking for an efficient way to implement a serialization mechanism in C. I
I'm looking for suggestions on possible IPC mechanisms that I can implement in my
I am looking into a number of ways to implement a labelling system similar
I am looking for best practices to implement a TraceListener that will write logs
I'm looking since quite a long time something like a CLLocationManager simulator that would
I'm looking for an example, how to implement a longpoling mechanism in java. I
Looking to implement a RIA (rich internet application) either as a java (JWS) application

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.