POR Conastants for a specific workflow

Hello

I do the mixture on both images. Mixture should arrive so that, if there is one pixel of source other than white it should be worn on the destination without any mix. If there are white pixels in the source and there is a destination pixle which has one color other than white, the destination pixels should not be disturbed.

Basically what I need, is if there are certain areas of the source image with the white pixel, that should not replace the pixels in the destination. All the other area should be as regular source copy.

I'm looking for a constant specific rop for this operation.

orgGraphics.rop (Graphics.ROP2_DSa, x, y, ropBmp.getWidth (), ropBmp.getHeight (), ropBmp, x, y);

works very well, but he's getting married also two colors even if the source is non-white.

After a bit of sleep, I see now that with the help of ROP_SRCMONOEXPAND_COPY was not my most brilliant suggestion. It uses a monochrome bitmap as a mask to draw the foreground color - sort of a stamp. Not at all what you want.

It seems to me that you want to draw the source of the image as if it were completely transparent to its white pixels. I think that the best way to do it is to create such an image of the source. Maybe something like this (not fully tested) will work:

int OPAQUE_WHITE = 0xffffffff;int TRANSPARENT_WHITE = 0x00ffffff;int w = src.getWidth();int h = src.getHeight();int [] pixels = new int[w * h];src.getARGB(pixels, 0, w, 0, 0, w, h);for (int i = 0; i < pixels.length; ++i) {    if (pixels[i] == OPAQUE_WHITE) pixels[i] = TRANSPARENT_WHITE;}Bitmap src2 = new Bitmap(Bitmap.ROWWISE_16BIT_COLOR, w, h);src2.createAlpha(Bitmap.ALPHA_BITDEPTH_MONO);src2.setARGB(pixels, 0, w, 0, 0, w, h);

Then just use drawBitmap with in/on dest src2. If I had the right of logic, the white areas of cbc2 should not draw.

I don't know if creating a new image of CBC will cause a drop in performance. Maybe you can cache src2 if the very image of the CBC is reused.

Tags: BlackBerry Developers

