Alpha only CGContext does not work blend mode

Hi,
I have a Alpha Only CGContext created with
col = 100;
row = 100;
maskBuffer = malloc(100 * 100);
memset(maskBuffer, 255, 100 * 100);
memset(maskBuffer, 0, 100 * 50);
maskContext = CGBitmapContextCreate (maskBuffer, col, row, 8, col, NULL, kCGImageAlphaOnly);
As you can see, the top half is transparent. Then I want to inverse it, make the bottom half transparent. I did
CGContextSetBlendMode(maskContext, kCGBlendModeSourceOut);
CGContextSetFillColorWithColor(maskContext,[UIColor whiteColor].CGColor);
CGRect rect = CGRectMake(0, 0, 100, 100);
CGContextFillRect(maskContext, rect);
I found that the whole context was set transparent. The blend mode kCGBlendModeSourceOut does not seem to work here. Anyone has the same experience?
Thanks,
ff

Seems to me that you need to set the display width to be wide enough for all possible meanings in the LOV, rather than wide enough for the field itself. But I may have misunderstood the question. or misremembered the answer - it has been a while.

Similar Messages

  • Meaning only field does not work when querying

    Hi
    I am working with Designer 6i R4.11
    In my generated forms I have columns/fields based on "domains/lovs". The domain property "dynamic list" is set to yes and I have all my values in a cg_ref_codes table.
    Now when I am doing a query in my form and I use the lov-button of the "domain-field", the query will work fine. When I just type in the value in the field without using the lov, the query will always return all values.
    There is no trigger or code generated to fill in the database-column value in query-mode, so form a form builder point of view it makes sense.
    I have the impression this used to work years ago. Is there a property I didn't set or am I missing something?
    Thanks in advance for your help.
    Karine

    Seems to me that you need to set the display width to be wide enough for all possible meanings in the LOV, rather than wide enough for the field itself. But I may have misunderstood the question. or misremembered the answer - it has been a while.

  • I bought Adobe Elements 12; I cannot use panorama photomerge, I have followed the directions to go to Full Edit  mode in edit workspace choose File New Photomerge. However the Photomerge does not work, it does not respond.   The only thing I can come u

    I bought Adobe Elements 12; I cannot use panorama photomerge, I have followed the directions to go to Full Edit  mode in edit workspace> choose File> New> Photomerge. However the Photomerge does not work, it does not respond.
    The only thing I can come up with is that I found a blog that said that in the Trial version Photomerge does not work, however I do Not have the Trial version, I did at one time but I purchase Adobe Elements. Thank you.

    The blog was incorrect. Photomerge should work in the trial, too.
    When things get weird in PSE the first thing to do is to delete the prefs. Go to the editor preferences>general, click this button and restart the editor:

  • My iphone has a problem, it simply does not work, the screen is all black with a few colorful scribbles and images blend, I used it only took 6 days and returned to service when operated only 7 more days and it happened again the same thing, what do I do?

    My iphone has a problem, it simply does not work, the screen is all black with a few colorful scribbles and images blend, I used it only took 6 days and returned to service when operated only 7 more days and it happened again the same thing, what do I do?

    Reset the PRAM
    Reinstall the operating system from the dvd (you will not loose your data)

  • Bought iphone4 and the microphone does not work only if we use in speak mode. How is it possible to fix

    I bought two  iphone4 in Miami and one of them appared a problem that the microphone does not work in normal call only if i use the speak mode. I am living in Manaus - Amazonas - Brazil and we do not have an apple store to complain it.
    Question.
    How is it possible to fix this problem ?
    Maria Filomena Kimura

    Unfortunately, the warranty is NOT international. You will have to send the defective phone to someone in the U.S. and ask them to take it into the Apple Store for replacement, then have them ship it back to you. Apple will not accept the International shipment, nor will they ship a replacement phone out of the country where it has warranty coverage.
    There are 4 carriers in Brazil who sell the iPhone, including one which sells it completely unlocked. You probably would have been better off to purchase them there if that's where you live.

  • I have a mac which plays the boot sound but the screen stays black. Recovery mode does not work, as the keyboard is wireless. What do I do?

    What it says in the title.
    I have an older mac and it worked perfectly until about an hour ago when I shut it down because we needed the room dark for a presentation and the screen saver was putting out light.
    Now it won't turn back on. It plays the start up music but the screen stays blank.
    The CMD+OPT+R for recovery mode doesn't do anything, the keyboard is wireless so the command doesn't get to the computer and that's the only keyboard I have since that's the one it came with.
    I'm looking at making a USB recovery disk but it says that I should click on "Options" in the Disk Utility but there is no options button or menu to click.
    From here: OS X: About Recovery Disk Assistant in step 3 I get stuck.
    Also it says that if I make a drive on this computer which has an older OS it might not work on the broken machine with Mavericks.
    This machine literally worked and I turned it off and now it does not work and there seems to be nothing I can do... ***...

    kodemage wrote:
    well, then recovery mode does not work. I've tried all the key combinations I've seen on line. Command+R, Command+Option+R, Command+Option+P+R, none of these work.
    I don't believe there is anything we can do on a forum to help then, you need to take it into a AASP and have it professionaly diagnosed. If you don't know how to locate an AASP in your area you can begin by using Contact Apple for support and service
    Good luck.

  • My MacPro 1,1 will only boot if I resert PRAM each time, and then that does not work each time. When it does boot all is fine. Any idea before I head off to genius bar.

    To boot my MacPro now, I have to go thru the reset Pram. Doesn't work each time. I usually don't turn my machine off. Booting in Safe mode does not work...when it doesn't boot I get only a gray screen, no icons in the screen like bad disk etc. I have replaced the battery. My professor son tells me to setup a new drive internally and install a new system and see if the new OS works. I have 3 internal drives with all data on bays 3 and 4... Bay 1 is the system drive with apps only. I'm 70 miles from the closest Apple store and thought I would ask tonight before driving in.

    Replacing the PRAM ("backup") battery on the machine may be needed.  Here's how, go to page 50 of the user manual:
    http://manuals.info.apple.com/en_US/Mac_Pro_User_Guide.pdf

  • Ipad displays "ipad is disabled connect to itunes", I have tried putting the ipad into recovery mode and then restoring but that does not work. I have also tried doing a hard reset of the ipad and that does not work either. Any ideas?

    Ipad displays “ipad is disabled connect to itunes”, I have tried putting the ipad into recovery mode and then restoring but that does not work. I have also tried doing a hard reset of the ipad and that does not work either. Any ideas?
    My son let one of his friends use his ipad. The next time he tired to use it he could not get it unlocked, I tired to unlock it but it kept telling me that I had the wrong pass code. With out me knowing my son continued to tire until it completely disabled it self.

    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    You may have to do this several times.
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just canceling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • Digital ICE epson scan (professional mode) does not work

    Hello,
    I am running the latest Mountian  Lion OS on my IMAC and have recently started running some test scans with  my Epson Perfection V700 scanner. The supplied Epson software , Epson Scan offers a variety of operating modes, "professional mode" offering the most features. Professional mode offers Digital ICE as an option, however when selected, the Digital ICE does not work.I have compared scans with  and without digital ICE and they are exactly the same. Scratches and dirt are not removed by the scan.
    If I select a more basic mode ("Home Mode") Digital ICE does  work. But this other mode does not offer the range of options offered in porfessional mode.
    Has anyone out there used Epson Scan software?  Has anyone else experienced this problem? Is there other scanning software out there which could fully exploit the features of the Epson scanner I have?  I tried Vuescn and it does not seem to be compatible with my scanner, so that is off the table.
    Dean

    You should first read the user manual that came w/your scanner and/or contact Epson tech support.
    How is the scanner connected to your iMac?  USB cable?  Wireless?  Firewire?
    Has anyone out there used Epson Scan software?
    I have an Epson scanner.  It only work when it's connected directly to my iMac via USB cable.
    Has anyone else experienced this problem?
    Initially.
    Is there other scanning software out there which could fully exploit the features of the Epson scanner I have?
    http://support.apple.com/kb/PH11070 OS X Mountain Lion: Troubleshoot a network printer 
    http://support.apple.com/kb/PH11143 OS X Mountain Lion: Reset the printing system
    http://support.apple.com/kb/HT3669 Printer and scanner software available for download
    What to do when you can't print/scan
    Sometimes, installing the GIMP drivers help with printing/scanning issues: http://gimp-print.sourceforge.net/MacOSX.php

  • Only posted values for Navigation does not work

    Hi,
    I have a problem where all master data is shown in the input help for a variable, even when the setting for the info object is to show only posted values.
    In a WEB template I have tree reports using tree different data providers. The setting in the web template is to show the same variable only once and that works. The setting of the info objects is to show only posted values. That does not work!
    When using the input help for a variable, all master data shows, not only the poster values in the data providers.
    When unchecking the setting Display Same Variable Only Once (MELT_VARBLES) the variables appears tree times each and the input help works as expected. It shows only posted values.
    Any experience of this?
    Best Regards
    Kent

    Hi Kent,
    If you build several queries on different infoproviders, then put them into one web template or workbook. Variables from different queries with the same technical name will get merged in variable screen (Set parameter MERGE_VARIABLES=True in web template property. Set "Display Duplicated Variables Only Once" in workbook settings for variables).
    This means, that it is not possible to decide which infoprovider the variable is based on. The provider is unknown to the system when doing F4 help so that D mode is not possible since D mode [Only Values in InfoProvider]  is also infoprovider dependent. So only M mode ['Values in Master Data Table'] is possible.
    In such merge variable situation, the authorizated values in F4 help is also retrieved without specific infoprovider.
    Regards,
    Nishant

  • Validataion does not work in batch mode

    Hello community,
    We created an FI line item validation for transaction FBV1 that does a validation on a field and displays an error message if the validation fails. We have an RFC that uploads data from an Excel template and runs a BDC Call Transaction to upload and park the document. This worked well when we were on 4.6C but when we upgraded to ECC6.0, the Validation works fine when we manually call the FBV1 in SAP and the Validation DOES get triggered and displays a message if the line item validation fails but when we run FBV1 in batch mode, (RFC which contains a call transaction to FBV1) the validation does not work.
    I set up break a point in the generated program GBTBOFID where the exception error gets triggered and traced the FI Validation. The program will not display the error Validation message when run in batch but when run online, the error message gets triggered.

    Thanks for the prompt reply. I tryied a combination of the following options and did not have much luck with this one.
    Data: x_options type ctu_params.
         clear X_OPTIONS.
         X_OPTIONS-DISMODE = 'A'.
         X_OPTIONS-UPDMODE = 'S'.
         X_OPTIONS-CATTMODE = ' '.
         X_OPTIONS-DEFSIZE = ' '.
         X_OPTIONS-RACOMMIT = ' '.
         X_OPTIONS-NOBINPT = ' '.
         X_OPTIONS-NOBIEND = 'X'.
    CALL TRANSACTION 'FBV1' USING bdcdata options from X_OPTIONS
    After the call transaction the program automatically triggers some SAP generated code for a Validation check for FBV1 line item that we have put in through IMG. The message that should be displayed is in the FI validation check of FBV1.
    I put a break point in the SAP generated code for the Validation where the message should be displayed. The program executes the statement that should raise the exception and display the message. As soon as the statement is executed, conrol returns to the the the SAP transaction FBV1 program and the program continues to finish.
    The statement that executes and does not display the error message is:
    CASE valsevere.
            WHEN  'A'.
              MESSAGE ID msg_id    TYPE valsevere   NUMBER msg_nr
                      WITH msgv1 msgv2 msgv3 msgv4
                      RAISING abend_message.
            WHEN  'E'.    <=== *This option is true and the progam steps
                        " through the following message but does not display it.*
              MESSAGE ID msg_id    TYPE valsevere   NUMBER msg_nr
                      WITH msgv1 msgv2 msgv3 msgv4
                      RAISING errormessage.
            WHEN  OTHERS.
              MESSAGE ID msg_id    TYPE valsevere   NUMBER msg_nr
                      WITH msgv1 msgv2 msgv3 msgv4.
          ENDCASE.
    I should mention that in debug mode, I check the values of msg_id, msg_nr, msgv1 etc. and they all have values of a message class that we have created.
    The above code is in a SAP generated program for FI Validation (GBTBOFI0, include FGBB100R).
    -- We only have this issue when we use the FBV1 transaction in batch mode. Runing FBV1 directly online works fine.
    -- The issue is unique to ECC 6.0 environemnt. We did not have this problem in 4.6C
    Suggestions greatly appreciated.
    Edited by: Rob Burbank on Jan 20, 2010 12:15 PM

  • Expert Mode ViewObject: default 'query by example' mechanism does not work

    In JDeveloper 11G 1.1.1
    I have created an Expert Mode view object(VO) which I'm trying to filter in an ADF Swing Panel
    The Panel contains a Swing Table created by dropping a VO data control on the panel as an ADF bound Swing Table.
    TEST
    Run the panel.
    Set the Query Mode on (from the Database menu)
    Enter a relevant view criterion
    Execute the Query
    TEST FAILS
    Table is refreshed but it still displays the entire VO collection (non-filtered).
    Repeating the same experiment with a default, entity object generated VO works as expected.
    Question
    Can the default 'query-by-example' mechanism as provided by the JUTestFrame and the JUNavigationBar be used with Expert Mode view Objects?
    If yes are there any tricks to making this work?

    Hello Frank;
    Additional TEST RESULTS
    In JDev11G
    The default 'query by example mechanism' does not work if you create a new View Object using the <Select data source...> option <Read-only access through SQL query>.
    However, IT DOES WORK if you create a new ViewObject selecting <Updatable access through entity objects> and in the Query step you select <Expert Mode>
    Could you please check and confirm.
    Thanks!
    Ioannis
    Edited by: imouts on Dec 5, 2008 1:38 PM

  • 7.1.2 update failed. Now my iPhone 5 is in recovery mode and hard resetting does not work for me. iTunes also will not detect my phone now

    I did my 7.1.2 update via iTunes. Half way through it stopped working saying it does not detect my phone. Now my iPhone 5 is in recovery mode and hard resetting does not work for me. iTunes also will not detect my phone now

    Thank you SO very much for posting this. I had the exact issue with my iPad Mini after the same upgrade. Hard reset failed, computer would not recognize iPad. I had read all the other instructions and nothing worked.... YOUR SOLUTION WORKED FOR ME - with a slight variation.
    I followed your lead and connected my iPad Mini to another computer, fired up iTunes, it saw the iPad Mini in Restore Mode and allowed me to go into Restore (yes, it wiped all of the data but I have a back up on the other computer that would not see it after the failed update). It installed the latest iOS 7.1.2 as well. I then disconnected it from that computer, reconnected it to the computer that would not see it prior and it then saw it as a new iPad and allowed me to Restore my backup and now it's all good!
    I detailed my steps only because you downloaded the previous version - 7.1.1 whereas I downloaded the latest version (7.1.2) and then restored my back up.

  • Sleep Mode in Windows 10 Does not work

    Ever since I upgraded to Windows 10 Sleep mode does not work properly when closing the lid or pressing the shutdown button when you set these to sleep.  I have updated the BIOS, Intel Chip Set Drivers, and Video Driver to the latest.  All HP and Windows UPdates installed. Problem is not everthing goes to sleep, typically my ethernet connection, audio and fan stay on.  Must use the Power Button and Hold to recover.  Each time I close the lid and open it I have a black screen.  I can tell when it is not going to sleep by noticing the Ethernet jack is still lit and the fan making noise after closing the lid or pressing the power button. Here's the kicker, make a change to any of the power settings, save and come back into them and reset to sleep and it will work with the lid ONE TIME ONLY.   There after its back to never working, never fully sleeping and having to reboot. Need Help.

    I just discovered that HP has posted a new support page for people who are having issues with the computers after converting to Win 10. I was particularly interested in the section on issues with Sleep/Hibernation and found this whole page: http://support.hp.com/us-en/document/c03383935 Looks like apart from the driver issue, it could be that the settings in the Device Manager for your KEYBOARD are not set correctly!!! - yeah, that's what I said.  Anyway, the full resource is located here and may be of some help. http://support.hp.com/us-en/document/c04773236/ PS: I also checked to see if there were new drivers for my notebooks and see that it has now been two days since they were last updated. Perhaps there is hope!

  • With IOS6 3G does not work.  This has already happened with IOS5.1, was only solved with IOS5.1.1.  More anyone have this problem? How do you solve?

    With IOS6 3G does not work.
    This has already happened with IOS5.1, was only solved with IOS5.1.1.
    More anyone have this problem? How do you solve?

    This response is a little late as I just read about your problem. I have a 2012 Dodge Charger and a 2012 Chrysler Town and Country and both worked flawlessly with the iPhone 5s my wife and I had. However, we just upgraded to the iPhone 6 and Uconnect will receive calls but you cannot answer them. You can callout successfully, however. the annoyance being the inability to answer incoming calls in the HandsFree mode.

