bitmap image
I am using paint. I want to save a picture as bmp. What is the difference in 16 colors, 24-bit, and 256 color bitmap?
I am using paint. I want to save a picture as bmp. What is the difference in 16 colors, 24-bit, and 256 color bitmap?
=============================================
Your option of higher quality would be 24-bit.
Perhaps the following links will enlighten us:
BMP - Windows Bitmap Format FAQhttp://www.faqs.org/faqs/graphics/fileformats-faq/part3/section-18.html
http://atlc.sourceforge.net/bmp.html BMP format
John Inzer - MS - MVP - Digital Media Experience - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.
Tags: Windows
Similar Questions
-
I get an "OLE" instead of a Bitmap image when you drag an image from Firefox to CorelDraw X 4, how do I prevent this?
First, drag the image on the desktop, and drag it to Corel Draw. If your dragging directly from firefox to Corel Draw, only copied link.
-
get the Bitmap Image of the web site or remote location
Hi, yesterday I asked for some ease of image horizontal scorlling with blackberry. It's work very well. Thank you for all.
But I could not do my job. What I need, that I have to get the Image from a web site (not in the project of ths) and display it in the BB device. I can do this and I get byte array and show the image using BitmapField. But this installation of scrolling does not work with the bitmap field.
Is is them possible to get my web site dynamic images of the Bitmap object?
Here is the code that you sent me.
// ------------------------------------------
package com.falseflag.blackberry.recipes;
Import net.rim.device.api.system.Bitmap;
Import net.rim.device.api.ui.Graphics;
Import net.rim.device.api.ui.UiApplication;
Import net.rim.device.api.ui.component.Dialog;
Import net.rim.device.api.ui.container.MainScreen;class ScrollingImageRecipe extends UiApplication {}
private class ScrollingImageScreen extends form {}
private static final int HORZ_SCROLL_FACTOR = 10;
private static final int VERT_SCROLL_FACTOR = 10;Bitmap bitmap;
int left = 0;
high int = 0;
int maxLeft = 0;
maxTop int = 0;
public ScrollingImageScreen() {}
bitmap image = Bitmap.getBitmapResource ("test.png");
If (bitmap == null) {}
UiApplication.getUiApplication () .invokeLater (new Runnable() {}
public void run() {}
Dialog.Alert ("Failed to load image");
System.Exit (0);
}
});
return;
}
If (bitmap.getWidth () > Graphics.getScreenWidth ()) {}
maxLeft = bitmap.getWidth () - Graphics.getScreenWidth ();
}
If (bitmap.getHeight () > Graphics.getScreenHeight ()) {}
maxTop = bitmap.getHeight () - Graphics.getScreenHeight ();
}
}
protected void paint (Graphics graphics) {}
If (bitmap! = null) {}
graphics.drawBitmap (0, 0, Graphics.getScreenWidth (), Graphics.getScreenHeight (),
bitmap, left, top);
}
}
protected boolean navigationMovement (int dx, int dy, int, int time status) {}
left += (dx * HORZ_SCROLL_FACTOR);
top += (dy * VERT_SCROLL_FACTOR);If (on the left< 0)="" left="">
If (upper-< 0)="" top="">
If (left > maxLeft) left = maxLeft;
If (top > maxTop) top = maxTop;Invalidate();
Returns true;
}
}Public Shared Sub main (String [] args) {}
ScrollingImageRecipe app = new ScrollingImageRecipe();
app.enterEventDispatcher ();
}
{ScrollingImageRecipe()}
pushScreen (new ScrollingImageScreen());
}}
//-------------------------------
Please be so kind to give me a solution for this issue.
You can use a browserfield to display web content in your application. Take a look at the browserfielddemo provided with the BlackBerry JDE for example
If you ask how to connect to a web site, please see the httpdemo.
This example shows how to create a scrolling image field.
-Creates a scrolling Image field
Article number: DB-00681 -
Problem with a Bitmap image in a ButtonField (get a 104 NullPointerException error)
Hi, I'm a beginner in programming BlackBerry Apps, well...
I tried to create a simple ButtonField customized with a bitmap inside, but I constantly get an error 104 eception: NullPointerException, here is my code to field custom buttond.
import net.rim.device.api.ui.component.ButtonField;import net.rim.device.api.ui.Graphics;import net.rim.device.api.system.Bitmap; public class CustomButtonField extends ButtonField{ private Bitmap imagen; CustomButtonField(Bitmap imagen, long style){ super(style); this.imagen = imagen; } public int getPreferredWidth(){ return 60; } public int getPreferredHeight(){ return 60; } protected void paint(Graphics graphics) { graphics.drawBitmap(0, 0, imagen.getWidth(), imagen.getHeight(), imagen, 0, 0); } protected void layout(int width, int height) { setExtent(getPreferredWidth(), getPreferredHeight()); } }
import net.rim.device.api.ui.container.MainScreen;import net.rim.device.api.system.Bitmap; public class PruebaScreen extends MainScreen{ private CustomButtonField boton; PruebaScreen(){ Bitmap imagen = Bitmap.getBitmapResource("res/img/icon.png"); boton = new CustomButtonField(imagen, 0); add(boton); }}
I suspect that my problem is due to the method of painting or the page layout, I don't know... I hope someone can help me, thank you very much in advance.
Check if your getBitmapResource returns any non-null Bitmap image. Specify the path correctly may take a few tries ("' / res/img/icon.png '," img/icon.png", etc.")
-
How to convert the Bitmap Image in BlackBerry
Hello
In my application, I get the picture from the server. Now, I want to convert this Bitmap Image to display on the screen. For this I use below codes. But it doesn't give me the same image does not mean with the clarity and the exact size. He's smaller than the picture.
I used the codes below:
private Bitmap getBitmapFromImg(Image img) { Bitmap bmp = null; try { Logger.out(TAG, "It is inside the the image conversion " +img); Image image = Image.createImage(img); byte[] data = BMPGenerator.encodeBMP(image); Logger.out(TAG, "It is inside the the image conversion---333333333"+data); bmp = Bitmap.createBitmapFromBytes(data, 0, data.length, 1); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } return bmp; // TODO Auto-generated method stub }
Here is the BMPGenerator class:
public final class BMPGenerator { /** * @param image * @return * @throws IOException * @see {@link #encodeBMP(int[], int, int)} */ public static byte[] encodeBMP(Image image) throws IOException { int width = image.getWidth(); int height = image.getHeight(); int[] rgb = new int[height * width]; image.getRGB(rgb, 0, width, 0, 0, width, height); return encodeBMP(rgb, width, height); } /** * A self-contained BMP generator, which takes a byte array (without any unusual * offsets) extracted from an {@link Image}. The target platform is J2ME. You may * wish to use the convenience method {@link #encodeBMP(Image)} instead of this. *
* A BMP file consists of 4 parts:- *
-
*
- header *
- information header *
- optional palette *
- image data *
Where an error in my code? Is there another way to do the same thing?
Why you want to use a bmp image?
You can just use png, jpg or whatever of the original image is.
If there is a situation where you need the bitmap image call http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/EncodedImage.html#getBi... -
scrolling problem large bitmap image
City previous forums:
Comments: comments scrolling problem large bitmap image Posted: Sep 28, 2007 14:47 I want to scroll through a large bitmap image.i have read previous threads.i have added a null field before bitmap field. But the big picture scrolls, but shows an arrow down.
Please help me.
Thanks in advance.wang0043 Messages: 12
Join date: September 2007Re: image to large bitmap scrolling problem Posted the: October 1, 2007 03:35 I have the same problem. After testing different ways using the BitmapField, I just changed paint the bitmap on the screen instead. More write the paint method and use drawbitmap to draw the bitmap to the screen. Track action wheelball to paint the bitmap can achieve the effect of view. Comments Re: image to large bitmap scrolling problem Posted the: 3 October 2007 18:10 Can you guys post the code on how it's done?
Thank youComments: vicky Re: image to large bitmap scrolling problem Posted the: July 19, 2008 02:33 Hello I get the same scrolling image problem. Can you please suggest some way
thanx
What kind of manager added the BitmapField to? The support of the Manager there vertical or horizontal scrolling style defined?
Here is an example of code that I use to show how to scroll through a screen image:
The image of "test.png" is in the same folder as the source of java if you want to download that as well.
-
Bitmap image does not appear when other fields added
Hello
I have a VerticalFieldManager with a bitmap and a few fields (code below).
I add to an another VFM then call setBitmapField when the tile is
downloaded in another thread.The code below when the bitmap is set, the other fields, move to the
right to leave a space for the bitmap image, but the image bitmap is not visible.If I remove:
This.Add (this.authorField);
and code layout corresponding to sublayout, the bitmap fine watch.
What I am doing wrong?
---
class Item extends VerticalFieldManager { public BitmapField thumbField; public Bitmap image = null; private LabelField titleField; public LabelField authorField; public Item(ItemData item) { this.thumbField = new BitmapField(); this.titleField = new LabelField(item.title, FOCUSABLE); Font fnt = this.getFont().derive(Font.PLAIN, titleField.getFont().getHeight() - 1); this.titleField.setFont(fnt); this.authorField = new LabelField(item.author); Font fnt2 = this.getFont().derive(Font.PLAIN, authorField.getFont().getHeight() - 3); this.authorField.setFont(fnt2); this.add(this.thumbField); this.add(this.titleField); this.add(this.authorField); } public void setBitmapField(Bitmap _image) { this.image = _image; this.thumbField.setBitmap(_image); this.invalidate(); } protected void sublayout(int width, int height) { if (getFieldCount() > 0) { BitmapField _thumbField = (BitmapField)getField(0); layoutChild(_thumbField, _thumbField.getBitmapWidth(), _thumbField.getBitmapHeight()); setPositionChild(_thumbField, 0, 0); int thumbWidth = _thumbField.getWidth(); Field _titleField = getField(1); layoutChild(_titleField, width - thumbWidth, _titleField.getHeight()); setPositionChild(_titleField, thumbWidth + 5, 0); Field _authorField = getField(2); layoutChild(_authorField, width - thumbWidth, _authorField.getHeight()); setPositionChild(_authorField, thumbWidth + 5, _titleField.getHeight()); setExtent(width, _titleField.getHeight() + _authorField.getHeight() + 2); } } }
I have it! Had to extend Manager rather than VerticalFieldManager. Assumes that the optimization of the resources are so limited in-house as how fields can be arranged. Makes sense.
-
How to change the bitmap image in blackberry
Hello
1. work on the version of BB storm (9500/9530 Simulator) is v4.7.0.75
2 opportunity BB JDE 4.7
3. the request is:I display a bitmap image by using the drawBitmap method. now I want to select a portion of the bitmap, and then I need to cut & paste the part somewhere in the screen (MSPaint we have option 'Select').
is there any method that will make the similar operation (or) any idea to accomplish this in blackberry.
Thank you
Sendhil Kumar V
Take a look at this thread and refers to the J2ME code:
http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=24929
The 'trick' is getARGB() and setARGB(). As long as you check out relevant Bitmap Moose ARGB values, you should be able to create a new Bitmap. That said, I never did. Let us know how you go.
-
PaintBackgound of screen does not paint my bitmap image, but don't paint screen?
There is something I don't understand with the paint and screen paintBackground.
I am trying to add a background (Bitmap) image to my final class that extends screen and add a VerticalFieldManager on top of the background image.
Screen.Paint painted my Bitmap, but hides the VerticalFieldManager:
protected void paint(Graphics graphics) { graphics.clear(); graphics.drawBitmap(0, 0, deviceWidth, deviceHeight, bgBitmap, 0, 0); super.paint(graphics); }
However, Screen.paintBackground does not paint my Bitmap or my VerticalFieldManager, and I have a blank white screen?
protected void paintBackground(Graphics graphics) { graphics.clear(); graphics.drawBitmap(0, 0, deviceWidth, deviceHeight, bgBitmap, 0, 0); super.paintBackground(graphics); }
The API of the playback screen, I thought paintBackground was the right way to achieve this?
It's an old bug in BB - do not trust Screen.paintBackground (especially MainScreen.paintBackground!). PaintBackground of your Manager is a much better place for it (I know it is not documented, but if you read the Screen.paintBackground you will see it's substitute Field.paintBackground.).
-
Cannot select more than one bitmap image in desktop Animate
I can't select more than one bitmap image in desktop Animate. Always select the same object, what should I do?
I guess these bitmaps are on the scene. They are all on the same layer? Who is always selected is large and, perhaps, on top of all the others?
If the bitmaps are all on one layer, you can separate each in separate layers. Once you do this, you can lock / unlock layers individually so that you can work with one image at a time.
-
No color for the Bitmap Images after upgrade
I've updated to ID 2015.4 (Build 11.4.0.90) and now all my bitmap images that have a color not found in the documents. Export a PDF images work as expected. Overview of images of gray as expected.
What is a change or a bug regarding bitmaps?
This is a bug. The solution is to turn on view > overprint preview.
-
Problem with bitmap images within the AI CC
I seem to have this problem to use the images seen in Photoshop look clean and high resolution, but when placed inside an AI CC file, or when HAVE is exported for the customer, looks jagged and pixilated.
First of all, here is the read logo to the PSD. As you'll see it's quite clean and high resolution:
So here is this exact logo even after that I placed it in a file Illustrator CC. Note the surrounding vector images are clean - as it should-, but the logo does not look clean at all:
When I export the JPG or PNG file, everything looks good, as it should, except the logo. I'm really strung on what do about it. I know I could re - create the logo that you see in the above photos, but that would be a lot of work and there must be a way to get a bitmap image to work inside AI CC image. All the tips are greatly appreciated. Thank you.
I don't see any reason why this shouldn't work, but it does indeed seem horrible.
Have you tried to disable the GPU preview?
You can do this in preferences > performance GPU and untick the box Performance GPU.
You can also temporarily switch using Cmd/Ctrl E.
I have searched the logo, found a SVG version (so you can use a vectorized version), opened in artificial intelligence.
Also, I opened the version HAVE in Photoshop and saved as a psd.
It displays perfectly crisp and clear in Illustrator.
-
CS6 - trying to convert an RGB bitmap image
CS6 - trying to convert an RGB bitmap image (the image is actually a tif). I click on: Image > Mode and bitmap is enabled; everything is grayed out except grayscale. How can I fix it? Thank you!
Convert to grayscale first, followed by RGB.
-
My Flash is some of my making it invisible bitmap images. Any ideas?
I created a flash game. Some of my bitmap images that have been copied from images online in Flash are invisible when you test the Flash animation. However, they are normal in trying to edit them in Flash. They have worked before and I don't know what I did to prevent them from working. It is only the images created outside of Flash that do, apparently, although some images from other sources are working normally.
A bitmap is also being turned into a black box the size of the bitmap image, I don't know why either.
Any ideas, anyone?
This happens a bit in several products.
For example, to copy an image with transparency of Photoshop and paste it into Flash (not more transparency). Several programs have limited the Clipboard feature.
Although Photoshop shouldn't really have this problem. GIMP can stick an image copied in transparency and stick it in perfectly good Flash.
The difficulty for me has always been, never copy and paste image data directly. Save the image to your disk, then recorded the import file. This should work much better for you. This avoids the Clipboard entirely.
-
I'm looking for swatches in bitmap images
Hi all
I can't find the color chart in bitmap images, like finding objects to fill color
Help would be appreciated.
var mydoc = app.documents.item (0)
var myobjects = mydoc.splineItems.everyItem () .getElements ();
for (i = 0; i < myobjects.length; i ++) {}
var myobject = myobjects [i];
If {(myobject.fillColor.name=="FINISHING)"}
myobject.itemLayer = mydoc.layers.item ("LASER");
}
}
Thank you
Hello
... or change this line:
...
if ( myobject.graphics.count() &&
...
Jarek
-
How can I convert bitmap image to PDF
How can I convert bitmap image to PDF
Save it as a PDF file from any application that supports, which includes Photoshop and Illustrator or Acrobat itself. If nay, no matter, because there is no magic to your file - pixels are pixels and you might just as wel lsend your JPEG or any such as she.
Mylenium
Maybe you are looking for
-
The computer is very slow, and I just fill the MEM 28 GB? How can I upgrade RAM and MEM?
-
Dual Boot Linux and Windows with HDDRecovery problem
Hello I use the dual operating system Windows Vista and Linux open SUSE distribution on Toshiba Satellite A350-10z, everything works great except Windows Recovery. I have Linux (start: dev / sda6) and Windows Vista (starting: dev / sda2). Windows has
-
Cannot find the driver (Windows 8 pro)
Please help me... I'm unable to find a driver for my laptop HP Pavallion 15n-204tx type-other peripheral devices Reference of the manufacturer-unknown location - PCI root complex
-
SE message virus MS must be purchased and registered
computer infected by a spyware and viruises ms antiviruis keeps poping up to purchuse page and tell me I need to sign up and don't leave open any appalictions or download any malware or antiviruis proctation* original title - can someone tell me how
-
The interface VLAN ACL of inbound traffic?
Hi, I may be over thinking this, but I have an ACL that is applied when entering an interface vlan. I have a line to allow udp any any newspaper which is temporary. I see hits, but the source ip address is outside the network to the ip address of the