I recently rebuilt my Android project to target 2.2 from 2.1.
In the old project, I did not specify a target SDK (the manifest did not contain something like: android:minSdkVersion="8"). This gave me an error in the console when running, but everything worked fine so I didn't fool with it.
The new project now uses android:minSdkVersion...
Hi, This works great for files. I marked the location needing refactoring to get it to work with a bitmap. I can't seem to find a compatible ContentBody for .addPart.
The problem I am trying to solve is that I already have the image in an ImageView within an Activity, so rather than read it again from the SD cara, I want to pass it to...
Hi,
There are at least two methods to scale a bitmap in Android,
One is to use "inScaled, inDensity, inTargetDensity" in "BitmapFactory.Options" when decode a bitmap source.
The other is to use a "Matrix" in "Bitmap.createBitmap".
What I am curious is what the difference between these two method is?
What about the quality of produced b...
How to save a particular view in a framelayout using Bitmap factory?
I have a framelayout containing multiple views. After doing some editing, I have to save whatever I have edited as an image.
Can you please help?
...
I have a bitmap file, that serves as a mask for a view. It has multiple rectangular areas with different colors on a white background. When the user touches the View, I use the X and Y coords of this event to look up the color of the mask (which is not displayed) and do things based on the color code returned.
The problem is: loading th...
Some background. I currently have a class that is instantiated multiple times and inside the class resides a Bitmap member variable that is set using BitmapFactory.decodeResource on instantiation. At any time I may need to apply a matrix to the bitmap and it's currently done via:
public void applyMatrix(Matrix matrix) {
mBitmap = Bi...
I have a map in my application that shows locations from Gowalla. I use an ItemizedOverlay with a simple default marker, but as the items are drawn, I swap the default marker out with the location's icon downloaded 9and cached on disk) from Gowalla.
The problem is that if there are a lot of locations on screen (say 30), the size of the...
I am trying to figure out the format of a Windows bitmap file that is monochrome. From what I can tell, the scanlines are padded on the end to maintain DWORD alignment. However, any data I save is garbled like it's interleaved when viewed from mspaint. However, if the width and height of the image are the same, the data is not garbled wh...
I remember a while ago reading about an alternative (aka faster) way to perform a "getPixel()-ish" method. Problem is, I don't remember where I read that, and I've searched thoroughly.. I think.
The answer had something to do with locking the Bitmap in memory, or something like that. I need to run getPixel() multiple times "per-tick," w...
I've searched around using google but I'm completely confused on how to load an image (PNG in my case) from resource and then converting it to a bitmap in memory for use in my splash screen. I've read about GDI+ and libpng but I don't really know how to do what I want. Could anyone help?
...
How do I obtain the X & Y resolution of a Bitmap in DPI on the android platform?
I'm expecting some api like 'GetXResInDPI()' like below :
double getXResolution(Bitmap bmp) {
double lXRes = Bmp.GetXResInDPI();
return lXRes;
}
I'm unable to obtain any such method for the android platform in spite of scourging through the java do...
I am trying to develope an app on canvas ,i am drawing on canvas with bitmap .After drawing,i am trying to convert into bitmap image .
can anyone give me suggession
thanking you in advance
...
I am trying to develope an app on canvas ,i am drawing a bitmap on canvas with the help of canvas.drawBitmap().After that i want to convert that canvas into bitmap.
can anyone give me suggession
thanking you in advance
...
I have a game running on android.
basically, it's structure is like lunarlander
I started my activity , using the layout to start the class running.
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
...
I'm having memory problems and think it might have to do with creating large bitmaps.
The task at hand is to get a fairly small tile image and create a larger tiled image and set this as the phone wallpaper. The way I'm doing this is:
1) Create a view that is 2 * screen width, 1 * screen height
2) Set the view background to a ...
Hi guys,
There what I am trying to do :
I am calling a WebService that send me back an image.
I get it from the entity.getContent() method.
Further in my code I try to use de BitmapFactory.decodeByteArray(myImage, 0, myImage.lenght) but the Bitmap that it returns me is always null
Does someone have an idea ?
...
When I run the following code:
Bitmap scaledBitmap = bitmap.createScaledBitmap(bitmap, 32, 32, true);
my bitmap goes from white to black.
My question is, why would this happen?
Does scaling disturb the bitmap's transparency?
...
Hi .
Can give an example of how to send jpg and some texts from flash to php in ONE CLICK ? I`m realy annoyed of that ..
...
Hi!
I need to save Bitmap object loaded from image file (.png, .jpeg, .bmp) and save it as an icon (.ico) to a separate file.
First I tried saving Bitmap object to a file with Icon ImageFormat:
using System.Drawing;
Bitmap bmp = (Bitmap)pictureBox1.Image;
bmp.Save(@"C:\icon.ico", Imaging.ImageFormat.Icon);
This one fails, as the ic...
Hi
I want to convert raw bytes stream into h.263 using encoder and decoder in C#. but have not find any answer relating to that. Can anybody tell me how to code that encoder and decoder in C# so that raw bytes stream will convert into h.263 and vice versa?
Thanks
...