Draw texts or Images as background in camera

Hi all, I want to create a BB10 application that uses the camera feature.

Can I draw a text or pictures in the background in the camera?

I thank you all.,.

I think you wanted to say overlay and not background? connection with the camera will cover probably the majority of the content displayed on the screen...

If you meant overlay, check out ForeignControl:

https://developer.BlackBerry.com/Cascades/reference/bb__cascades__foreignwindowcontrol.html

and the following sample app:

HelloVideoCamera

Just add content on top of the foreignwindowcontrol

Tags: BlackBerry Developers

Similar Questions

  • Designed the large page background color/text and images. Seems ok, but when I send pdf the background page is much too small.

    Designed the large page background color/text and images. Seems ok, but when I send pdf the background page is far too small - the drawings are ok.

    Send to the printers tomorrow but pdf does not appear correctly! Any ideas? Please, I beg you!

    Please tell us

    -This page - is that he recorded in a graphic file? What type? If not, where is it?

    -How exactly do you send as PDF - what app do you use? and what are the measures?

  • Draw text on the graphic waveform Plot

    I need to understand how to draw text on a waveform graph during execution. This could be a text box, a picture of the text, a label and an additional plot with text... etc.

    Yes, I know a graph would be better than this, but need to use a graphic for my application.

    The graph is updated every second, and new data are added to the history of the ranking. (Which means that the chart bigger every second) So if I draw the text above or behind the table, I'll have to update their location every second. I'll have to use card to XY Coords in an event, (mousedown or mouseup) to place the text (or image of the text) in the field where the user clicked.

    Step 1 to resolve this problem is to find first class, learn how to draw or text on the plot of the graph area.

    Does anyone have ideas of how this could be accomplished, or some ideas of a sneaky work around to make this work?

    Example:

    Unfortunately, graphics (graphic and graphic waveform XY) have support Annotation and slider, exposed programmatically through properties, but the array of waveform is not.

    What you could do is to place an indicator of 2D image that corresponds to the size of the chart above.  Make the value of the image that you draw be transparent and just print the text with transparent backgrounds.  However, I do not know the considerations on the performance of it - many times user interface elements, overlap (portions of even transparent) can cause problems of performance due to forcing redesigns... then again maybe a graph is always be redrawn in any case.

  • drawing text on BitmapField

    Hi all

    I'm having a problem with BitmapField.

    I'm tring to draw text on the scope of the Bitmap.

    The purpose of this is that if the field has the focus, change image and attract white text and vice versa.

    But it seems that the text drawing image behind.

    Please help me on this.

    Thank you

    DK.

    Here is the code:

            ttsField = new BitmapField(tab_off, BitmapField.FOCUSABLE|BitmapField.FIELD_RIGHT|
                    BitmapField.FIELD_VCENTER)
    
            {
                protected void layout(int maxWidth, int maxHeight)
                {
                        super.layout(tab_on.getWidth()+2, tab_on.getHeight());
                        setExtent(tab_on.getWidth()+2, tab_on.getHeight());
                }
                public void onFocus(int direction){
                    //invalidate();
                    setBitmap(tab_on);
                        hasFocus = true;
                        //super.onFocus(direction);
                }
                public void onUnfocus(){
                        hasFocus = false;
                        //invalidate();
                        super.onUnfocus();
                        setBitmap(tab_off);
    
                }
            protected void paint(Graphics g)
            {
                if (g.getBackgroundColor() != 3098850)
                {
                    g.setBackgroundColor(0xfafafa);
                            g.clear();
                }
                super.paint(g);
            }
            protected void drawFocus(Graphics g, boolean on)
            {
    //          if (hasFocus)
                    g.setColor(0xffffff);
    
                    g.setFont(Utils.BBMillBankTall(12, Font.BOLD));
                    g.drawText("Text to Speech", 0, 0);
                    super.paint(g);
                }
    
            };
    

    You have your sequence of events backwards.

    Call the super.paint (first), then the text above the image bitmap drawText().

  • How to draw text above a picture

    Hello

    How do I draw text above an image. It will work - substitution of the paint the field and using drawText (0, -10) method.

    -10 means that the text will be drawn 10 pixels above the image.

    It depends on the method you are using:

    If you decide to drawText in the charts (the hard), you would be better to check the length of the text before drawing it (getFont () .getAdvance (text), is what you will use for this), in the positioning of your custom field. This can become quite complicated, especially if you are concerned about the return to the line and other things.

    If you go to VerticalFieldManager approach and want the text field to wrap text properly, use, say, RichTextField for this BitmapField for your image and ensure that they have the style flags you can (for example, say, FIELD_HCENTER for centering them vertically; there are a of others, but you do not have to worry with them now) IMHO). In this way, that everything will be done automatically for you. And, as I said before, VerticalFieldManager respect the margins of fields.

  • I need to create combinations of text and images for the web. How to do this in elements or do I need Photoshop for this feature?

    I need to create combinations of text and images for the web. How to do this in elements or do I need Photoshop for this feature?  Please advise!

    slynn5236 wrote:

    I need to create combinations of text and images for the web. How to do this in elements or do I need Photoshop for this feature?  Please advise!

    You can do in PSE.

    1. Do the math to see how much space you'll need on your canvas to the image and text.
    2. Navigate to the file queue > new.blank. Enter the width & height, background color, resolution 72 px / in. It is your canvas, and in the layers palette will be the background layer.
    3. Copy and paste the image. It turns on a separate layer
    4. Activate the tool move, position the image and resize if necessary
    5. Activate the text tool, and then type your text. It will be on a separate so layer
    6. Position the text.
    7. Flatten layers and go to file > save for web. I'm usually on the long side about 800 px. Don't forget to check "constrain proportions". Adjust the quality slider to suit. You will probably want the type of JPEG file for web work.
  • Muse is changing some text and images to white during the download of FTP

    Muse is changing some text and images to white during the download of FTP.  I tried to delete and re-create these assets, but still their changed to white... and I have a white background, so it seems as if it is not yet here.

    Hi Michael,

    Please share your Muse file with us for assistance.

    Please download on creative cloud or dropbox and share the download link with me in a private message.

    Kind regards

    Akshay

  • Adding small portions of text to images

    This is probably a really stupid question, but I can't find the answer! I would like to add small portions of text to images, I'm developing in print adobe (or line). IS this possible? How to do it?

    It is not possible to add text. Adobe draw doesn't have this feature.

  • How to save a document to format rich text and images in PDF format manually?

    How to save a document to format rich text and images in PDF format manually?

    Thank you!

    Most applications give the possibility to export or print in PDF format.

    What app did you use to create the document?

  • I need to transfer my history of the text and images from my old iPhone to my new iPhone, but have already moved all other data to my new phone via iTunes and spent time to organize.  How do I reset this transfer without any?

    I need to transfer my history of the text and images from my old iPhone to my new iPhone, but have already moved all other data to my new phone via iTunes and spent time to organize.  How do I reset this transfer without any?  I transfer a 5s to itself.

    For your photos, try importing them to your computer and their synchronization then back to the SE.

    Import photos and videos from your iPhone, iPad or iPod touch - Apple Support

    For your texts, they moved with the backup restore?

  • Satellite Pro L40: black screen but faint image in background

    Satellite Pro L40 - 17 H (PSL4BE-00T005EN)

    Hello

    I would appreciate your help with the following problem:

    SYMPTOMS: The screen is black, but I see that there is a faint image in background.
    I get a good picture in the external monitor.

    I suspect, _among others_, there may be a faulty * cover sensor / switch *, but I have been unable to locate him, although I have disassembled the unit.

    If anyone knows, please let me have the exact * location * where I should look for the switch.
    Thank you

    > I think, among other things, that there may be a faulty lid switch/sensor

    No, I do not think that its sensor problem.
    I guess that the FL inverter is faulty.

    The FL inverter controls the backlight of the LCD display module.
    Therefore, this part should be checked and if necessary, it must be replaced.

  • HP ENVY 7640: Jobs of text with images - printer cancels

    When I print a text with images document the printer stop printing and cancels the print job when it starts to print any image.

    Help

    Hey @sudiegal!

    Thanks for posting on the HP Forums!

    I would be happy to provide you with some suggestions that may fix the problem.  I see that the printer cancels jobs when you add a photo to you text document.  The first thing I suggest is to remove the printer by resetting the printing system.  After removing the printer add printer and then try printing the document again.

    To reset the printing system:

    1. click on the Apple in the top left of the computer icon

    2. click on System Preferences

    3. click on printers and Scanners

    4 press and hold 'Ctrl' on the keyboard and click with the mouse in the space below the printer

    5. click on reset the drop-down list printing system

    6. we may request for Mac ID and color wheel for a while until the printer is deleted

    To re-add the printer:

    1. click on the Apple in the top left of the computer icon

    2. click on System Preferences

    3. click on printers and Scanners

    4. click on the plus sign (+) icon in the list of printers

    5 Select your printer

    6. choose HP ENVY 7640 series in the drop-down list next to 'use' or 'print using '.

    7. click on add

    If please, after back and let me know if it works for you!

  • Print text or Image is skewed or Crooked [c01627044]

    RE: Printed text or Image is skewed or Crooked[c01627044]

    3 steps checklist is perfect here, but a little more #4 would be good to add. #4 is that when the rear door of the paper feed rollers is not completely locked in place too what is causing this, symptom "printed text or Image is distorted or twisted' arise and is most likely the problem of what happens.

    It is a simple but effective remedy which is one of those OMG it was right under my nose the whole time.

    Thanks for the suggestion, you are right - check fit of the rear panel or duplexer must be one of the first things to check for problems of lag.  The page does not have a link to the report to the webmaster but I send your suggestion on.

  • Image of background using different resolutions

    In my application, I have to use images of background and the image gallery.

    App has support for different deveices of BB (with different resolutions)

    can I use a single image and up and down the ladder? (please let me knpw the class thing to do)

    If it's going to be a good standard resolution of an image?

    (images get a webservice)

    Thank you

    You can use the EncodedImage classes and class Fixed32 to load and scale of the bitmaps on the fly in your code. I would load the largest resolution you want to take over or slightly larger (480 x 360 is what I use) and scale upwards or downwards according to the needs. Here is an example of code that I use:

    int ratiow = Fixed32.div( Fixed32.toFP(ImageWidth) ,                          Fixed32.toFP(WidthToFitIn) );
    int ratioh = Fixed32.div( Fixed32.toFP(ImageHieght) ,                           Fixed32.toFP(HeightToFitIn) );
    
    Bitmap background =        EncodedImage.getEncodedImageResource("images/background.png")                               .scaleImage32(ratiow,ratioh).getBitmap();
    
  • How to draw text bordered on Bitmap usgin class Graphics?

    Hi guys.

    I'm drawing text on a line graph.

    Here is the example.

    The text color is black. Border is white (edge of letters).

    How to draw like this?

    Thanks in advance.

    If you are interested in a vaguely similar effect, but without all the subtle shadows, I have a suggestion. Draw the white text, several times, gap between the nominal position of a pixel or two in different directions and then draw the text in black at the nominal position. The idea is that white copies create an enlargement of each letter which becomes an overview when you draw the black letter on it. You may need to do this a letter at a time, allowing more space between the letters, rather than draw the entire chain at the same time.

Maybe you are looking for

  • No apple replace broken chargr cable purchased in apple store

    Hi apple bought lightning charger apple store about 1 year ago and now does not work, apple will replace this

  • Black screen on Satellite L40-156 turning on

    My son turns his laptop properly last night.To turn it on today and all that there is a black screen. You can hear it turning, the appropriate lights are on the laptop but the screen remains black.No cursor or prompts. Any suggestions as to whats wro

  • Should what software I expect for the security system?

    Hello I was wondering what would be the best for the security of the system. When certain programs are installed/uninstalled, they leave some files behind them in the registry. Please, tell me what would be the best for computer to run smoothly and f

  • Identification number of the AppWorld

    Hello gurus of Blackberry,. I have 2 versions of my game: free (first two) and paid. The free version contains a button that allows users to upgrade. Here's the code that implements this button: private void upgradeToPro() { try { Registry registry =

  • export or share custom workspaces

    Now that the synchronization option has been removed, is it possible to export or share my custom workspaces, so I can load them on another computer?