Similar Questions

  • Paths multiple settings for a specific LUN

    Hello

    I'm a workflow in Orchestrator automatically add a new data store in a cluster.

    This set works but I have set the parameters of Multipath for this specific to Round Robin on each host LUN.

    I created the code that affects all LUNS Round Robin, but it must be for this specific LUN only.

    Can someone help me with this?

    It's the current code I have:

    var mpp = new VcHostMultipathInfoLogicalUnitPolicy() ;
    mpp.policy = "VMW_PSP_RR";
    
    for each (var host in hosts) {
      for each (var lun in host.config.storageDevice.multipathInfo.lun) {
      var id = lun.id;
      host.configManager.storageSystem.setMultipathLunPolicy(id, mpp);
      }
    }
    

    I have the "naa", so I can do the check, but I can't do the "naa" of the multipathInfo.

    I tried to use:

    lun.lun.displayName

    lun.lun.canonicalName

    lun.lun.deviceName

    But it gives 'undefined' output

    Example of output:

    [11:12:18.346 2013-12-27] [D] LUN.id: 020003000060050768018086e430000000000003f1323134352020

    [11:12:18.346 2013-12-27] [D] LUN. MON: key - vim.host.ScsiDisk - 020003000060050768018086e430000000000003f1323134352020

    [11:12:18.346 2013-12-27] [D] LUN. LUN.displayName: undefined

    [11:12:18.346 2013-12-27] [D] LUN. LUN.canonicalName: undefined

    [11:12:18.346 2013-12-27] [D] LUN. LUN.deviceName: undefined

    Hello

    I can't get the details that you listed at the bottom of your message, too!

    But when you have a quick glance at the LUN ID you extracted, you can see that the naa.XXX is included in there.

    So I think it should be possible to extract this number, here is a small example of my environment:

    Lun.ID = 0200bf000060060e8016546b000001546b00006abf4f50454e2d56

    NAA = naa. 60060e8016546b000001546b00006abf

    Extraction:

    var myNaa = lun.id.slice(10,42);
    System.log("My Naa: naa." + myNaa);
    

    In your code, it might be something like this:

    var mpp = new VcHostMultipathInfoLogicalUnitPolicy() ;
    mpp.policy = "VMW_PSP_RR";
    for each (var host in hosts) {
      for each (var lun in host.config.storageDevice.multipathInfo.lun) {
        var id = lun.id;
        var myNaaExtract = lun.id.slice(10,42);
        if(myNaaExtract.search("60060e8016546b000001546b00006abf")!= -1) {
          System.log("Found the matching NAA...");
          host.configManager.storageSystem.setMultipathLunPolicy(id, mpp);
        }
      }
    }
    

    You may need to change the 'slice' to correspond with your table (using other numbers 10 and 42) and of course online 7 "id naa".

    I hope this helps for you...

    Kind regards

    Marc

  • Locking of preferences for a specific profile

    Hey,.

    Is there a way to lock preferences only for a specific profile and not in the world (for all profiles, as in this guide: http://kb.mozillazine.org/Locking_preferences )?

    I do not, but there is an easy solution, use, install an additional Firefox. Using the accounts of the OS it is possible for users restricted to use the limited and locked installation of Firefox prefs.

    See

    You may install multiple copies of the version of Firefox in the same way.

  • ITunes cannot locate the music for a specific artist

    All my music does not appear on my computer and my itunes, except one of my artists. Their albums/songs appear in itunes, but they may not be located on my computer. It is the music of a single artist and two albums. It allows me to play the songs on my ipod, iphone and ipad, but when I try to play music on my computer, it displays an exclamation point and the custom find or play. What should I do?

    The exclamation point means that it cannot locate the files in the iTunes Media folder.

    Looking for a specific file in Spotlight. Since you know what an artist is missing, search for this artist, album or song using Spotlight. If it's on your computer, projector find. All the music files in iTunes should be in the music folder. Open the Finder, click go > go to folder and paste the following text:

    ~/Music/iTunes/iTunes Media/Music

    Or, if you think it has been moved out of the folder of music, just look in the iTunes Media folder. It could have been placed in the right folder

    ~/Music/iTunes/iTunes Media

    If you have a backup with Time Machine, you can also enter Time Machine and restore the file (assuming that she has been saved before he disappeared).

  • Is there a way to search for a specific word in a text file on an iPhone?

    I just bought an iPhone 6 Plus and have some TextEdit/RTF files in iCloud. I opened one on the phone butI cannot know how he search for a specific word or group of words. Is there a way to do this?

    Thank you.

    You open files with what app?

  • How can I remove a "do not disturb" sign for a specific contact? Their messages will not appear on the screen of my phone when it is locked

    How can I remove a "do not disturb" sign for a specific contact? Their messages will not appear on the screen of my phone when it is locked

    kochetova01 wrote:

    How can I remove a "do not disturb" sign for a specific contact? Their messages will not appear on the screen of my phone when it is locked

    Go to the message - details - do not disturb - off

  • Search in table 1 d for a specific table

    Hello

    I have a 1 D table list consists of series of 1 and 0. Consider the size of this data table is 1000

    Now I would like to find in this table for a specific as model 00110101 or random sequence. While there could be more than 1 match in the table 1 d

    and I would like to get the index of the first element for all matches.

    Would you please help me with this code. First of all how can I search for an item in table not only a (search1D array.vi no) and also how do I get the index for this game

    Thank you very much

    I have a table of data consist

    Brute force

    For loop (no automatic indexing)

    On the inside of the loop get subset of table a clue to a length of time set all search pattern.

    Table pattern equal subset? If true for loop iteration is the index of the mapping table.

    Repeat until the end of the table - length pattern + 1 times.

    Try it and your zip code.

  • Can I link an LED on front panel for a specific element in an array of Booleans?

    In LabVIEW 2010, I have a string of LED. I and array of boolean values that contain the values that the LEDs have to indicate.

    What is the best way to connect the LEDs to elements in the array of Booleans?

    Can I link an LED on front panel for a specific element in an array of Booleans?

    How this is done?

    Can someone show the code example?


  • Not able to search for a specific file name in Vista

    I can't search for a specific file name. When I search for a specific name, the text I type get numbers instead of letters of type I.

    Hi royfarnol,

    1. what file you want to search?
    2. What are the numbers that rises instead of text?
    3. it happens with all file search?

  • I'm trying to search for a specific file. ____

    I'm looking for a specific 028.Natalia jpg file. No matter how to search for all jpg numbered 028 in it rises, 216 at all how can I only 028.Natalia jpg or jpg be coming alone?

    I think that this program can help you.

  • How to change the password for the service account for a specific application?

    PC is used by some employees at the workplace.

    A user has installed an application on this PC, all users can use this application with user password this person who has installed.

    After that the user who has installed an application has changed the password, the Application is locked.

    I heard that need to change the password of the service account for a specific application.

    How to do?

    Advice me please.

    Thank you

    It depends on the application itself. You could check the FAQ of the application or to re - install the application and ensure that it is available for all users of this machine.

  • Can I search all my documents for a specific keyword?

    I am looking for a document and I do not know the title but I know what I'm looking for inside. It's a Word Doc and I wonder if I can search for a specific keyword, so I can find the document.

    For example; A document contains information about a plant and the plant makes computers. Could I search for "Windows OS" If the document has a "Windows OS" inside? (A line maybe say "all computers will have a Windows OS".)

    You can search for Documents, via the Explorer, but such a text search for "Windows OS" may reveal multiple occurrences

  • Filter for a specific value object type

    I would like to know if the documents loaded on an object type can be interrogated for a specific value. For ex, I wanted to fetch all the records of the emp and load it into an object. I wanted to ask the object out of the loop to query for a specific deptno. I understand a query simpe SQL would be much faster in the scenario below, but the report itself used in our system uses several tables and some of them have millions of records from different sources as accounts suppliers, accounts receivable, accounting, etc. and they are treated differently for each source before that the result will be published the report. I took the table emp for example and wanted to know if the type of object can be queried for a specific column outside the loop.

    DECLARE

    CURSOR cur_emp IS SELECT * FROM EMP;

    TYPE emp_obj IS TABLE OF cur_emp % ROWTYPE INDEX BY PLS_INTEGER;

    l_emp_tab emp_obj;

    BEGIN

    OPEN cur_emp.

    LOOP

    Get the cur_emp COLLECT LOOSE l_emp_tab LIMIT 1000;

    EXIT WHEN l_emp_tab.count = 0;

    BECAUSE me IN 1.l_emp_tab.count

    Loop

    dbms_output.put_line (' Ename:' | l_emp_tab (i) .ename |', Deptno:' | .deptno l_emp_tab (i));

    END LOOP;

    END LOOP;

    -Can I ask specific employee to a deptno outside the loop FOR without using a temporary table

    -something like "SELECT * FROM TABLE (type_name) WHERE DEPTNO = x_Deptno.

    END;

    /

    In a collection of table selection is not effective, there are better ways to do it.

    Why not create a view?

    create view...

    Select * from source1 Union all the

    Select * from source2 Union all the

    Select * from source3

    -or-

    Using ref cursor return... clause, so you can make conditional cursors

    If somecondition then

    Open the NEWS for

    Select * source1;

    on the other

    Open the NEWS for

    Select * from source2.

    end if;

    -or-

    Dynamics based SQL ref cursor

    DECLARE

    TYPE EmpCurTyp IS REF CURSOR;

    v_emp_cursor EmpCurTyp;

    employees emp_record % ROWTYPE;

    v_stmt_str VARCHAR2 (200);

    v_e_job employees.job%TYPE;

    BEGIN

    -Dynamic SQL statement with placeholder:

    v_stmt_str: = ' SELECT * FROM employees WHERE job_id =: I;

    -Open the cursor & specify bind argument in the USING clause:

    V_emp_cursor OPEN FOR v_stmt_str with the HELP of 'MANAGER ';

    -Extraction of the lines of result set one at a time:

    LOOP

    SEEK v_emp_cursor INTO emp_record;

    EXIT WHEN v_emp_cursor % NOTFOUND;

    END LOOP;

    -Close the cursor:

    CLOSE V_emp_cursor;

    END;

    /

    -or-


    Load in an intermediate table (as a temporary table)

  • Looking for a specific phrase within a document.

    I use Windows 8, I used to be able to search for a specific phrase within a document by using the file Explorer.  This no longer works.  I'm looking for an expression as ZONE-14-D search returns anything that has all the combinations of these letters.  Is there something I'm missing in the search parameters?

    In this case I will try to rebuild the index it uses to search for.  First of all, to run this diagnostic Auto search.

    (1) open Control Panel by typing Windows + X

    (2) type "disorder" in the search box and go to the troubleshooting section that appears

    3) go to system, then click on find and fix problems with Windows Search

  • Is it possible to easily view the status of the approval process for a specific campaigns without having to open it?

    Hello

    Is it possible to easily view the status of the approval process for a specific campaign without having to open it?

    Thank you

    Hello

    Yes. Campaigns launch area, select open an existing campaign.

    Thank you

    edynamic expert Eloqua

Maybe you are looking for

  • A WiFi Assist with several available Wi - fi networks

    Wi - fi Assist workpieces of an wi - fi on an another wi - fi or is it just a cellular wireless connection? Perhaps a combination?  Maybe it switches to wi - fi to cellular and then back to wi - fi (another)? I ask because I noticed that my devices -

  • files and folders .jpg

    To the research. JPG had 6 035 listed - some came from my camera, some images and some of those OKBridge who played OK. I have no idea how these people came on my computer because they are just online. How do I delete some of them, and how can I keep

  • Could not import all the Favorites in IE 8

    Recently experienced the premature death of all new hard drive, but was able to save the files including the IE Favorites on a flash drive.  Now, try to import the Favorites in IE 8 (there are 1 500 +, separated in subfolders).  Export the main folde

  • HP Pavilion 23-p030na: preset internet homepage.

    Can someone tell me what the preset address home page is on the HP Pavilion 23-p030na all in one office, one of my grandchildren has change and I can't get it back. It will display a picture every day somewhere in the world and not the charge of adve

  • Missing non-Plug-and-Play driver?

    I get a message that MpKsl052983e0 is absent or does not have all the installed components. What is - this and how do I get it? I have a Toshiba NB505 mini notebook (a netbook) with Windows 7 Starter, which is maybe 3 years old. Any help will be grea