Android :: Combining Two Images Overlaid With Same Dimension?

Sep 9, 2010

I've got a things to do with android, so, I have 2 images,
1. image from camera
2. another image from somewhere

So what I want to achieve is how to combine those image into 1 image, but it's overlapping (just like watermarking the image). The 2nd image should be scaled first into the size of the 1st image(camera) - so they have same dimension, then if the 2nd image pixel is black, don't combine it (so the black means transparent color - on 2nd image). Do you know what is the best way achieve this, can I do this with xor or bitwise?

Android :: Combining Two Images Overlaid with Same Dimension?


Android :: Buttons / ImageViews Overlaid On A GLSurfaceView?

May 19, 2009

Can it be done? If it can, is it much of a performance hit, and is there an example anywhere?

View 4 Replies View Related

Android :: Make Overlaid Image Transparent On Touch In Droid?

Jun 11, 2010

Making the touched areas of bitmap image transparent(seems like erasing) while I am moving my finger on that image.

I am having a PNG file with Alpha channel in it. I want to turn the touched pixels to transparent so that, the user can feel that he is actually erasing it.

For this I am using frame layout to load 2 layers. Down layer is for content and upper layer is an Imageview for erasing. I need erase the upper layer when user touch and move his finger on it.

I am not getting how to make it transparent. can anyone please help me in this. If possible please direct me to any sample code, as I am very new to this image processing.

View 2 Replies View Related

Android :: Get Dimension From R.attr In Java Code

Sep 19, 2009

Resources.getDimensionPixelSize (android.R.attr.listPreferredItemHeight) does not work. So how to? And any other way to specify resolution independent dimension values in Java code?

View 6 Replies View Related

Android :: Specify Different Dimension Of Layout For Different Density Of Screen?

May 14, 2010

Can you please tell me how can I specify dimension of layout for different density of screen?
i.e. the layout are the same across different densities, but some dimension are different.
how can I do that?

View 2 Replies View Related

Android :: Create A 3 Dimension View Of Background Image

Aug 5, 2010

I have a screen where I need to put a background image. I need to display only a part of the background image in each screen . Now when the user swipes towards left , the next screen will be displayed taking another portion of the background image. This transition from the first to second screen should give a 3 Dimension effect of moving the screen. I am unable to get any help form Android forums.

View 1 Replies View Related

Android :: Force LinearLayout To Draw Objects In More Than One Dimension?

Sep 28, 2010

I need to populate a View with a data from adapter which contains some number of strings. The problem is that I don't know how many of the strings will be there. So my idea was to use LinearLayout to store data. But even if I reserve enough space for this data (eventually I will draw it in ScrollView), LinearLayout use only horizontal perspective (drawing Strings to the end of line), and not uses additional space beyond.
My intention is to draw to the end of line, and draw next line... till end of data.

View 1 Replies View Related

Android :: Hard-coding Button's Width In Dimension Units

Aug 1, 2010

I've got the hard-coded layout, consisting of buttons, and need to enlarge some of them. I found Button's method setWidth(int value), accepting width in pixels, but I need to set value in dp. So, how can I set dp value in program code?

View 1 Replies View Related

Android :: Specifying Relative Dimension Of Views On Device Screen Width - Height

Oct 8, 2009

I am writing an android application that has 3 views one below the other. Each view has to be of equal height, depending on the screen size. Each view occupies the full width of the screen. How do you specify in the layout xml that the view has to take up 1/3rd height of the device display height? What would be the appropriate layout to use in this case?

View 1 Replies View Related

How To Save Image Into Same Dimension From Different Orientation

Oct 25, 2012

I am building an application in which I have to use canvas. I have to save the image into same dimension no matter what is the orientation.

View 3 Replies View Related

Android :: Combining Two PNG Into One Image File

Apr 29, 2010

I have two png image files that I would like my android app to combine programmatically into one png image file and am wondering if it is possible to do so? If so, what I would like to do is just overlay them on each other to create one file. The idea behind this is that I have a handful of png files, some with a portion of the image on the left with the rest transparent and the others with an image on the right and the rest transparent. And based on user input it will combine the two to make one file to display. (And I cant just display the two images side by side, they need to be one file). Is this possible to do programmatically in android and how so?

View 4 Replies View Related

Android :: Combining 1.5 And 1.6 - Application Code

Apr 9, 2010

