Problems with image display
Hi, I am new to J2ME, and this forum as well. I am writing a small MIDlet to display an image using WTK1.4. The problem is that the image (500X400) is not being displayed wholly on the emulator screen. In fact, only a very small portion of it is being displayed.
Is there any way to resize (scale down) the image, or make the screen scrollable (up-down, left-right) so that the entire image can be displayed? Help will be highly appreciated.
Thank you.
In midp1 you can not scale images
Similar Messages
-
Experiencing problem with image display in LR5
I have an intermittent problem with images displaying and exporting in LR. It just began a couple of months ago and is totally random - will do it with RAW (CR2) or JPG. It displays this way in all modules - Library, Develop, Slideshow....The image displays fine in a non-Adobe image viewer (Faststone or Windows Viewer). I've reloaded LR5 and PSCC and is still persists. I know the image file is fine. It also has begun effecting older images that were showing up just fine a while ago. I just loaded about 200 images and maybe 3 or so have this viewing problem in LR & PS. Has anyone else experienced it and have a suggested fix? My graphics card has the latest drivers and shows no problems with other applications. Here is the same image - one a jpg export from Lighroom, the other a save as jpg from Faststone. HELP!
This is almost always a hardware problem, causing corruption of the file. The difference you see between Lightroom and other software is that Lightroom is accessing the full RAW image, while the other software is trying to read the embedded JPG preview.
To figure out exactly what hardware is the problem, you need to try different transmission paths and hardware ... different camera cards, different card readers or USB cables/USB ports, different hard disks, etc. Eventually you should be able to isolate the problem. -
here is a sample code i need the image to be displayed on button click but the following code is giving some exceptions.
could u please make out where i am going wrong
import java.awt.BorderLayout;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.JApplet;
import javax.swing.JButton;
public class NewJApplet extends JApplet implements MouseListener{
imagePanel imp;
private JButton draw;
* Initialization method that will be called after the applet is loaded
* into the browser.
public void init() {
imp=new imagePanel(this.getGraphics());
draw=new JButton("draw");
addMouseListener(this);
makegui();
public void makegui()
setLayout(new BorderLayout());
add(BorderLayout.NORTH,draw);
add(BorderLayout.CENTER,imp);
imp.setVisible(false);
public void mouseClicked(MouseEvent e) {
if(e.getSource()==draw)
System.out.println("Clicked");
repaint();
imp.setVisible(true);
public void mousePressed(MouseEvent e) {
// throw new UnsupportedOperationException("Not supported yet.");
public void mouseReleased(MouseEvent e) {
// throw new UnsupportedOperationException("Not supported yet.");
public void mouseEntered(MouseEvent e) {
// throw new UnsupportedOperationException("Not supported yet.");
public void mouseExited(MouseEvent e) {
// throw new UnsupportedOperationException("Not supported yet.");
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Toolkit;
import javax.swing.JPanel;
public class imagePanel extends JPanel {
private Image img=null;
Graphics gmain;
public imagePanel(Graphics g)
this.gmain=g;
img=Toolkit.getDefaultToolkit().getImage("C:\\Documents and Settings\\sakshi\\My Documents\\NetBeansProjects\\Imagetry1\\1.jpg");
public void paintComponent(Graphics g)
gmain.drawImage(img, 100, 100, null);
System.out.println("printing ");
}>
here is a sample code i need the image to be displayed on button click but the following code is giving some exceptions.
could u please make out where i am going wrong>In addition to the valuable information on the first reply..
1) This applet is attempting to read a File. While it is possible for a signed/trusted applet to create a File and access it, it is usually impractical for an applet, since the File path will not point to anywhere on the server, but to a place on the client file-system. Instead look to use URLs for resources in applets. The Applet class has handy methods for forming URLs to resources relative to the code base or document base. You might need to alter the imagePanel constructor to accept that URL.
2) BTW - imagePanel should be called ImagePanel. The Java nomenclature (naming) conventions indicate EveryWordUpperCaseClass names, camelCaseMethod() names, and camelCaseAttribute names.
3) Sentences should start with a single upper case letter. This helps the reader to quickly scan text, looking for ways they can help. You would not want to make it harder for people who are trying to help, would you?
4) The word 'I' should be always upper case, always.
5) Please take the effort to spell words fully. E.G. 'u' -> 'you'. For the sake of saving two letters, it makes people appear to be lazy dopes. -
Editing in PS CS 5 / re-save edited version back to Aperture problems with image display
I use Aperture and send images into CS 5 but since latest Aperture update the images don't always display the adjusted version. A re-start of Aperture is required. Any suggestions appreciated. Never had any issues before.
If you are running AP 3.2.3, you may be experiencing a known issue:
http://support.apple.com/kb/TS4237
We are waiting on a fix from Apple. -
Problem with images opened in Photoshop CS 5
Hi, I have a problem with images that I open in Photoshop CS 5. F. ex. I opened
the following image:
The image appears with a purple color in Photoshop. If I hover over the image
with a tool like lasso, it temporarily regains it´s original color. The image mode is RGB Color, 8 Bits/Channel.
I resetted the start settings of Photoshop with the CTRL-Shift-Alt-combination, which had no effect.The confusion arises from the imprecise error message in the Preferences > Performance dialog box, to wit:
OK, that seems to be open to misunderstanding indeed.
The video card: Citrix Systems Inc. Display Driver.
Could not find a list for CS6 specifically, but the card may fall short.
http://helpx.adobe.com/photoshop/kb/tested-video-cards-photoshop-cs5.html
If I invoke View > Proof Colors, the only thing that changes is that the text in the brackets
Also if you set View > Proof Setup to something different?
Boilerplate-text:
Are Photoshop and OS fully updated and have you performed the usual trouble-shooting routines (trashing prefs by keeping command-alt-shift/ctrl-alt-shift pressed while starting Photoshop, 3rd party plug-ins deactivation, system maintenance, cleaning caches, font validation, etc.)? -
Problem with Image.createImage()
Hi all!
I'm writing a simple midlet just to display an image on the screen and I'm having some problems with Image.createImage()
Here is my code
Image bg_img;
ImageItem imageItem1;
imageItem1 = new ImageItem("", null,ImageItem.LAYOUT_DEFAULT, "");
try{
bg_img = Image.createImage("/image.png");
imageItem1.setImage(bg_img);
catch(java.io.IOException e){
e.printStackTrace();
I'm getting an exception on bg_img = Image.createImage("/image.png");
I can't understand what is it...:(
I know for sure that the problem is not "file not found"
Any one can help me???If you are catching IOException, then u may have problem with ur image path. "image not found on the specified path." if ur image is not in the current directiry then put it into current directory. otherwise, If u are using resouce folder and it is already included into the resouce path, then put ur image in that folder..try this..
Still not get, then please give some detail about ur development toolkit. and ur apllication packaging scheem. are you using ANT?
Pranav -
Photoshop has encountered a problem with the display driver
I rummaged around in here looking at opengl topics and others associated with the above error, but I'm not seeing what I'm encountering (or I am and I don't recognize it!).....
I bought CS4 a week or so ago, and installed it on a system running XP32 with service pack 3, 4GB of ram withe the /3GB switch set, nVidia 8600 GT card (which according to the list is supported), and multiple spindles for images, scratch, applications, and so on. I found other topics earlier so I downloaded the most recent drivers for my video card.
I'm not crashing and burning, but I'm getting some messages...
I opened an image, and while working on it I wanted to do a transform/warp. I got the message that Photoshop couldn't perform the operation because there wasn't enough memory. It didn't crash but I had to shut down CS4 and restart it to do the warp.
Most recently I opened a couple images for a panorama, and while doing the merge I got the message that "Photoshop has encountered a problem with the display driver and has temporarily disabled gpu enhancements." It tells me to check for the latest drivers - I've ALREADY got the lastest drivers. Again, no crash, just the warning. It completed the panorama.
There have been a couple other occurrences of messages of this type, so I'm curious if there's some set of preferences or system settting I need to adjust to optimize things? I've alrady adjusted the nVidia settings because I also run Lightroom and they're having problems too.
I've read the tech notes for the video and such and didn't find any set of optimizations there so is there a set of adjustments beyond the preferences that needs to be adjusted to improve memory and video performance? And if so, can someone point me to them.As I understand it (suspect at best) XP32 can address 4 gig of memory. the /3gb switch lets the applications get at 3 gig of that. If my video card takes the first 256MB, and XP is guaranteed the other 750 of the 1st gig, and in the CS4 performance preferences I should be giving it from 1462 - 1895 MB (I've given it around 1890), that leaves me with another gig or so... Is that limited to applications or can XP use it? In any case, I'm not crashing, I just get the message every so often about being out of memory. I don't recall ever seeing this with CS3, but new version, new oddities...
-
Every time I try to open photoshop I get a window that pops up and says:
"Photoshop has encountered a problem with the display driver, and has temporarily disabled GPU enhancements. Check the video card manufacturer's website for the latest software.
GPU enhancements can be enable in the Performance panel of Preferences."
Then windows shuts the program down. The details of the problem are:
"Files that help describe the problem:
C:\Users\Owner\AppData\Local\Temp\WER70AD.tmp.WERInternalMetadata.xml
C:\Users\Owner\AppData\Local\Temp\WER9389.tmp.appcompat.txt
C:\Users\Owner\AppData\Local\Temp\WER9407.tmp.hdmp"
I'm on a custom Asus
I'm using Win7 Home Premium 64-bit
16GB RAM
Nvidia Geforce GTX 560 2GB video card
Intel i7 core 2.2 GHz
12 GB of memory
The error happens so quickly that I don't have time to do anything. Please help. >.< I've been on hold for *checks phone* 2 hours exactly. Wow. It is a legit copy and was working last month with no trouble. I've updated the drivers and tried a few solutions that have worked for other people that I found on Google (such as disabling CUDA and setting my "power management mode" to "prefer maximum performance" on my video card) but so far nothing has worked.
Thanks in advance!It has stopped crashing because somehow it turned off "Enable GL Drawing" on its own because I could never even get a menu open. Not sure how it did that but I am grateful. I still get the error when I open Photoshop up but at least it hasn't crashed yet. At the time when it was crashing I never would have been able to get you the system info due to the speed that it was crashing upon just opening the program. In case you still need it:
Adobe Photoshop Version: 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch]) x64
Operating System: Windows 7 64-bit
Version: 6.1 Service Pack 1
System architecture: Intel CPU Family:6, Model:10, Stepping:7 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2
Physical processor count: 8
Processor speed: 2394 MHz
Built-in memory: 16361 MB
Free memory: 13322 MB
Memory available to Photoshop: 14694 MB
Memory used by Photoshop: 60 %
Image tile size: 128K
Image cache levels: 4
OpenGL Drawing: Disabled.
OpenGL Drawing Mode: Basic
OpenGL Allow Normal Mode: True.
OpenGL Allow Advanced Mode: False.
OpenGL Crash File: Detected.
OpenGL Allow Old GPUs: Not Detected.
Video Card Vendor: NVIDIA Corporation
Video Card Renderer: GeForce GTX 560M/PCIe/SSE2
Display: 1
Display Bounds:= top: 0, left: 0, bottom: 1080, right: 1920
Video Card Number: 1
Video Card: NVIDIA GeForce GTX 560M
Driver Version: 9.18.13.697
Driver Date: 20121002000000.000000-000
Video Card Driver: nvd3dumx.dll,nvwgf2umx.dll,nvwgf2umx.dll,nvd3dum,nvwgf2um,nvwgf2um
Video Mode: 1920 x 1080 x 4294967296 colors
Video Card Caption: NVIDIA GeForce GTX 560M
Video Card Memory: -2047 MB
Serial number: 92628077745082451425
Application folder: C:\Program Files\Adobe\Adobe Photoshop CS5.1 (64 Bit)\
Temporary file path: C:\Users\Owner\AppData\Local\Temp\
Photoshop scratch has async I/O enabled
Scratch volume(s):
C:\, 931.4G, 511.4G free
Primary Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CS5.1 (64 Bit)\Plug-ins\
Additional Plug-ins folder: not set
Installed components:
A3DLIBS.dll A3DLIB Dynamic Link Library 9.2.0.112
ACE.dll ACE 2010/12/13-23:37:10 64.449933 64.449933
adbeape.dll Adobe APE 2011/01/17-12:03:36 64.452786 64.452786
AdobeLinguistic.dll Adobe Linguisitc Library 5.0.0
AdobeOwl.dll Adobe Owl 2010/06/03-13:43:23 3.0.93 61.433187
AdobeOwlCanvas.dll Adobe Owl Canvas 3.0.68 61.2954
AdobePDFL.dll PDFL 2010/12/13-23:37:10 64.341419 64.341419
AdobePIP.dll Adobe Product Improvement Program 5.5.0.1265
AdobeXMP.dll Adobe XMP Core 5.0 64.140949
AdobeXMPFiles.dll Adobe XMP Files 5.0 64.140949
AdobeXMPScript.dll Adobe XMP Script 5.0 64.140949
adobe_caps.dll Adobe CAPS 4,0,42,0
adobe_OOBE_Launcher.dll Adobe OOBE Launcher 2.0.0.36 (BuildVersion: 2.0; BuildDate: Mon Jan 24 2011 21:49:00) 1.000000
AFlame.dll AFlame 2011/01/10-23:33:35 64.444140 64.444140
AFlamingo.dll AFlamingo 2011/01/10-23:33:35 64.436825 64.436825
AGM.dll AGM 2010/12/13-23:37:10 64.449933 64.449933
ahclient.dll AdobeHelp Dynamic Link Library 1,6,0,20
aif_core.dll AIF 2.0 53.422628
aif_ogl.dll AIF 2.0 53.422628
amtlib.dll AMTLib (64 Bit) 4.0.0.21 (BuildVersion: 4.0; BuildDate: Mon Jan 24 2011 21:49:00) 1.000000
amtservices.dll AMTServices (64 Bit) 4.0.0.21 (BuildVersion: 4.0; BuildDate: Mon Jan 24 2011 21:49:00) 1.000000
ARE.dll ARE 2010/12/13-23:37:10 64.449933 64.449933
asneu.dll AsnEndUser Dynamic Link Library 1, 7, 0, 1
AXE8SharedExpat.dll AXE8SharedExpat 2011/01/10-23:33:35 64.436825 64.436825
AXEDOMCore.dll AXEDOMCore 2011/01/10-23:33:35 64.436825 64.436825
Bib.dll BIB 2010/12/13-23:37:10 64.449933 64.449933
BIBUtils.dll BIBUtils 2010/12/13-23:37:10 64.449933 64.449933
boost_threads.dll DVA Product 5.0.0
cg.dll NVIDIA Cg Runtime 2.0.0015
cgGL.dll NVIDIA Cg Runtime 2.0.0015
CoolType.dll CoolType 2010/12/13-23:37:10 64.449933 64.449933
data_flow.dll AIF 2.0 53.422628
dvaadameve.dll DVA Product 5.0.0
dvacore.dll DVA Product 5.0.0
dvaui.dll DVA Product 5.0.0
ExtendScript.dll ExtendScript 2011/01/17-17:14:10 61.452840 61.452840
FileInfo.dll Adobe XMP FileInfo 5.0 64.140949
icucnv36.dll International Components for Unicode 2009/06/17-13:21:03 Build gtlib_main.9896
icudt36.dll International Components for Unicode 2009/06/17-13:21:03 Build gtlib_main.9896
image_flow.dll AIF 2.0 53.422628
image_runtime.dll AIF 2.0 53.422628
JP2KLib.dll JP2KLib 2010/12/13-23:37:10 64.181312 64.181312
libifcoremd.dll Intel(r) Visual Fortran Compiler 10.0 (Update A)
libmmd.dll Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler 10.0
LogSession.dll LogSession 2.1.2.1263
MPS.dll MPS 2010/12/13-23:37:10 64.450375 64.450375
msvcm80.dll Microsoft® Visual Studio® 2005 8.00.50727.6195
msvcm90.dll Microsoft® Visual Studio® 2008 9.00.30729.4940
msvcp80.dll Microsoft® Visual Studio® 2005 8.00.50727.6195
msvcp90.dll Microsoft® Visual Studio® 2008 9.00.30729.4940
msvcr80.dll Microsoft® Visual Studio® 2005 8.00.50727.6195
msvcr90.dll Microsoft® Visual Studio® 2008 9.00.30729.4940
pdfsettings.dll Adobe PDFSettings 1.04
Photoshop.dll Adobe Photoshop CS5.1 CS5.1
Plugin.dll Adobe Photoshop CS5 CS5
PlugPlug.dll Adobe(R) CSXS PlugPlug Standard Dll (64 bit) 2.5.0.232
PSArt.dll Adobe Photoshop CS5.1 CS5.1
PSViews.dll Adobe Photoshop CS5.1 CS5.1
SCCore.dll ScCore 2011/01/17-17:14:10 61.452840 61.452840
tbb.dll Threading Building Blocks 2, 1, 2009, 0201
TfFontMgr.dll FontMgr 9.3.0.113
TfKernel.dll Kernel 9.3.0.113
TFKGEOM.dll Kernel Geom 9.3.0.113
TFUGEOM.dll Adobe, UGeom© 9.3.0.113
updaternotifications.dll Adobe Updater Notifications Library 2.0.0.15 (BuildVersion: 1.0; BuildDate: BUILDDATETIME) 2.0.0.15
WRServices.dll WRServices Thursday January 21 2010 12:13:3 Build 0.11423 0.11423
wu3d.dll U3D Writer 9.3.0.113
Installed plug-ins:
3D Studio 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Accented Edges 12.0
ADM 3.11x01
Angled Strokes 12.0
Average 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Bas Relief 12.0
BMP 12.0.2
Camera Raw 6.7
Chalk & Charcoal 12.0
Charcoal 12.0
Chrome 12.0
Cineon 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Clouds 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Collada 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Color Halftone 12.0.2
Colored Pencil 12.0
CompuServe GIF 12.0.2
Conté Crayon 12.0
Craquelure 12.0
Crop and Straighten Photos 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Crop and Straighten Photos Filter 12.0.2
Crosshatch 12.0
Crystallize 12.0.2
Cutout 12.0
Dark Strokes 12.0
De-Interlace 12.0.2
Dicom 12.0
Difference Clouds 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Diffuse Glow 12.0
Displace 12.0.2
Dry Brush 12.0
Eazel Acquire 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Embed Watermark 4.0
Entropy 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Extrude 12.0.2
FastCore Routines 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Fibers 12.0.2
Film Grain 12.0
Filter Gallery 12.0
Fresco 12.0
Glass 12.0
Glowing Edges 12.0
Google Earth 4 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Grain 12.0
Graphic Pen 12.0
Halftone Pattern 12.0
HDRMergeUI 12.0
IFF Format 12.0.2
Ink Outlines 12.0
JPEG 2000 2.0
Kurtosis 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Lens Blur 12.0
Lens Correction 12.0.2
Lens Flare 12.0.2
Lighting Effects 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Liquify 12.0.1
Matlab Operation 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Maximum 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Mean 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Measurement Core 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Median 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Mezzotint 12.0.2
Minimum 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
MMXCore Routines 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Mosaic Tiles 12.0
Multiprocessor Support 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Neon Glow 12.0
Note Paper 12.0
NTSC Colors 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Ocean Ripple 12.0
OpenEXR 12.0.2
Paint Daubs 12.0
Palette Knife 12.0
Patchwork 12.0
Paths to Illustrator 12.0.2
PCX 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Photocopy 12.0
Photoshop 3D Engine 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Picture Package Filter 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Pinch 12.0.2
Pixar 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Plaster 12.0
Plastic Wrap 12.0
PNG 12.0.2
Pointillize 12.0.2
Polar Coordinates 12.0.2
Portable Bit Map 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Poster Edges 12.0
Radial Blur 12.0.2
Radiance 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Range 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Read Watermark 4.0
Reticulation 12.0
Ripple 12.0.2
Rough Pastels 12.0
Save for Web & Devices 12.0
ScriptingSupport 12.1
Shear 12.0.2
Skewness 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Smart Blur 12.0.2
Smudge Stick 12.0
Solarize 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Spatter 12.0
Spherize 12.0.2
Sponge 12.0
Sprayed Strokes 12.0
Stained Glass 12.0
Stamp 12.0
Standard Deviation 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Sumi-e 12.0
Summation 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Targa 12.0.2
Texturizer 12.0
Tiles 12.0.2
Torn Edges 12.0
Twirl 12.0.2
U3D 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Underpainting 12.0
Vanishing Point 12.0
Variance 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Variations 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Water Paper 12.0
Watercolor 12.0
Wave 12.0.2
Wavefront|OBJ 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
WIA Support 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Wind 12.0.2
Wireless Bitmap 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
ZigZag 12.0.2
Plug-ins that failed to load: NONE
Flash:
Mini Bridge
Kuler
Access CS Live
CS Review
Installed TWAIN devices: NONE -
Hi,
Iam facing with one problem.I have one swing interface through which I can upload files(back end servlet programme).Now I can upload all types of file but problem with image file it uploading perfectly that means size of the uploaded file is ok but its format damaged.It can not be open.My backend servlet programme is ok coz i tested it with html form it is working perfectly.Problem with swing interface.Plz guide me where I done a mistake.Below r my codes:-
ImageIcon Upload=new ImageIcon("images/Upload.gif");
Button=new JButton(Upload);
Button.setToolTipText("Upload");
Button.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent e)
int returnVal = fc.showOpenDialog(ActionDemo4.this);
if (returnVal == JFileChooser.APPROVE_OPTION) {
File file = fc.getSelectedFile();
String aa=file.getAbsolutePath();
textArea3.append(aa);
textArea2.append("Local URL:");
long l=file.length();
try
byte buff[]=new byte[(int)file.length()];
InputStream fileIn=new FileInputStream(aa);
int i=fileIn.read(buff);
String conffile=new String(buff);
String str1=textArea10.getText();
url = new URL ("http://127.0.0.1:7001/servletUpload?x="+str1);
urlConn = url.openConnection();
urlConn.setDoInput (true);
urlConn.setDoOutput (true);
urlConn.setUseCaches (false);
urlConn.setRequestProperty("Content-Type","multipart/form-data;boundry=-----------------------------7d11e410e500f2");
printout = new DataOutputStream (urlConn.getOutputStream ());
String content ="-----------------------------7d11e410e500f2\r\n"+"Content-Disposition: form-data;"+"name=\"upload\"; filename=\""+aa+"\"\r\n"+"Content-Type: application/octet-strem\r\n\r\n\r\n"+conffile+"-----------------------------7d11e410e500f2--\r\n";
printout.writeBytes(content);
printout.flush ();
printout.close ();
Best Regards
BikashThe errors are here:
byte buff[]=new byte[(int)file.length()];
InputStream fileIn=new FileInputStream(aa);
int i=fileIn.read(buff);
String conffile=new String(buff); (conffile is a String object containing the image)
and here:
String content ="-----------------------------7d11e410e500f2\r\n"+"Con
ent-Disposition: form-data;"+"name=\"upload\";
filename=\""+aa+"\"\r\n"+"Content-Type:
application/octet-strem\r\n\r\n\r\n"+conffile+"--------
--------------------7d11e410e500f2--\r\n";
printout.writeBytes(content);conffie is sent to the server but
it's non possible to treat binary data as String!
Image files must be sent as byte[] NOT as String ...... -
Hello,
today I have a problem with image url. I wanted Image to change when mouse dragged over it. But nothing happened. Any ideas?
def maxIco: ImageView = ImageView{
image: Image{
url: "{__DIR__}ikony/max.png"
onMouseDragged: function(event: MouseEvent){
maxIco.image = Image{
url: "{__DIR__}ikony/max2.png"
}This is working for me:
src/main/Main.fx
src/main/icon/image1.bmp
src/main/icon/image2.bmp
//Main.fx
package main;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.input.MouseEvent;
var changed = false;
def imgView: ImageView = ImageView {
image: Image {
url: "{__DIR__}icon/image1.bmp"
onMouseDragged: function (e: MouseEvent): Void {
if (not changed) {
imgView.image = Image {
url: "{__DIR__}icon/image2.bmp"
changed = true;
println(imgView.image.url);
onMouseReleased: function (e: MouseEvent): Void {
imgView.image = Image {
url: "{__DIR__}icon/image1.bmp"
changed = false;
println(imgView.image.url);
Stage {
title: "ImageTest"
scene: Scene {
width: 700
height: 600
content: [
imgView
}I've changed few things to switch image only one time on mouseDragged event.
It print the image URL. -
Hi to all.
With ios 5.01 I have a little problem with image gallery. As you can see I have only 1 image, but there is always this **** message "download 0 of 46) (sorry, but I'm Italian )
I've removed my icloud account from settings, but there is nothing to do, this message don't goes away. What I can do? Thanks in advanceHello,
Just adding a gallery I want to do the same slideshow WoodWing's, but in InDesign, if anyone knows of?
Thank you
Link video slideshow WoodWing's: http://www.youtube.com/watch?v=Xt6gNaEZ0-M&feature=relmfu
The first slideshow shown -
Problem with the Display Driver
Hi.
I just got this message when I started Adobe Photoshop today, that's the CS4 edition, about that there was a problem with the Display driver: "Photoshop have encountered a problem with the display driver, and has temporarily disabled GPU enhancements. Check the video card manufacturer's website for the latest software. GPU enhancements can be enabled in the Performance panel of Preferences"
My problem is not what to do but how to do it. I went to System profiler and found something "ATI Radeon HD 2600 Pro, and: Chipset Model: ATI,RadeonHD2600".
And so I want to ATI's website but can't find what I'm looking for.
Any help?I have cs6 - master collection. I bought it on last december and i didn't upgrade it.
"After Effects" works for some minutes and then it stucks and give the massege above
"Display driver NVIDIA Windows kernel Mode Driveer, Version 334.89 stopped, responding and has succesfully recovered."
and preimer works and suddenly the computer crashes not before giving the massege :
"The NVIDIA OpenGL driver lost connection with the display driver due to exceeding the Windows Time-Out limit and is unable to continue.
The aaplication must close. error code: 7"
I have new computer :
proccesor :Intel Core i7-4700MQ Haswell 2.4GHz
Nvidia Geforce GT 740M
Video NVIDIA® GeForce® GT 740M 2GB
ram 8GB DDR3
hard disk : 1TB 5400RPM + 8GB SSD Cache
operating system :Windows 8 64 bit. -
I am getting an error encountered problem with the display driver for my Photoshop CS5 extended
I have Windows 7 and have used CS5 extended with no problems for quite a while now.
Last week I started up CS5 and received the error:
"Photoshop has encountered a problem with the display driver and has temporarily disabled GPU enhancements. Check the video card manufacturers website for the latest software. GPU enhancements can be enabled in the Performance panel of Preferences."
"Please close program and uninstall and re-install if problem persists"
I was able to edit, however when I went to save my work it would not do so. The following error came up.
"Could not complete the command because the extension could not be loaded"
"Could not save a copy as .....because of a program error"
I checked to make sure I have the latest driver, I also uninstalled and re-installed the program and I am still getting the errors.
Can anyone help with this?Error 1402 | Error 1406 | Acrobat, Reader
-
I'm facing a real problem with image scaling
I've used several algorithms but it all has defects but the most common thing is the out of memory error after several enlargments...
does any one know a solution...
note:
I've used several packages to do so,but I'm looking for a solution from the jdk itself
JAlexscorpioDid you take into account that the getScaledInstance() -method creates a completly new Image?
So if you use it like in
ImageIcon icon1=new ImageIcon("Blah.gif");
ImageIcon icon2=new ImageIcon(icon1.getImage().getScaledInstance(400,400,SCALE_FAST);
you will end up with 2 different Images which have their own data and memory requirements.
even if you use something like
ImageIcon icon1=new ImageIcon("Blah.gif");
Image i=icon1.getImage();
icon1.setImage(i.getScaledInstance(200,200,SCALE_FAST));
You will need enough memory to store the data for the original image, as well as the data for the scaled
version of the image, at least for the time that it take the JRE to create the scaled version. You never know when the garbage collector kicks in to delete you old data so it could be that this takes some time and until
that moment your memory is not available. If your now doing several of the scaling operations, and there is no chance for the garbage collector to do its work, you will run out of memory.
I hope that might help, if not feel free to post again -
I got two problems with Image Variants:
1. catalogCache.GetImagePath("Images", id) doesnt work for some id. The error message is GetImageVariant error.
2. catalogCache.Preload("Images", Original)
catalogCache.Preload("Images", Thumbnails)
catalogCache.Preload("Images", null)
catalogCache.Preload("Images", "")
get failed, the status code is -2147483647
Anyone know how to setup image variants?
Thanks.
Forreststatus code: -2147483647 is RC_BADPARAM.
Maybe you are looking for
-
Getting the data from a TCP/IP packet
I am dealing with an industrial network that sends and recieves data over TCP/IP between a sort of supervisory system running on Unix and some machines via a bridge that converts messages onto other non TCP/IP networks. This is all old legacy equipme
-
Songs are greyed out. Error -5000
My songs will not sync to my iPhone. They are still located in my iTunes and play just fine, however they also show up in my phone, only they are "greyed out" and I cannot play them from the device. When I sync the iPhone, I always get an "Unknown Er
-
How to change export video size settings?
I just upgraded from iMovie to Final Cut Pro X. I am trying to export my 1080P content as a 720P file, something that was very easy on the basic iMovie setup. I noticed when I tried to export to Vimeo I was given options for file quality and video si
-
Using get_item_property to determine if an item is a database item or not
I have tried using the get_item_property built in to determine if an item is a database item or not and the compiler returns an error... So, I guess that I can't use get_item_property to find this out. Is there any other way? Many thanks for any help
-
Files as downloadable links in iSupport
Hi, In iSupport, can we provide some files that can be downloaded by clicking a link in homepage? The requirement is to provide some files(in excel or word doc format) which can be downloaded by iSupport users, upadated and upload back in iSupport as