Android :: How Do I Antialias Clip Boundary On Canvas?

Apr 27, 2010

I'm using Android's android.graphics.Canvas class to draw a ring. My onDraw method clips the canvas to make a hole for the inner circle, and then draws the full outer circle over the hole:
clip = new Path();
clip.addRect(outerCircle, Path.Direction.CW);
clip.addOval(innerCircle, Path.Direction.CCW);
canvas.save();
canvas.clipPath(clip);
canvas.drawOval(outerCircle, lightGrey);
canvas.restore();
The result is a ring with a pretty, anti-aliased outer edge and a jagged, ugly inner edge:What can I do to antialias the inner edge?I don't want to cheat by drawing a grey circle in the middle because the dialog is slightly transparent. (This transparency isn't as subtle on on other backgrounds.)

Android :: How do I antialias clip boundary on canvas?


ADVERTISEMENT

Android :: Get Pixel Color Values Of Canvas / How To Check That Object Reached Upto Boundary

Jun 16, 2009

How can I get Pixel color of a coordinate? There is no method like canvas.getColor(x,y).

Actually, I am new to game developement. I am developing a Game which will restrict object if it comes to that boundary like in pac-man. How can I check that object has reached upto the boundary?

View 2 Replies View Related

Android :: Why To Setup Boundary String In HttpURLConnection?

Nov 19, 2010

Why we have to setup a boundary string?What is the purpose for? any rules on it?

View 1 Replies View Related

Android :: Reset Canvas - Draw A New Bitmap Into The Canvas

Jul 7, 2010

My loadMap() method generate a canvas.throwIfRecycled exception when i try to load a new map.
When i start the game, the initial map loads and work fine though,
its only when i try to load a new map that i get the exception ..

How can i "reset" canvas and the bitmap i use to draw into, so i can startover fresh with them ?
here's what i use to create and draw my maps:

CODE:.........

So basicaly once i created and used picDest and canvas, i cannot figure how to reset it all for when i want to load a new map..

View 1 Replies View Related

Android :: Google Vs IPhone Clip

Dec 20, 2009

YouTube - Google Vs. iPhone clip.mpg

View 2 Replies View Related

Android :: Video Clip Downloading App

Sep 27, 2010

I'm looking for a App, for the Htc Droid Incredible,that is simular to My Media or Download Lite for Iphone.I want to download and save video clips to my phone off the internet.

View 1 Replies View Related

Android :: Playing An Audio Clip OnClick

Jun 15, 2010

How do I set up an audiofile to play when a user touches an image.Where should I store the audio file and what code should I use to actually play the file?I don't want to bring up the MediaPlayer interface or anything like that.

View 1 Replies View Related

Android :: How To Embed YouTube Clip In Web View?

Aug 11, 2010

Can anyone shed any light on why I'm unable to click and play a youtube clip on an Android handset when placed inside a webview?I've put a very simple app together (it's being extended, but no right away) and it has a web view assigned using the Android SDK.The rest of the webview works as expected (text, images, css etc), however, the YouTube clips will not show, they just show as black or white rectangles (where the video embed should be).We use the same view to display content on the iPhone app equivalent, without any issues.This is using a basic flash embed, the Safari browser on iPhone converts these to H.264 and plays them nicely in QuickTime.Can Android do the same?

View 4 Replies View Related

Android :: Incorrect Clip Rect In OnDraw()?

Apr 8, 2009

We came across a strange behavior. The clip rect of our custom view is getting reset to its entire visible region, if we change the value of another view.

View 4 Replies View Related

Android :: How To Insert Movie Clip Into My Game?

Aug 26, 2010

im making an android game and i want to insert a movie clip (.flv) of exlosion into the game, how do i do that?

View 2 Replies View Related

Android :: Play An Audio Clip Onto An Ongoing Call

Oct 10, 2010

Is it possible to modify an active call by overlaying a sound track during the call? I looked up the SDK, but couldn't find any api to do this in the documentation. I am trying to investigate the feasibility of playing a previously recorded call/audio clip onto an ongoing call.

View 1 Replies View Related

Android :: Voice Recognition With Recorded Sound Clip?

Feb 23, 2010

I've used the voice recognition feature on Android and I love it. It's one of my customers' most praised features. However, the format is somewhat restrictive. You have to call the recognizer intent, have it send the recording for transcription to google, and wait for the text back. Some of my ideas would require recording the audio within my app and then sending the clip to google for transcription. Is there any way I can send an audio clip to be processed with speech to text?

View 1 Replies View Related

Android :: Playing Short Audio Clip Has Tick Sound

Dec 14, 2009

I'm using the SoundPool to play a series of small audio clips and am having issues with the audio when it starts. I have the audio attached to a button press. When I press the button mulitple times the tick persists. I was wondering if this was the audio file itself or is there something I need to do differently with the SoundPool other than play simply play the clip. These are .ogg files I created using Audacity. When I play them in my dekstop media player, they sound fine.

View 2 Replies View Related

General :: No Sound On Clip - YouTube Embed In Chrome For Android

Nov 26, 2013

've noticed suddenly that I have no sound on any clip playing from a youtube embed. Am I the only one? Thought everything was fine yesterday... Sound settings look ok and Vimeo embeds are working properly. I was checking out this page: [URL] ......

I've restarted the tab, browser, phone etc. What should I do!

View 2 Replies View Related

HTC Incredible :: Video Clip Has Vanished

Jun 23, 2010

I went to play a short vid clip that I had shot with the Dinc (and had fortunately saved to my computer); got the message "the video cannot be played." Rebooted and now the clip has vanished!

View 4 Replies View Related

HTC Incredible :: Inc Black Clip Won't Stay Down

Aug 24, 2010

i had to replace the LCD and digitizer on my incredible and now it is unresponsive to touch and trackball. the black clip on the left with foam bar tape wont snap down like the other three, so i'm guessing that is the problem.

View 2 Replies View Related

Motorola Droid :: What Case / Clip Do You Use?

Dec 13, 2009

I just purchased a Droid yesterday and will have it tommorow (upgrading from a Blackberry 8330) and I carry my phone on my hip. I'd prefer a holster over a clip and was wondering what everyone else uses and how do you like your current one? Thanks in advance and add another one to the android converts!

View 14 Replies View Related

Android :: Why The Duration Of Clip Is Different Between VideoView.getDuration And MediaMetadataRetriever.extract­Metadata - MediaMetadataRetrieve­r.METADATA_KEY_DURATION

Jul 17, 2009

When I create an APP for Media test, I'd like to get the duration of tested clip. Nut as the debug result, the duration is different between the 2 methods for many clips.

Method 1:

CODE:.....

Method 2:

CODE:.........

What is the reason? And I checked the result of Method 2 is right when compared with PC result. Is there a bug for MediaMetadataRetriever.extractMetadata (MediaMetadataRetriever.METADATA_KEY_DURATION)?

View 3 Replies View Related

Motorola Droid :: Wallet With Magnetic Clip

Dec 17, 2009

I may be purchasing a Droid soon. One thing that worries me a little is the GPS/Dock function that "activates" when you dock it in the media or car dock. From what I understand this triggers due to magnets that the Droid senses.

I use a leather money clip that holds like 10 cards then has a clip with a magnet in it to hold bills. (See picture).

My concern is that if I keep the Dtoid in my right pocket with my wallet it's going to activate and start draining the battery like crazy. As the phone would be too big to fit in the small "change" pocket on jeans that I used to use for my LG Voyager and previous phones it has me a little worried how I'm going to tote it around. I may buy one of those glasses cleaning clothes and wrap it in that, but the magnetic portion could still be an issue.

View 1 Replies View Related

HTC Hero :: Change Default Notification - Use Sound Clip As Sms Alert

Oct 20, 2009

I have a sound clip that I want to use as my sms alert. I have placed it on the sd card under Audio/Notifications and I can play the sound file OK but when i go to the settings of the sms app (Handcent SMS) and choose Notification Setting and then Select Ringtone, it does not display the sound file. I have stored on the card, just the built-in ones, How do I make the app use the stored sound file.

View 2 Replies View Related

Motorola CLIQ :: Text Message Shows Up With Paper Clip Nothing Else?

Dec 22, 2009

Ive received a few text messages today where someone tried to send me a pic, all I see is a yellow text box with a paper clip (attachment symbol)Whats up? How do I download the pic/attachment?

View 2 Replies View Related

Motorola Droid :: Clip Corners Of Keys On Keyboard When Typing Fast

Nov 20, 2009

I've done this several times with the W key on the keyboard. When I'm typing really fast and drag my fingers to type "saw" for example with just my left thumb I'll catch the bottom left of the W key while the A is pressed down and it'll lift up and make a popping noise. I'm worried eventually I'll snap the W off the keyboard.

View 3 Replies View Related

Sony Ericsson Xperia X10 : When I Try To Watch A Clip On YouTube It Takes Ages To Load

Nov 21, 2010

Looking for a bit of help here. I have an Xperia X10. Its meant to be one of the best phones out. But I feel that I have been well rip off.Its crap.
Got the 2.1 upgrade and thought this is going to be worth it. I was wrong.

When I try to watch a clip on YouTube it takes ages to load.9/10 times it does not play.WHY? Also I wanted to see a clip on BBC Sport page. Guess what it�s not supported. I can't even go onto my local radio station website and listen live.Whats the point in this phone.
Wish I never bought it. Stuck with a 18 month contract now

Anyway. Is there a reason why I am having trouble doing these kind of things.Maybe internet settings are wrong.I'm using Skyfire as default browser. I thought it was basic stuff for any Smartphone to be able to watch a clip online.

View 13 Replies View Related

Android :: App To Video Editing To Clip Part Of Video Not Relevant To Post / Share?

Dec 7, 2009

I am looking for an application that will allow simple video editing to clip part of the video that is not relevant prior to posting or sharing.

View 24 Replies View Related

Android :: Transparent Canvas

Apr 4, 2009

I'm trying to make an app that requires me to draw over a layout with buttons, etc. I want to build a transparent canvas over the current layout and draw onto that canvas. How is this done?

View 3 Replies View Related

Android :: Draw From Old Canvas

Oct 28, 2010

I'm making an App that needs to be able to draw new graphics on top of the last set.

This is my current onDraw() method -
protected void onDraw(Canvas canvas) {
canvas.drawColor(Color.WHITE);
if(points.size() > 0) {
//do some stuff here - this is all working ok
canvas.drawLine(p1.x, p1.y, p2.x, p2.y, linePaint);
}
}

Basically, I need to draw the new graphics as a layer on top of the last, so what I'm looking for is a way to carry the image of the last canvas to the current. I have tried to figure it out myself using the canvas.setBitmap() method but it acts very funny.

View 2 Replies View Related

Android :: Copy From One Canvas To Another?

Oct 4, 2010

I want to copy the image drawn in one canvas (details) into another canvas. The commonly discussed solution of using bitmaps will not work because the Bitmap class does not have many of the important methods belonging to the Canvas class.

View 1 Replies View Related

Android :: OpenGL ES Canvas ?

Jun 13, 2010

I'm working on an OpenGL ES game using the NDK. My min SDK version is 1.6. I have created an OpenGL Es 1.0 renderer in Java and am calling a native JNI method in that renderloop.

The problem I'm having is that it seems that the resolution of the rendering context is limited. When using the emulator I'm getting a rendering canvas of 480x320, which is fine. Now; when I use my HTC Desire I am only getting a canvas of 533x320 while the native resolution of this phone is 800x480px.

View 2 Replies View Related

Android :: Possible For A View Having More Than One Canvas?

Aug 26, 2009

I have a View and that has a canvas. I am rotating the canvas, for rotating a bitmap. But after that, I need to draw one more bitmap on the Canvas and, this should not rotate. The second bitmap has to be static.

I tried with matrix rotation for bitmap. But its not rotating in the specified co-ordinates.

View 3 Replies View Related

Android :: Canvas.drawText ?

Apr 16, 2010

I have a view, I'm drawing with the Canvas object in the onDraw(Canvas canvas) method.

My code is:

CODE:....................

The problem is the text doesn't show through the background, what am I doing wrong? If I remove the canvas.drawPaint(paint) and paint.setColor(android.R.color.black) you can see the text on the screen.....

View 2 Replies View Related







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