Images in the Constructor
I have an Applet that I'm working on that is a card game. The card game creates a Deck object (a Stack of Card classes, basically). What I want is to have the cards load their own images when they are created, but I can't figure out how to get the images since the Card class is not an Applet itself.
Also, as a side note - when I try to load images in the Applet itself I get a Secutiy Exception - I think it's because I have the images stored locally and the program won't let me access them since it sees me as the client rather than the server of the images. Not sure. If anyone knows anything about either of these I really need some help.
Thanks a ton.
Try to package the class files and the images into a .jar file and run the applet from that jar.
I use the following code to load an image from a .jar. It has not failed in applets running in IE, Netscape and HotJava (Windows or Linux platforms) using their default java VMs.
try
// We use getResourceAsStream since Netscape not
// implements Class.getResource.
java.io.InputStream in = clazz.getResourceAsStream(url);
byte buffer[] = new byte[in.available()];
in.read(buffer);
result = Toolkit.getDefaultToolkit().createImage(buffer);
catch (java.io.IOException ex)
}Kurta
Similar Messages
-
How do i add images in the header and footer to a PDF using iText
Hi ,
I want to add images to the header and footer of every page while i am genrating a pdf i have created a separate class called EndPage which i am instanceiating its default constructor in another class 's button action method.
The above code genrates a PDF for me however it genrates a file with file size zero bytes and does not open it following is my sample code
//**********Any Help would be appreciated
Thank You
public class My_Class
public String pdf_action()
EndPage ep=new EndPage();
return null;
}//My_class Ends
class EndPage extends PdfPageEventHelper
* Demonstrates the use of PageEvents.
* @param args no arguments needed
public EndPage()
try {
com.lowagie.text.Document document = new Document(PageSize.A4, 50, 50, 70, 70);
PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("D://proposals/endpage.pdf"));
writer.setPageEvent(new EndPage());
document.open();
String text = "Lots of text. ";
for (int k = 0; k < 10; ++k)
text += text;
document.add(new Paragraph(text));
document.close();
catch (Exception de) {
de.printStackTrace();
public void onEndPage(PdfWriter writer, Document document) {
try {
Rectangle page = document.getPageSize();
PdfPTable head = new PdfPTable(3);
for (int k = 1; k <= 6; ++k)
head.addCell("head " + k);
head.setTotalWidth(page.width() - document.leftMargin() - document.rightMargin());
head.writeSelectedRows(0, -1, document.leftMargin(), page.height() - document.topMargin() + head.getTotalHeight(),
writer.getDirectContent());
PdfPTable foot = new PdfPTable(3);
for (int k = 1; k <= 6; ++k)
foot.addCell("foot " + k);
foot.setTotalWidth(page.width() - document.leftMargin() - document.rightMargin());
foot.writeSelectedRows(0, -1, document.leftMargin(), document.bottomMargin(),
writer.getDirectContent());
catch (Exception e) {
throw new ExceptionConverter(e);
}Hi,
Thanks for the quick response.
The problem is that when I keep the logo as a watermark, the pdf is not adjusting itself to include the logo as header.
But if I add a header text via Tools -> Headers and Footers, the pdf is adjusting itself so that the header text is at the beginning , not overlapping with the contents of pdf.
But while using logo as watermark, some times overlapping of the pdf contents and logo is happening.
Is there any way to add a logo in the Header and Footer via the option in Tools -> Headers and Footers
Thanks,
Vidhya -
How to upload image to the progrogram...
I am trying to upload the image to the function module but it says the "sunset.jpg" is feild unkonwn it is not defined by the data...
and when i am passing this image stuff at the runtime... it gives me the memory dum.. would you like to help me... i am creating a splash screen with this code....
i am giving you the code below...
Regards
Naim
Code listing for function: ZJNC_START_SPLASH
Description: Show Splash at Start
FUNCTION zjnc_start_splash.
""Local interface:
*" IMPORTING
*" REFERENCE(IMAGEFILE) TYPE C DEFAULT 'THANKS.JPG'
*" REFERENCE(WIDTH) TYPE I DEFAULT 415
*" REFERENCE(HEIGHT) TYPE I DEFAULT 274
*" REFERENCE(TIMEOUT) TYPE I DEFAULT 3
*" REFERENCE(CALLBACK) TYPE C
Global data declarations
MOVE imagefile TO g_name.
MOVE width TO picwidth.
MOVE height TO picheight.
MOVE timeout TO pictimeout.
MOVE callback TO piccallback.
TRANSLATE piccallback TO UPPER CASE.
PERFORM getpicurl.
CALL SCREEN 0806.
ENDFUNCTION.
Code listing for function: ZJNC_END_SPLASH
Description: Show Splash at End
FUNCTION ZJNC_END_SPLASH.
""Local interface:
*" IMPORTING
*" REFERENCE(IMAGEFILE) TYPE C DEFAULT 'THANKS.JPG'
*" REFERENCE(WIDTH) TYPE I DEFAULT 415
*" REFERENCE(HEIGHT) TYPE I DEFAULT 274
*" REFERENCE(TIMEOUT) TYPE I DEFAULT 3
Global data declarations
MOVE imagefile TO g_name.
MOVE width TO picwidth.
MOVE height TO picheight.
MOVE timeout TO pictimeout.
PERFORM getpicurl.
CALL SCREEN 2009.
ENDFUNCTION.
Code listing for: LZUTILTOP
TOP level Include of Function Group ZUTIL
Author Jayanta Narayan Choudhuri
Flat 302
395 Jodhpur Park
Kolkata 700 068
Email [email protected]
URL: http://www.geocities.com/ojnc
FUNCTION-POOL zutil. "MESSAGE-ID ..
TYPE-POOLS: abap.
DATA: graphic_url(255),
g_result TYPE i,
g_linesz TYPE i,
g_filesz TYPE i,
g_name(100).
TYPES: t_graphic_line(256) TYPE x.
DATA: graphic_line TYPE t_graphic_line,
graphic_table TYPE TABLE OF t_graphic_line.
DATA: picwidth TYPE i,
picheight TYPE i,
pictimeout TYPE i,
piccallback(60) TYPE c,
first TYPE boolean.
CLASS ZCL_ES_SPLASH_SCREEN DEFINITION
CLASS zcl_es_splash_screen DEFINITION.
PUBLIC SECTION.
EVENTS on_close.
METHODS constructor
IMPORTING
!i_num_secs TYPE i DEFAULT 5
!i_url TYPE c
!i_width TYPE i
!i_height TYPE i.
PROTECTED SECTION.
METHODS handle_end_of_timer
FOR EVENT finished OF cl_gui_timer.
PRIVATE SECTION.
DATA container TYPE REF TO cl_gui_dialogbox_container.
DATA image TYPE REF TO cl_gui_picture.
DATA timer TYPE REF TO cl_gui_timer.
ENDCLASS. "ZCL_ES_SPLASH_SCREEN DEFINITION
CLASS ZCL_ES_SPLASH_SCREEN IMPLEMENTATION
CLASS zcl_es_splash_screen IMPLEMENTATION.
METHOD constructor.
DATA: image_width TYPE i,
image_height TYPE i.
COMPUTE image_width = i_width + 30.
COMPUTE image_height = i_height + 50.
CREATE OBJECT container
EXPORTING
width = 10
height = 10
top = 10
left = 10
name = 'DialogSplash'.
CALL METHOD container->set_caption
EXPORTING
caption = g_name.
CREATE OBJECT image
EXPORTING
parent = container.
CALL METHOD image->load_picture_from_url
EXPORTING
url = i_url.
image->set_display_mode( image->display_mode_normal_center ).
cl_gui_cfw=>flush( ).
container->set_metric( EXPORTING metric = image->metric_pixel ).
DATA: myleft TYPE i,
mytop TYPE i.
COMPUTE myleft = ( 800 - image_width ) / 2.
COMPUTE mytop = ( 600 - image_height ) / 2.
IF myleft < 0.
MOVE 0 TO myleft.
ENDIF.
IF mytop < 0.
MOVE 0 TO mytop.
ENDIF.
container->set_position(
EXPORTING
height = image_height
left = myleft
top = mytop
width = image_width ).
cl_gui_cfw=>update_view( ).
CREATE OBJECT timer.
timer->interval = i_num_secs.
SET HANDLER me->handle_end_of_timer FOR timer.
timer->run( ).
cl_gui_cfw=>flush( ).
ENDMETHOD. "constructor
METHOD handle_end_of_timer.
I wanted NAMASTE to remain until JOB was complete.
IF container IS NOT INITIAL.
container->free( ).
CLEAR container.
FREE container.
ENDIF.
IF timer IS NOT INITIAL.
timer->free( ).
CLEAR timer.
FREE timer.
ENDIF.
cl_gui_cfw=>flush( ).
RAISE EVENT on_close.
ENDMETHOD. "handle_end_of_timer
ENDCLASS. "ZCL_ES_SPLASH_SCREEN IMPLEMENTATION
CLASS lcl_event_handler DEFINITION
CLASS lcl_event_handler DEFINITION.
PUBLIC SECTION.
CLASS-METHODS: on_close FOR EVENT on_close OF zcl_es_splash_screen.
ENDCLASS. "lcl_event_handler DEFINITION
CLASS lcl_event_handler IMPLEMENTATION
CLASS lcl_event_handler IMPLEMENTATION.
METHOD on_close.
IF sy-dynnr = 2009.
LEAVE PROGRAM.
ELSE.
MOVE abap_false TO first.
PERFORM (piccallback) IN PROGRAM (sy-cprog).
ENDIF.
ENDMETHOD. "on_close
ENDCLASS. "lcl_event_handler IMPLEMENTATION
DATA: splash TYPE REF TO zcl_es_splash_screen.
*& Module STATUS_0806 OUTPUT
MODULE status_0806 OUTPUT.
IF first IS INITIAL.
first = abap_true.
SET TITLEBAR 'TITLE0806'.
CREATE OBJECT splash
EXPORTING
i_num_secs = pictimeout
i_url = graphic_url
i_width = picwidth
i_height = picheight.
SET HANDLER lcl_event_handler=>on_close FOR splash.
ENDIF.
ENDMODULE. " STATUS_0806 OUTPUT
*& Module STATUS_2009 OUTPUT
MODULE status_2009 OUTPUT.
IF first IS INITIAL.
first = abap_true.
SET TITLEBAR 'TITLE2009'.
CREATE OBJECT splash
EXPORTING
i_num_secs = pictimeout
i_url = graphic_url
i_width = picwidth
i_height = picheight.
SET HANDLER lcl_event_handler=>on_close FOR splash.
ENDIF.
ENDMODULE. " STATUS_2009 OUTPUT
*& Form getpicurl
FORM getpicurl.
OPEN DATASET g_name FOR INPUT IN BINARY MODE.
REFRESH graphic_table.
CLEAR g_filesz.
DO.
CLEAR graphic_line.
READ DATASET g_name INTO graphic_line ACTUAL LENGTH g_linesz.
ADD g_linesz TO g_filesz.
APPEND graphic_line TO graphic_table.
IF sy-subrc <> 0.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET g_name.
CLEAR graphic_url.
CALL FUNCTION 'DP_CREATE_URL'
EXPORTING
type = 'IMAGE'
subtype = 'GIF'
TABLES
data = graphic_table
CHANGING
url = graphic_url
EXCEPTIONS
dp_invalid_parameter = 1
dp_error_put_table = 2
dp_error_general = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
EXIT.
ENDIF.
ENDFORM. "getpicurlUse this program..
create object cust_container
exporting
container_name = 'MYCONTAINER1'
CREATE OBJECT split_container
EXPORTING
LINK_DYNNR =
LINK_REPID =
SHELLSTYLE =
LEFT =
TOP =
WIDTH = 10
HEIGHT = 40
METRIC = cntl_metric_dynpro
ALIGN = 15
PARENT = cust_container
ROWS = 2
COLUMNS = 2
NO_AUTODEF_PROGID_DYNNR =
NAME =
EXCEPTIONS
CNTL_ERROR = 1
CNTL_SYSTEM_ERROR = 2
others = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD split_container->get_container
EXPORTING
row = 1
column = 1
receiving
container = cus_cont.
create object picture
exporting
parent = cus_cont
clear url.
path = 'ZNAVEEN'.
perform get_url using path.
CALL METHOD picture->set_display_mode
EXPORTING
display_mode = cl_gui_picture=>display_mode_fit
EXCEPTIONS
ERROR = 1
others = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Use this Perform to load Picture
form get_url using p_path.
DATA query_table LIKE w3query OCCURS 1 WITH HEADER LINE.
DATA html_table LIKE w3html OCCURS 1.
DATA return_code LIKE w3param-ret_code.
DATA content_type LIKE w3param-cont_type.
DATA content_length LIKE w3param-cont_len.
DATA pic_data LIKE w3mime OCCURS 0.
DATA pic_size TYPE i.
REFRESH query_table.
query_table-name = '_OBJECT_ID'.
query_table-value = p_path.
APPEND query_table.
CALL FUNCTION 'WWW_GET_MIME_OBJECT'
TABLES
query_string = query_table
html = html_table
mime = pic_data
CHANGING
return_code = return_code
content_type = content_type
content_length = content_length
EXCEPTIONS
object_not_found = 1
parameter_not_found = 2
OTHERS = 3.
IF sy-subrc = 0.
pic_size = content_length.
ENDIF.
CALL FUNCTION 'DP_CREATE_URL'
EXPORTING
type = 'image'
subtype = cndp_sap_tab_unknown
size = pic_size
lifetime = cndp_lifetime_transaction
TABLES
data = pic_data
CHANGING
url = url
EXCEPTIONS
OTHERS = 1. -
How to paste an image from the database by creating a new page?
Hai,
i'm trying to paste more than 6 images in two pages...
The condition is that i want to paste only 3 images in a page.
When the first 3 images were pasted... i want a new page to be automatically created and the next or 4th image will be pasted on the
next page...
i have codings for creating a new page and for pasting the image...
But how shall shall i paste the 4th image in the next page...
Can any one plzz explain me...>
Hi, I'd like to display a dynamic image from the web inside a JLabel or any other swing component it could work in. I've been looking on the Swing tutorials and others forums, all I can have is that a JLabel can load an Icon object, defined by an image URL, but can this URL be like "http://xxxxx/image.jpg" somehow or can it only be a local image URL?>
I do not know why you start talking about an image on the web then go on to show concerns about whether it will work for a 'local' URL.
But perhaps this answer will cover the possibilities.
So long as you can from an URL to the image, and the bytes are available for download (e.g. some web sites wrap a direct call to an image in HTML that embeds the image), the URL based icon constructors will successfully load it.
It does not matter if that URL points to
- a web site,
- a local server ('localhost'),
- an URL representation of a File on the local file system, or
- it is inside a Jar file that is on the application's run-time classpath.
How you go about forming a valid URL to a 'local resources' (or indeed what you regard as local resources) is another matter, depending on the form of the project, and how the resources are stored (see list above).
Probably the main reason that examples use images at a hard coded URL on the net is that it makes an 'image example' self contained. As soon as we compile and run it, we can see the result. I have posted a few examples like that on these forums.
Edit 1:
BTW - Welcome to the Sun forums
Edited by: AndrewThompson64 on Apr 21, 2009 12:15 PM -
Hints image on the animation panel does not change.
Help I have several animation panels when the program initializes from the constructor. I have a separate AnimationPanel class that creates each panel for display. The initial ?hello ? welcome panel (from the constructor) animates on the main panel when the program begins.
The problem is I want to have different animation panels (that are stored ) to animate and replace the main panel animation at a push of a button. While, the various panels can animate if called from the constructor, they do not animate when called from a button.
The buttons I created to switch the main animated panel with a different one seems to work to the extent that it gets the correct music, but the image on the animation panel does not change.
I know this is a more in depth of a question but might you be able to give me a point in the right direction?
Here is the code from the constructor that works fine in the constructor to start the main animation.
public PingPong()
// null layout because it has a main panel where this display panel is placed
super(null);
//panels are created
instantiatePanels();
//panels are added to the main content pane
placePanelsOnView();
startAnimation();
initializeAudio();The problem is that I now start it with no animation to begin with and just an empty panel, but still when I try to add an animation from the button and it will not start. The contentPane is in a different class that places the buttons and the view together.
Here is the code that the button calls back with a getNextPanel() :
AnimatedPanel expertPingPongPlayerPanel
= new AnimatedPanel( );
add(expertPingPongPlayerPanel );
expertPingPongPlayerPanel.animate();
expertPingPongPlayerPanel.setVisible(true);
startAnimation(); -
Re: Change the image of the image Background panel
Hi guys,
I m wondering how can i change the background of the image I had set earlier on as the background of the JPanel using the overriding of paintComponent() method.
What i need to do is to create a swing component with a changing image background abilities.. can anyone help me with it.. its urgent.. thanks!!!Hi.
Please see code below. I hope it help you.
Change the image name at the constructor of MainFrame.java and put that image to folder with class files.
MainFrame.java:
import javax.swing.*;
public class MainFrame extends JFrame {
public MainFrame () {
ChangeBGImage panel = new ChangeBGImage();
panel.setImage("ukr.jpg");
getContentPane().add(panel);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
public static void main (String[] args) {
MainFrame frame = new MainFrame();
frame.setSize(400, 300);
frame.setVisible(true);
}ChangeBGImage.java:
import java.awt.*;
import java.awt.image.*;
import javax.swing.*;
public class ChangeBGImage extends JPanel {
Image image;
public ChangeBGImage (Image image) {
this.image = image;
public ChangeBGImage () {
image = null;
public void paintComponent(Graphics g) {
super.paintComponent(g);
if (image != null) {
Rectangle rectFull = new Rectangle(0, 0, getSize().width, getSize().height);
Graphics2D g2d = (Graphics2D)g;
BufferedImage buffImg = new BufferedImage(image.getWidth(this), image.getHeight(this), BufferedImage.TYPE_INT_RGB);
Graphics2D g2d2 = buffImg.createGraphics();
g2d2.drawImage(image, 0, 0, this);
TexturePaint imagePaint = new TexturePaint(buffImg, new Rectangle(0, 0, image.getWidth(this), image.getHeight(this)));
g2d.setPaint(imagePaint);
g2d.fill(rectFull);
public void setImage(String imageURL) {
MediaTracker mt = new MediaTracker(this);
image = Toolkit.getDefaultToolkit().getImage(imageURL);
mt.addImage(image, 0);
try {
mt.waitForID(0);
} catch (InterruptedException ex) {
ex.printStackTrace();
public void setImage (Image newImage) {
image = newImage;
Sincerely,
Victor Letunovsky
AlarIT programmer
http://www.AlarIT.com -
Can you see a image in the Get Info Window?
After upgrading to Mt LIon and while using CS6, I can't see image previews in the Get Info window. Can't see images in the upper left corner of the get info window, so I can't make a selection and then do a copy- paste like I could do before I upgraded to Mt Lion with CS6. I want to be able to paste a image of the subjects in my folders.. IE folder of Panda Bears would have a image of a Panda showing on that folder. Folder of The Great Wall would have a image of the Great Wall on the Folder of Great Wall pictures. This has always worked for the past many years I have used a Mac and Photoshop. I started with Photoshop 2. All my photo folders are represented by images so I have a good idea of what is contained in each folder. Now after 2 weeks in China, 20 folders are represented by 10-11-12, 10-12-12, 10-13-12, 10-14-12 and so on. Shows me nothing but dates. I have tried saving as Jpeg, Tiff, and PAD, and still can't do a copy-paste in the Get Info window. Apple says it is a Adobe problem, Yesterday Adobe told me it is because I am uusing a Nikon D800 and Adobe does not have a patcdh for the NEW Nikon camera. I then tried using my Nikon D2Xs, Nikon D3X, Nikon 800 and even my wife's D50 and none of these camera allow me to copy paste the thumbnail image to the clipoboard like I have been able to do for YEARS... I can see images in a folder in Bridge, but the images dont show in my desktop folders.IE, a folder on my desktop with 200 pictures only show with words/ numbers/letters NO IMAGES appear in the folders on the desktop. On some folders the folders in a folder don't show up as Folders either.
Can Any one help me. Same thing happens on my MACPRO w 16 GB Ram and on my 17" MacBook Pro.Allan Sicks wrote:
Thanks for your input. Problem might be with the EASTER BUNNY..... have to have someone to blame.
I can't blame you for saying that.
Adobe is the clear owner of the responsibility to make functional their product that they claim is compatible with your operating system. Adobe is the one who sold you the product.
I just went looking for what Adobe has said about Mountain Lion compatibility, and they both list Mountain Lion as compatible and include such language as that on this page (emphasis mine):
Adobe and Apple have worked closely together to test Adobe® Creative Suite® 5, 5.5 and CS6 editions and individual products for reliability, performance and user experience when installed on Intel® based systems running Mac OS X Mountain Lion (v10.8). Earlier versions of Adobe Photoshop® (CS3 and CS4) software were also tested with Mountain Lion and there are currently no known issues.
I suggest that Adobe needs to get on the ball and get this fixed. The time for user patience is over.
If someone from Adobe is saying "Adobe can't fix it" then that someone is at the wrong authority level and/or is thinking on the wrong level.
This is business and the business is making products that have value and are sold to people who perceive that value. Adobe doesn't get to keep selling products that don't work while standing on principles that "it's someone else's problem". Customers don't care why it doesn't work.
It's obvious to a child that if Photoshop CS5 can write the proper things to the Apple OS so that the thumbnails are visible, that there's something Adobe could do to fix it.
But EVEN IF this were something only Apple could fix, that Apple hasn't fixed it yet says pretty loudly that Adobe isn't making the right overtures to Apple for their mutual benefit. Adobe, are your executives so greedy that they can't grease a few palms of their friends over at Apple to put some priority on this? What's the problem here? Has Adobe actually forgotten how to do business?
-Noel
P.S., You should know that I don't use a Mac and am personally having no issues with seeing proper thumbnails and previews on my Windows 7 and 8 systems, since the software that does that isn't from Adobe. -
Is there a way to add multiple images at the same time to Keynote 6.0?
I just brought keynote after searching online about adding multiple images to a presentation all in one go - I couldn't do this on the powerpoint version I was using but there were multiple references on google to being able to do this on keynote. I purchased it and now can't get it to work! Any ideas anyone? Thanks
Do you mean like dragging in multiple images and having one image go on each slide? If so, you just drag the images into the Slide List on the left instead of onto the slide. From this prior post.
https://discussions.apple.com/message/9068283#9068283 -
How to add an image in the header? Pages 5.0
I don't believe I have to use Microsoft Word! I can't, no way, add an image in the header. This is unbelievable!
**** time I updated to Mavericks!
Please, does anyone know the solution?
I'm losing a great deal in my company.Do you still have Pages 4.3 installed. If so, use that.
-
In an eMail message, when I attempt to save two photos by clicking the 'Save 2 Images' link, not the 'Save Image' link, the images are not saved. (I use I I apologize for the late notice, butOS7 on IPhone5). Is this feature broken?
Please don't post the same question multiple times!
-
This problem seems bizarre to me considering iPhoto 11 has worked with out a hitch since I upgraded from 09 ages ago. The photos in my album suddenly changed orientation from landscape to portrait and vice versa and sometimes upside down. I first notice this problem after I tried to click and drag a large number of photos directly from iPhoto to Finder. I did a Command-A to highlight all the photos from my album and tried to drag them to a folder in Finder. There are 34,000 photo in this album but only half were copied, (I guess 34,000 items is too much for Lion to copy all at once). I tried fixing this orientation problem by highlighting all affected photos and selecting "Revert to Original" which fixed the orientation of the thumbnails. But when you double click on a thumbnail to view the pictures or view the album in a slideshow, some of the pictures still have the incorrect orientation but most were corrected. Also if I double click on an affected photos to edit it with iPhoto image editor the image suddenly orientates itself correctly. Then as soon as I close the image editor and view the photo or start a slide show it's displayed with the incorrect orientation again. How is that possible that all my thumbnails are orientated properly but when I view the photo it's rotated sideways or sometimes rotated upside down? Any help or insight to my problem would be much appreciated.
Revereting to original will not fix the problem. When you invoke that menu option iPhoto will read the file again, see the tag that tells it to rotate the file and will rerotate it.
The most reliable way to fix this is to rotate those file before they are imported into iPhoto. Upload from the camera to a folder on the Desktop, rotate those that need rotating, rename if desired and import. I use Xee for that because it can rotate the file losslessly.
OT -
I am using a Photoshop cs2, and I wonder if it is possible to keep the settings of the guidelines when closing an image, with the actual document ? It would be nice to have the guidelines locked down, I find it than when opening the same or another image, the guidelines are not locked, it is annoying to have to lock them down again. and it would actually be nice, to ba able to give specific directions when placing the guidelines. Thanks
Then why are the guides unlocked when I reopen a document that I saved with the guides locked ?
Thanks. -
Not able to see the Image in the body of email
Hi
I need to send email having image in the body. I have created a file in mime repository but not able to take its value in my abap program.
I am using WWW_GET_MIME_OBJECT to be used in the body of the mail.
Anybody having clue about it.
Thanks & Regards,
Ravi GroverHi Ravi,
you may compose an email that looks like the one you want to send.
If you analyze the source, you will see that the image is included as an HTML reference. Check this [stone-old thread that can be found by simple search|Image embed in email with ABAP; .
Regards
Clemens -
Capture an image using the web camera from a web application
Hi All,
Could anyone please share the steps what have to be followed for capture an image using the web camera from a web application.
I have a similar requirement like this,
1) Detect the Webcam on the users machine from the web application.(To be more clear when the user clicks on 'Add Photo' tool from the web application)
2) When the user confirms to save, save the Image in users machine at some temporary location with some unique file name.
3) Upload the Image to the server from the temporary location.
Please share the details like, what can be used and how it can be used etc...
Thanks,
Suman1) Detect the Webcam on the users machine from the web application.(To be more clear when the user clicks on 'Add Photo' tool from the web application)There's not really any good way to do this with JMF. You'd have to somehow create a JMF web-start application that will install the native JMF binaries, and then kick off the capture device scanning code from the application, and then scan through the list of devices found to get the MediaLocator of the web cam.
2) When the user confirms to save, save the Image in users machine at some temporary location with some unique file name.You'd probably be displaying a "preview" window and then you'd just want to capture the image. There are a handful of ways you could capture the image, but it really depends on your situation.
3) Upload the Image to the server from the temporary location.You can find out how to do this on google.
All things told, this application is probably more suited to be a FMJ (Freedom for Media in Java) application than a JMF application. JMF relies on native code to capture from the web cams, whereas FMJ does not.
Alternately, you might want to look into Adobe Flex for this particular application. -
How to capture an image with the camera axis
Hi,
I have an camera axis. I can receive the video. Now I try to capture an image, for example when I push the button take. I do the .vi but I confused between the different Method.
SaveCurrentImageave the current Image
GetImage:Gets the data corresponding to the image currently being
displayed.SetImage:Adds an Image to the Clipboard in the Bitmap format
That I search is to know if to capture image and saving when I push an button I need to put all Icons so SetImage after Getimage and SavecurrentImage.
I put my .vi.
Attachments:
Capture_image.vi 11 KBHello,
Did you download the kit sdkfor using the axis media control active X:
http://www.axis.com/fr/techsup/cam_servers/dev/activex.htm
Did you test the sample and did you test with another language?
Regards,
Nacer M. | Certified LabVIEW Architecte
Maybe you are looking for
-
Hi experts, There is error in SMQ2 with Error in Mapping (Details: transaction SMW01). Have checked in SMW01 and found E08 errors with error u2018Partner number 000000XXXXX is already assigned to a contact partner relationshipu2019 Any idea? Cheers.
-
Inhibit output per axis is always active, even if i KILL the axis in max
Hi, I'm using pci-7344 with UMI-7774 and 3'rd party servo drive. everything works fine but the inhibit output signal on the axis, it is always ON and never changes state even when i press "Kill" the axis in MAX. I know that the inhibit output per axi
-
How to use content conversion for Complex structure
Hi All, I want to know how to use content conversion for the following complex structure: Data ...Details 1 to Unbound .....Header 1 to 1 .......HF1 .......HF2 .......HF3 .......ITEM 1 to unbound ........
-
Adobe Reader for mobile search result is INCORRECT.
Adobe Reader for mobile search result is INCORRECT. It is inconsistent with the search results from other PDF reader apps. I have a spreadsheet file converted into a PDF. Doing a search on the document using a Adobe Reader on a PC shows 14 search res
-
I'm using CS4. I need to use the Puppet Warp tool but I cannot find it anywhere. Every place I've looked says it should be under the Edit tab but it is nowhere to be found. Help!!