I'm wondering if it's possible to have an app that has a portion of its code implemented using Android 1.5 (API Level 3) and part using 1.6. (For example maybe implementing one of the app's activities in 1.6 while the overall app is in 1.5)?

View 3 Replies View Related

Scrolling Image View - Dimension Of About 1200x800?

Jul 25, 2012

I have an image which has a dimension of about 1200x800.. Now I would like to display it in an ImageView in such a way that the image would not scale down to fit the screen of the device but instead it will allow me to scroll (both horizontally and vertically) to view the other parts of the image. Basically just like in the google's MapView. Is this possible with ImageView or should I use other methods?

View 1 Replies View Related

Android :: Combining Subclasses Which Have Different Fields For Efficiency?

Feb 7, 2010

I'm working on a Java Android game. Games here generally need to use memory pools to avoid garbage collection.Making use of subclasses is a pain when using memory pools as you need to e.g. say how many Roamer and Chaser objects you want upfront and not just how many Enemy objects you might need.I would then have an update function that checked the "type" variable and updated accordingly. This is obviously a more C-like approach. It feels hacky though because e.g. a roamer enemy will have a "target" variable it never uses. I'm unlikely to have more than a 100 enemies in memory at a time though so it really isn't a big deal memory wise. I just want some compromise between nice code and speed.Does anyone have any comments on how best to structure this? Is merging classes like this going too far? Is this ever a good idea? Should I just use a regular class tree?

View 4 Replies View Related

Android :: Combining Text And Image On Button

Oct 7, 2009

I'm trying to have an image (as the background) on a button and add dynamically, depending on what's happening during run-time, some text above/over the image. If I use ImageButton I don't even have the possibility to add text. If I use Button I can add text but only define an image with android: drawableBottom and similar XML attributes as defined here.

However these attributes only combine text & image in x- and y-dimensions, meaning I can draw an image around my text, but not below/under my text (with the z-axis defined as coming out of the display). One idea would be to either extend Button or ImageButton and override the draw()-method. But with my current level of knowledge I don't really know how to do this (2D rendering). Maybe someone with more experience knows a solution or at least some pointers to start?

View 2 Replies View Related

Android :: Combining Intents In Create Chooser

Nov 24, 2009

I would like to know how I can create a chooser for the user to select from either a video or a photo. I want them to be able to capture a new video/photo or select from existing videos/photos. With the following code, I get a chooser that allows for that, but also allows audio creation/selection.

Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.addCategory(Intent.CATEGORY_OPENABLE);
intent.setType("*/*");
startActivityForResult(Intent.createChooser(intent, getString (R.string.mediaChooserTitle)), REQUEST_MEDIA);

If I set the type to "image/*" I can create/get a photo, and "video/* I can get/create a video. How can I combine these types?

View 2 Replies View Related

Android :: Huge Benefits When Combining Quickdesk And Bar Control

Jul 30, 2010

The quick desk and bar control apps are so far my favourite. Previously I had my switches/toggles of WiFi/3g/gps/silent/bluetooth on the desktop. Now I have these switches in quickdesk. Thats not all - using the bar control app I can have any shortcuts in my slide down bar. So I just added the quickdesk app in my bar. The benefit is that I can now access my switches/toggles from anywhere.

For example if I am using my browser and forgot to switch on WiFi, while browser is open I just slide down the bar and through quick desk switch on WiFi. This means that I do not need to navigate away from the current app that is open. Normally you would have to minimize the current app open and navigate to desktop to toggle switches, then go back to the app you were using.

View 3 Replies View Related

Android :: Combining Different Packages Into Single Project In Eclipse

May 20, 2010

As part of the Android application I am developing in eclipse, I need to combine two packages from different projects into a single project. I tried copying the files in the package of the second project under the src folder of the first folder and copied other files required for second package into the res folder of the first project. But the auto-generated Java files i.e R.java doesn't get updated on copying. I tried right clicking on the project and clicking on Android Tools -> Fix Project Properties. But nothing changed.

View 2 Replies View Related

Android :: K9 Mail - Combining Emails To Global Inbox?

Nov 23, 2009

Anyone who uses k9 Mail or have knowledge, I have a question. Is there a way to combine your email boxes to a global type inbox? Coming from a BB it was cool to be able to check 1 box to read all my 4 email account emails. Is this a feature available and I am missing it or is there an app for this?

View 3 Replies View Related

Android :: Manage Audio Level Through Application - Combining Two Sources

Sep 23, 2009

Is there a way to manage the audio levels through an app? Or is it more dependent on the phone's built in capabilities? Right now at work I listen to a skype audio call from my house (for security) at a very low volume and then at a higher level I listen to music or podcasts, both sources going at the same time. When my dog goes nuts, the door is knocked on, or (in theory) if someone busted down my door, I notice the change in volume and sound, turn off my local media, and focus on what I'm hearing until the drama passes.

I ask because I would like to continue this setup when not at work, like say while running, where I again have earphones in and am normally listening to audio content. I would like to be able to have two pieces of audio: music combined with a skype stream or normal phone call, going at the same time like at work. So is there a way to have two sources going at the same time, with the volume of each independently adjustable? Is this an app thing or a phone thing? Phone will be Sprint Hero.

View 1 Replies View Related

General :: Combining Two APKs

Jun 16, 2011

i am trying to combine two apk's in one..i write scripts using python for android.i can package those scripts in apk. however apk if installed on a phone which doesn't have python interpreter ask's user's to download interpretor.

what i want is one monolithic apk which contains python interpretor plus my script.

View 3 Replies View Related

General :: Combining Duplicate Contacts

Jul 4, 2012

How to combine these multiple contacts into one? Galaxy Nexus

View 2 Replies View Related

Android :: Way To Have Image Overlaid Over Another Image

Mar 3, 2010

Is there a way to have an image overlaid over another image. For example, I have an instance where I have an imageview and I would like another imageview to take up the same space and appear over the first image. I don't know if there is a way of doing this. I tried putting the second imageview within the first imageview, but that's apparently not allowed in the layout xml files. So is there perhaps a way of doing it with a different layout, such as absolute or frame?

View 9 Replies View Related

Android :: Load Images In OpenGL Without Having Thin Outline Appear Around Images?

Nov 2, 2009

I'm basically using the same method of loading bitmaps in OpenGL that the SpriteMethodTest example uses and have been unable to get rid of an annoying outline that appears around all of my images.

For example, If I were to load an image of a white circle on a white background, I would expect to see nothing. Instead, I would see my circle because its edge would be gray. In SpriteMethodTest, I replaced the background image with white and was able to see that the edges of the android images flying around also don't seem to be rendered correctly.

Does anyone know how to load images in OpenGL without having a thin outline appear around the images?

View 4 Replies View Related

General :: Scrollable Widget Combining Facebook / Twitter / G+ And RSS Feeds?

Dec 17, 2011

A widget which puts all the posts from the "big ones" in one, scrollable feed? I want Facebook, Twitter, Google+ and various RSS feeds in one big feed on one of my home screens, preferably with customizable colours.

View 2 Replies View Related

Android :: Adding Some Nine Patch Images Breaks All Of My Other Images

Apr 6, 2010

I'm working to convert some background images to nine patch so they scale better on different phones.
The problem is that if I have the following resource structure: drawable-hdpi/background.png drawable-hdpi/button.png drawable-mdpi/background.png drawable-mdpi/button.png drawable-ldpi/background.png drawable-ldpi/button.png and then I drop a new drawable-hdpi/background.9.png file into the mix, it breaks button.png during the pre-compile. The error is "No resource found that matches the given name (at 'background' with value '@drawable/button').Simply removing that one nine patch file fixes the build. Should I be able to have some nine patch images and some normal ones, or to have nine patch only in hdpi but not mdpi or ldpi? This is Eclipse 3.5.1 with the latest ADT.

View 3 Replies View Related

Android :: Best Practices Combining List And Non-list Views

Jan 10, 2010

I'm trying to tackle a problem that seemingly many Android developers have, which is how to intersperse lists with non-list data, in one big scrollable pane.The model I have in mind is the screen for an individual app in the Market. You have a big description, a list of a few lazily loaded comments, and then some individual items that do different things, like visit the developer's web page, call them, etc. And then in between them all, are nice section headers.Emulating this approach seems to be extremely hard. I've read enough SO answers and mailing list posts to know not to put a ListView inside of a ScrollView, but I want the same effect without using addHeader() and addFooter() with very complex header and footer views. I've tried using a LinearLayout that I stock with views myself, but I can't get the pleasant click effects that default list items have (the orange background, white for long-click, etc.).

View 2 Replies View Related

Android :: Combining Map View And List View In Application

Aug 4, 2010

I am working on an application where I need to display some locations on a map and in a list view where the user should be able to toggle between these views(activities?). I want the toggle button(s) to be in my custom titlebar like in the images (if they are attached). What is the best practice for this? Tab view seems like a solution but can I customize the tab buttons? Should the map and list be in different activities or the same? Now I have two different activities one extending MapActivity and one extending ListActivity but no way to toggle between them. Is it possible to load activities into a FrameLayout?
list.jpg
49K
Download

map.jpg
67K
Download

View 2 Replies View Related

Motorola Droid X :: Does Google Images Let You Select Images?

Jul 18, 2010

Just curious how many have this issue.If you are unsure select the link below and find out pls.

View 30 Replies View Related

Android :: Tutorials On How To Create Jpeg Images Or Convert Images Into Jpeg?

Jun 23, 2010

1.myJpegFile = new File("images/jpegImage.jpg");
2.output = new BufferedOutputStream(new FileOutputStream(myJpegFile));
3.encoder = JPEGCodec.createJPEGEncoder(output);
4.encoder.encode(myJpegImage); Please could you give me the equivalent code for line no. 3 and 4 in Android?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved