hi,
Looking to write a program for android(java - eclipse -adt) which receives a photo, from either a local or network position , scales the photo to fit a specific border on the screen - then has the capability to analyse the photo colour in 16 different positions to find the mean colour value.
I then need the camera to be able to save a shot to a temporary local file position from where it can be analysed (in 16 diff positions again) for the mean colour , the mean colour of the camera pic can then be compared against the other photo's mean value and then various other features would be incurred if it was in +-'x' range for example.
To conclude , I need to know how to:
1. easily assign a number variable to a colour so I can manipulate it.
2. Need to know what libraries I need for receiving, sending and analysing the colours of these pictures.
3.need to know libraries for camera operation and how to save either a local temporary location or network location.
also suggestions regarding how to incorporate this into a clean ui with nice screen transitions would be great.
Answers / suggestions for all/any of these points will be much welcome,
thanks.
1) Are you looking for something like the Color class? http://developer.android.com/reference/android/graphics/Color.html
Related
And attempted to search but found nothing. I am the owner of a Dash (Excalibur), but have two friends running Wings and they would like to know how to change around home screens. Ruttensoft and MadBeetle seem to be geared towards different sized screens.
Any software out there to efficiently change the screens?
Go to Settings, then TODAY, then under ITEMS
Apologize for not being more clear. I would like to create my own homescreens
Use any popular photo editing software (Photoshop, Paintshop, even IfranView) and crop/shrink the image to a 320x320 resolution. Send the image to your phone... Menu > Set as Today Background. Set the parameters you like (transparancy and the such) and hit OK.
Unless of course you want to change the colors of your Today screen too... then you'd have to use something like ThemeGen to create a theme from scratch and export it as a .tsk file.
Personally, I just use SKTools. It allows you to change all the colors from within the program. No need to create theme files or anything! Plus you get a much wider range of colors.
freakingwilly said:
Use any popular photo editing software (Photoshop, Paintshop, even IfranView) and crop/shrink the image to a 320x320 resolution. Send the image to your phone... Menu > Set as Today Background. Set the parameters you like (transparancy and the such) and hit OK.
Unless of course you want to change the colors of your Today screen too... then you'd have to use something like ThemeGen to create a theme from scratch and export it as a .tsk file.
Personally, I just use SKTools. It allows you to change all the colors from within the program. No need to create theme files or anything! Plus you get a much wider range of colors.
Click to expand...
Click to collapse
That easy eh? I need to dump my Dash!
I am pretty new into android development and have a couple questions I'm sure you guys can answer pretty quickly but have so far not been able to figure out. How do I have a set background in a live wallpaper besides just creating something from canvas, I have it already loaded in the hdpi I just need to figure out how to call it. Also, is it possible to have something appear enlarge a little bit in the center of the screen then fall off the screen? I'm trying to create a time lapse of a tree where it goes through all the weather changes. Any sites you could link me too or answers you would have would be greatly appreciated. Thanks for anything you guys are able to do.
Can you be more specific? When you say background are you talking about an image file you've added as a drawable?
If you use the drawBitmap method you can draw images anywhere on a canvas.
This is roughly how I do it on my Live Wallpapers.
Code:
Bitmap background = BitmapFactory.decodeResource(getResources(), R.drawable.background);
c.drawBitmap(background, 0, 0, null);
That will draw the bitmap at the upper left most position on your canvas.
If you want your live wallpaper to slide left and right as you swipe between home screens you need to adjust the x position based on the offset. Look at the cube live wallpaper source code for more information on how to get the offset value.
What I have is a picture loaded in the hdpi file that I want to use as my background, the thing with the cube is it shows you how to draw a picture but not add one into it. I want to load in the photo and then have objects enlarge and drop down around the center of this picture. The design I'm going for is a time lapse of a tree. I was told surfaceView can set your background but I'm not sure if that's the case or not. Thanks for the reply though I appreciate it.
bearcatext said:
the thing with the cube is it shows you how to draw a picture but not add one into it.
Click to expand...
Click to collapse
It works exactly the same but instead of using c.drawLine() you use c.drawBitmap()
That makes a lot of sense thanks, and for the leaves falling would you just set the coordinates to somewhere in the middle then? Also, is there a way to have an image change color mid-screen so it looks like fall is hitting? Thanks for all your help again though.
just picked up the tab about an hour ago, and just started playing with it... so far, so good
the one thing that stuck out at me so far is the color... it's at least 300-500K too warm, and waaaaaay to vibrant...
is there anyway to tone it down a bit ?
I couldn't find a way to adjust/calibrate the color on the device. I wanted my photos to look correct ... so I created an action in Adobe Photoshop that correctly adjusts the photos before I download them to the SGT 10.1.
Below is a copy of a post I made on the post processing forum on fredmiranda.com:
A little work allowed me to create a Photoshop action that will take images from my normal calibrated NEC 2690 work environment and apply a transform that preps them for use on the Galaxy Tab 10.1. In case anyone needs to get images looking good on a tablet, here is what worked for me.
In Photoshop, I created three adjustment layers.
1. Hue/Saturation - Reduced saturation (this was to overcome the highly saturated LCD on the Samsung).
2. Curves - I adjusted the individual RGB channels in the curves adjustment layer to get the right color balance on the tablet.
3. Exposure/Gamma - I reduced the exposure slightly and adjusted the gamma value to offset the gamma on the tablet.
Then resized the image for the small screen and applied appropriate sharpening.
I standardized on using sRGB for output. I left the original images intact ... this action can be used to create a a custom set of images for display on the tablet.
The good news ... I ended up with a beautiful tool for sharing images.
UCSB said:
I couldn't find a way to adjust/calibrate the color on the device. I wanted my photos to look correct ... so I created an action in Adobe Photoshop that correctly adjusts the photos before I download them to the SGT 10.1.
Below is a copy of a post I made on the post processing forum on fredmiranda.com:
A little work allowed me to create a Photoshop action that will take images from my normal calibrated NEC 2690 work environment and apply a transform that preps them for use on the Galaxy Tab 10.1. In case anyone needs to get images looking good on a tablet, here is what worked for me.
In Photoshop, I created three adjustment layers.
1. Hue/Saturation - Reduced saturation (this was to overcome the highly saturated LCD on the Samsung).
2. Curves - I adjusted the individual RGB channels in the curves adjustment layer to get the right color balance on the tablet.
3. Exposure/Gamma - I reduced the exposure slightly and adjusted the gamma value to offset the gamma on the tablet.
Then resized the image for the small screen and applied appropriate sharpening.
I standardized on using sRGB for output. I left the original images intact ... this action can be used to create a a custom set of images for display on the tablet.
The good news ... I ended up with a beautiful tool for sharing images.
Click to expand...
Click to collapse
thanks
i guess that's the workaround...
not sure i like having to work around the color issue, but i guess it's better then sitting in front of a booker explaining why the model looks like she just took a bath in orange juice
I think turning off Auto adjust screen power in the screen settings helps the reds a little. There is also an app in the market that will let you adjust the RGB but for the life of me I can't remember what it is called. I uninstalled it because it made the launcher laggy but other than that it worked OK.
Found it: color filter service is the app. Its 99 cents.
jtseidner said:
Found it: color filter service is the app. Its 99 cents.
Click to expand...
Click to collapse
will definitely try this app...
rgb controls would be ideal, and will allow me to use a colorimeter...
thanks
Flash files are used widely, but when people use it, they always need new demand. People always chase perfect. SWF files optimization is one of the chasing things. Here is the tip for how to optimaiz flash swf files.
General optimization
Please use symbols, animated or otherwise, for every element that appears more than once. You need to use tweened animations when you are creating animation sequences, because these animations occupy less file space than keyframs. Use movie clips instead of graphic symbols for animations sequences. You need to reduce the area of change in each keyframe as possible as you can to make the action happen in as small area as possible. Try your best to avoid animating bitmap elements and use bitmap images as background or static elements.
Colors
You can use Color menu in the Symbol Property inspector to create many instances of a single symbol in different colors. Then you need to use Color Mixer to match the color palette of the document to a browser-specific palette. Use gradients sparingly. You need about 50 bytes for filling an area with gradient color. You can use alpha transparency sparingly because it can slow playback.
Texts and fonts
You need limit the number of fonts and font style. Please use embedded fonts sparingly because they can increase file size. Select only the needed characters instead of including the entire font for Embed Fonts options.
Lines and elements
Do your best to group elements. You can separate elements that minimize the number of separate lines that are used to describe shapes by using layers. Reduce the number of special line types as possible as you can, such as dashed, dotted, ragged. Solid lines require less memory and lines that are created with the Pencil tool need less memory than brush strokes.
With these tips, you need not to spend extra money to buy some software or tool. What’s more, these tips are easy to understand, you are not required much flash knowledge.
Hey @all,
i'm just getting started with developing Android Apps. Therefore i have a question, for designing my GUI. Maybe there is a possible build-in widget, but i don't have the right wording to find it (English is not my native language).
I'm looking for something like the Rating Bar, where you can select a value between 1 and 5. Instead of the stars, i'd like to have some bars (the left one is the smallest, the right one the highest). Should look like the "Stairs" within a Signal strength notification. To make it a bit more challenging i'd like to have different colors for every bar (least value is green, highest value red). Therefore i don't think that the Rating Bar with different drawings will fit my needs, because afaik i could just change the star layout, not like the first star should become a 5dp bar, the second a 15dp and so on.
Is there any build in widget i could use?
I attached a picture to show my idea.
I hope you can help me
Additional Information: I like to develop for min API 17
fighterii said:
Hey @all,
i'm just getting started with developing Android Apps. Therefore i have a question, for designing my GUI. Maybe there is a possible build-in widget, but i don't have the right wording to find it (English is not my native language).
I'm looking for something like the Rating Bar, where you can select a value between 1 and 5. Instead of the stars, i'd like to have some bars (the left one is the smallest, the right one the highest). Should look like the "Stairs" within a Signal strength notification. To make it a bit more challenging i'd like to have different colors for every bar (least value is green, highest value red). Therefore i don't think that the Rating Bar with different drawings will fit my needs, because afaik i could just change the star layout, not like the first star should become a 5dp bar, the second a 15dp and so on.
Is there any build in widget i could use?
I attached a picture to show my idea.
I hope you can help me
Additional Information: I like to develop for min API 17
Click to expand...
Click to collapse
I think your best bet would be to make pictures (drawables) to use inside of an ImageView widget. You would need to draw every possible outcome or picture that the user will have displayed to them. Then depending on what you want done, set the drawable to imageview.
Here's a very brief example (Sorry, typing from phone):
ImageView imgView = (ImageView) findViewById(R.id.my_image_view);
If (outcome1) {
imgView.setImageDrawable(R.drawable.my_rating_bar_green1);
}
Something like that should work for you.
______________________
Root it and boot it!
Current device: Sm-n900p/Sprint Note 3
ROM:AICP ROM
Service: Straight Talk
Check out my apps on Google Play