Emboss algorithm in BlackBerry?

Hello

Someone has an Emboss algorithm if possible then gave me idea or code.

Thank you.

Had only a very quick look, but these lines look bad for me:

A = pixels [q] [r] > 24;
R = pixels [q] [r] > 16;
G = pixels [q] [r] > 8;
B = pixels [q] [r];

Delete from here, you do not need in this loop.

The others should be anded with 0xFF, for example:

R = (pixel [q] [r] > 16) & 0xFF;

I would also change this:

A = pixels [1] [1] > 24;

TO

A = pixels [1] [1] & 0xFF000000;

Then use it later:

ARB [y * width + x] = A | R< 16="" |="" g="">< 8="" |="">

I hope this helps.

Tags: BlackBerry Developers

Similar Questions

  • SSL certificate has expired for the endpoints BlackBerry push last Thursday!

    There is a generic cert used for endpoints BlackBerry push Eval expired last Thursday.  My embed code for the push service is the appropriate certificate validation and can no longer send.  I checked several end points of cpNNNN.pushapi.eval.blackberry.com and they all share the same expired SSL server cert (no wonder they are shared, surprisingly it is expired).

    To test:

    OpenSSL s_client-connect cp4714.pushapi.eval.blackberry.com:443

    Expansion: NO
    SSL-Session:
    Protocol: TLSv1.2
    Encryption: RC4 - SHA
    Session ID:
    Session-ID-ctx:
    Master-Key: E6D069A6416C5672A99B5D7FA4482190D03E9E14985FE2EB33AF51C580151200490CB06874412C62DAA945A35EA2BE22
    Key - Arg: no
    Krb5 main: no
    PSK identity: None
    PSK identity hint: None
    Start time: 1402341727
    Timeout: 300 (s)
    Check the return code: 10 (certificate expired)

    Cert server returned:

    Certificate:
    Data :
    Version: 3 (0x2)
    Serial number:
    5b: 49:CB:40:09:A7:D3:FB:72:F2:EE:4 b: 97:39:28:47
    Signature algorithm: sha1WithRSAEncryption
    Issuer: C = US, O is Thawte, Inc., CN is Thawte SSL CA
    Validity
    Not before: Jun 5 00:00:00 GMT 2013
    Not after: June 5, 23:59:59 GMT 2014
    Subject: C = CA, ST = Ontario, L = Waterloo, O = Research In Motion Limited, OU = IT, CN is *. pushapi.eval.blackberry.com

    ETA on when a new server certificate will be installed on endpoints pushapi.eval.blackberry.com?

    Seems now fixed.  New certificates of June 11 00:00:00 GMT through 11 Jun 23:59:59 GMT 2014 2015 are in place.

  • Related issue of encryption-decryption Leap blackBerry!

    Hello

    In Blackberry Bond can encrypt us our data twice?

    Means that if I hello.txt in the sd card before use "Setting--> security" and privacy--> encryption--> Media Card Encryption Can quantify us this txt file using some application designed by Blackberry developer means app in Blackberry World or some other developer SNAP etc.?

    I thought of the computer which is very common that twice or three times of encryption-decryption with different algorithms, maybe I'm wrong, because there is no special data used by me except songs movies & cats!

    But as a software developer, I'm curious about encryption!

    Use AES-256 encryption & according to EETimes Blackberry claim huge time to break the encryption that made by AES - 256!

    But today I read new Dutch police 'reading' Blackberry emails

    If good authority can crack the encryption, then the bad guys also do!

    His Blackberry user feeling very precarious specailly passing other manufacturers of mobile because the only reason that is 'Blackberry is security'!

    What is this opinion experts forums or views?

    The response of BlackBerry indicates that this was 'communications' are involved. Depends on communication and used security measures.

    BlackBerry has published white papers on BBM. Those that can be found. I don't know later. E-mail will depend on the employee by the two sender security measures a receiver. Communication on the other has will depend on employee safety by the app. And finally it depends on the operational safety of the users.

    My feeling is that he is a third-party application.

    In any case, Yes, if you have an application that encrypts it's own data on the device or crypt individual files, I see no reason that could not be used in conjunction with encryption devices. I don't know that it adds anything. My there are advantages and disadvantages of encryption of file by file versus encryption of the system, but that's another question.

  • Update of the link Blackberry software blackBerry

    I use a Z10. Secunia PSI has indicated that a new version of the Blackberry Link, 1.2.4.39 is available. I currently have 1.2.3.56. I can not find the new version anywhere and when I go to the Web from Blackberry site and click on the link for Blackberry link I'm always redirected to a page that says that the connection cannot be authenticated.

    (Secure connection has no

    An error occurred during a connection to swdownloads.blackberry.com. Cannot communicate securely with counterpart: no common encryption algorithm. (Error code: ssl_error_no_cypher_overlap)

    The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
    Contact the Web site owners to inform them of this problem.)

    Therefore, I have no way to access the download.

    Is there an available 1.2.4.39 and if so, how can I access it? Thanks in advance for your time and any assistance provided.

    The site for download is blackberry.com/blackberrylink

    If you are unable to access for some reason, it's probably an ISP issue.

  • Encryption on Blackberry?

    I have an application developed on BlackBerry JDE 5.0.0, that encrypts a string using THE algorithm with ECB mode. After encryption, the result is encoded by base64 encoding. But when I compare the result I get my encryption method with the result I get on the cipher engine online, he always gives different results on the last character to many. I tried to decipher the result I get form my method of encryption with the engine encriptor online and it seems that the result is not that valid. So, how can I solve this different result on the last character to many?

    Here my code of encryption method:

    public String encryptDESECB (String text) throws MessageTooLongException
    {

    Byte [] input = text.getBytes ();
    output byte [] = new ubyte [8];
    Byte [] uid = null;
    UID = "431654625bd37673e3b00359676154074a04666a".getBytes ();
    DESKey key = new DESKey (uid);
    Try

    {

    Engine DESEncryptorEngine = new DESEncryptorEngine (key);
    Engine.Encrypt (input, 0, output, 0);
    String x = BasicAuth.encode (new String (output));
    System.out.println ("AFTER ENCODER" + x);
    return new String (x);

    }

    catch (CryptoTokenException e)

    {

    return 'NULL ';

    }

    catch (CryptoUnsupportedOperationException e)

    {

    return 'NULL ';

    }

    }

    The channel I want to encrypt is '00123456' is the result I get my encryption method: YnF2BWFV/8w = the result I get engine cipher online (http://www.tools4noobs.com/online_tools/encrypt/): YnF2BWFV9sw = the result I get Android (with the same cipher & method): YnF2BWFV9sw =

    Here is the code on Android:

    public static String encryptDesECB (String data)

    {

    Try

    {

    DESKeySpec keySpec is newDESKeySpec ("431654625bd37673e3b00359676154074a04666a".getBytes ("UTF8"));.

    SecretKeyFactory keyFactory is SecretKeyFactory.getInstance ("DES");.
    SecretKey key = keyFactory.generateSecret (keySpec);

    ENCODE String plainTextPassword
    Byte [] plaintext = data.getBytes ("UTF8");

    Encryption cipher = Cipher.getInstance("DES/ECB/NoPadding");
    Cipher.init (Cipher.ENCRYPT_MODE, Key);

    Logger.log (log.info, new String (cipher.doFinal (cleartext)));

    String encrypedPwd = Base64.encodeToString (cipher.doFinal (cleartext), Base64.DEFAULT);

    Logger.log (log.info, encrypedPwd);

    Return encrypedPwd;

    }

    catch (System.Exception e)

    {

    Logger.log (e);
    Returns a null value.

    }

    }

    Thanks for the research of Peter. I already found my mistake. It turns out my BasicAuth method is not the right one for the encoding of the encrypted string. Now I use the class a Base64 encoding and it runs very well. It produces the same string that android and online the cipher engine.

  • How to sort a table double in blackberry?

    I need to sort a double table containg frequencies. I have java we can do by the method "Arrays.sort (). But Blackberry does not support table double sorting with this method. Someone has any idea how to do? Thank you.

    implement your own sorting algorithm must be covered by each course programming first half, I'm sure you can find many of them online.
    If this sounds too awkward, you could use instead of double [] objects and set up your own comparison.

  • String of Smartphones blackBerry, invalid certificates after the upgrade to Blackberry Messenger on torch

    I've recently updated my BBM to version 7.0.0.126 by suggestion in Blackberry App World. After the upgrade, I am getting an error on the screen every two minutes. It reads:

    "You are attemptiing to open a secure connection, but the string server certificate is not valid."

    When I click on "View certificate" I get this information:

    X *. VoIP.BlackBerry.com

    Unverifiable Cert Chain

    Status of string stale

    Revocation status: unknown

    Status of trust: trust explicitly

    Expiration date: Saturday, November 9, 2013 18:59:59

    Certification type: X 509

    The public key type: RSA 2048

    Object: CN = *. voip.blackberry.com; OR: IT; O = Research In Motion Limited. L = Waterloo; ST = Ontario; C = CA

    Issuer: CN is Thawte SSL CA.; O = Thawte, Inc.; C = US

    Serial number: 1679 4F1B FB86 F194 CA7C AA89 432 7433 has

    The key usage: Digital Signature; Encryption keys; Server authentication; Client authentication

    Signature algorithm: RSA_PKCS1/SHA1

    SHA1 Thumbprint: 66 4 86AB CF52 9023 C563 C776 813D C9D5 B18D 053D

    MD5 Fingerprint: 933 1 12 2 81 24A 7 E35A B117 48F9 48F9

    I made sure that I got everything updated on my Blackberry. Yet the problem persists. I'm on a package version 6.0 of Blackberry Torch 9800 695 (v6.0.0.246, platform 6.4.0.105). When I click "Software updates" under Options, I get: "your BlackBerry is up-to-date.

    The error message is driving me crazy and sometimes it is even difficult to get any use out of my phone because it appears whenever he wants, without worrying if I type an e-mail, in contact with someone on BBM or navigation.

    How can I get the error message stop popping up?

    Hey Netzimon,

    When you receive this error message is your BlackBerry smartphone connected to a Wi - Fi network, behind a firewall? If so, please see the following article:

    BlackBerry Messenger Voice Chat using a firewall

    http://BTSC.webapps.BlackBerry.com/BTSC/KB33102

    Let me know if it helps.

    Thank you.

  • What is the algorithm of outer glow 'soft '?

    I'm trying to implement some effects in C++ for my UI controls. I realized that the Layer Styles Photoshop uses a form of anti-aliasing of the transformation of Euclidean Distance for "Precise" (inner glow and outer glow) techniques.

    But what is the method used for the technique of 'Soft' outer glow and inner glow? It seems that this is also used for "Smooth" technique the computation of map of the height for bevel and Emboss.

    Pointers would be appreciated!

    Wow, thanks for all the help people. After a lot of risk of tearing of hair and some collaborations, I finally thought to it:

    (1) make an accounting on the areas that require compositing, based on the offset of the shadow, the morphological expansion and cutting to the destination.

    (2) expand the mask to grayscale using a metric of chamfer 5,7,11 (the original G. Borgefors algorithm is adapted). Output 8 bit fixed point.

    (3) apply the blur of the box.

    (4) apply to the 1 to 1 curved contour function, conversion to 8-bit alpha values in the range 0-255.

    (5) fill the destination image using the color of the drop shadow, calculated 8-bit alpha channel, blend mode and opacity effect.

    Thanks for nothing!

  • iTunes and Blackberry link conflicts

    Hi, link to Blackberry stopped working after the last update of iTunes in Windows 10.

    I made Blackberry suggest workaround solution, as follows:

    "Rename the file of l iTunesPrefs.xmand restart the BlackBerry link application.

    Please note: Completing the steps below may have harmful effects on the functionality of iTunes. For more information, contact Apple support.

    To rename the iTunesPrefs.xml;

    1. Turn on the Show hidden folders and files
    2. Go to \AppData\Roaming\Apple Computer\iTunes\ < username > C:\Users\
    3. The XML in the file iTunesPrefs and rename it to iTunesPrefs.old

    Once finished, he recommends to disable display the hidden files and folders. »


    My question is, how will this affect iTunes functionality, or not at all?



    Rename iTunesPrefs.xml will reset various settings in iTunes. If your library is < user music > \iTunes default path and you have the options to keep... and copy... enabled, you may not notice a change, but the parameters that will have been reset include the active library, media folder file, sharing of XML, the import settings, etc. Check through each tab in Edit > Preferences to see if there's anything to change the way that you had it before.

    TT2

  • Download &amp; install on BlackBerry Smartphones

    I can't download and install on my Blackberry 8520 Smartphone with Java RIM (Research In Motion). How can I? Thanks in advance!
    Floriane Moges Ahmed, Ethiopia.

    As far as I know, there is no version of Firefox for Blackberry, sorry.

  • Offers Firefox for the Blackberry operating system soon?

    I LOVE Firefox and refuse to use anything else... except when I'm on my phone and Tablet because I have Blackberry devices. So, please don't tell me that you don't plan on a version of BB! BB is perhaps not the most popular thing, fashion, hipster out there, but they're not going anywhere. It bounces just my mind because BB is not 'the cool thing' that most of th etime apps do not come with a version of BB - light - BE DIFFERENT FIREFOX... BB and while you're there make 64-bit also if I can use you to work on my brilliant Windows 7 Ultimate 64 set up... Thank you!!

    I'm afraid that I don't have encouraging news for you. The last time I saw a specific comment has been in this thread about 4 months ago: https://support.mozilla.org/questions/1037247#answer-666852

  • I want to add local cryptographic algorithms to firefox. What I need to change except NSS?

    I want to add some local cryptographic algorithms to Firefox. I know that I have to modify NSS. I can, for example, change only NSS and use this library in the browser, or should I do something else with Firefox?

    You can try to ask for advice in the press group
    Mozilla.dev.Tech.crypto - Google Groups:

  • Sync Thunderbird with Blackberry address book

    Is there a way to do this?

    I use Google Contacts. Thunderbird and Blackberry can access the Google Contacts associated with a Google account.

  • I want to copy my contacts from my blackberry curve 9000 on my computer

    I realize pretty lame, but when I connect my phone to my laptop I do not know what to do next-

    Hello pjmcq, you post in a forum of support for the firefox browser. However your question seems to be related to firefox in particular, we will probably not be able to help you with that.

    Please try to contact blackberry instead support resources for help with this issue. Thank you for your understanding!

  • Firefox for Blackberry

    Is there a Firefox for Blackberry?

    BlackBerry 10 and the oldest BlackBerry Tablet OS for PlayBook is based on QNX. Once long ago, you could build Firefox for QNX, but support for QNX has long been removed from the Mozilla source tree.

    Pouvez power you to sideload the Android version that some research shows that it can work on BB10. Saw the reviews than 24.0 23.0 or even worked but shared the latest do not for example with the symbolic method of debugging.

Maybe you are looking for

  • No iTunes game do not forget your library after lapse in Service?

    The hard drive of my iMac 27 "recently failed, taking my library of music with it.  Previously, I was a customer of iTunes game, but let the service lapse a year or two ago.  If I reactivate the service, the songs that I had been previously followed

  • Update of Yosemite and faxes from a colorMFP CM1415fnw

    During the upgrade to Yosemite my MFP will print and scan but is no longer Telec.  Faxes go into a dialog box fax with a forthcoming warning box: you must install the software to use this printer. To install the software, choose software update from

  • (Supposed) USB power problem

    I have two USB ports on my MacBook Pro 2012.  The front one works perfectly well.  Aft, we recently started to react as follows: (1) with an iPhone: not recognized at all. (2) with a drive USB-powered external hard: it loads, but disappears from my o

  • corrupt Capitan bootcamp update

    Solitary (continuing from Re: haywire Bootcamp went after Yosemite update) I am facing the same problem when I upgraded to OS X EL Capitan. Here's my setting prashanths-MacBook-Pro: meanHelloWorld pranag$ sudo gdisk/dev/disk0 Password: Sorry, try aga

  • System without disk recovery

    Hello I received a computer without recovery disks.  I looked into Acronis True Image and I don't know if that's what I need.  I was wondering if I put all my files on DVD and if my system crashes, load them onto my Windows Partition main DVD, will b