Maybe you are looking for

  • Assign ECC logical component

    I have a problem to assign logical component to my ECC system in t-code SMSY. Every other system works fine... Please help me with some new things to try!

  • How to charge an iPhone4 in Italy?

    My daughter will be visiting Italy soon and she will be carrying her iPhone4 and the charger with her. How can she get it charged there? I have been told the Apple charger she uses in USA will work in Italy, but she will need an adapter. Can someone

  • HT4859 How to move songs back up to iCloud?

    I have iTunes Match and had my entire music library stored in iCloud. Recently downloaded a few songs from iCloud music library back to my computer.  Now I want to put them back up in iCloud. How do I do that?  Because if I try to include any "downlo

  • Import error: ORA-00001:unique constraint (FLOWS_030100.WWV_FLOW_FLOW_PK)

    Hi community, I got an awful application import error. ORA-20001: GET_BLOCK Error. ORA-20001: GET_STMT error. ORA-20001: Execution of the statement was unsuccessful. ORA-00001: unique constraint (FLOWS_030100.WWV_FLOW_FLOW_PK) violated &lt;pre&gt;--a

  • How to have in GR Returns: Triggered Lot Stock Relevant,Stock non valuated

    Hi , For every cusotmer return -the lots-having Stock with it. So lot should be Stock related.But Stock should be unvaluated. So that once our quality dept. do usage decision , the Usage decision post this QI stock to unrestricted or for reject on ot