How to register "GIF" graphic format
Hi guys;
In my java application , i need to check if the "GIF" graphic format
is registred on my machine registery. If it is not the program should
register this format.I don't have any knowledge how to deal with
System registry using java.can any one tell me how to implement
this functionality ?
I would appreciate a lot any sample source code.
Thanks for helping!
-othman.
An "export filter" strongly suggests an add-on,just
like wordperfect addons for MS Word. And if thatis
the case then you are not going to be changing the
registry to add it because that is not all that is
needed. You would actually need to installsomething.
you are right ! i think this is the issue...when doin
a custom powerpoint installation you choose whih
filter format to support...I'm not sure if GIF will
always be there !
what to do if i have this problem ?
thanksSeveral choices...
1. You check the registry. If if the expected value isn't there you tell the user to install it. Don't attempt to do what you want until it is there. This is somewhat problematic because the registry might change with different versions of power point.
2. Use autoit (google it) to automate the install process. Rather problematic for a number of reasons including that the user might not what to do that, or the user might not have the disks right then or the install changed and your autoit script does't work. And of course autoit has to be installed.
3. Check the registry and don't even start if the registry entry isn't there. In the documentation for you app make it clear that this is what will happen.
Similar Messages
-
Registering the file format with the system
Hey,
I have a program which saves files using objectstream.. How can register the new format with the operating system so that it knows which program to use to open it.. Can any one help me with this..i want this to be platform independent... Is it possible to do it in java.. Or may be some tool to make the java program installable... Is it possible????
-
Saving in gif, tif, bitmap or graphical format
how do i save canvas drawing in a graphical format like gif, tif, bitmap, etc. I have been trying to research it and have not found any definites on how to do this... can it be done directly through java or is a special tool needed? I do not want to save as jpeg because information is lost through jpeg for this particular kind of program. Please help.
no, i am not looking to draw a gif image or import from a url. I have drawn an image(edges, circles, and rectangles) using graphics on a canvas. Now, what I want to do is save it ina gif/tif/ or other graphical format other than jpeg and be able to open it in programs like photoshop, etc. thanks
Image me;
me = getImage(getCodeBase(), "myPicture.gif");
g. drawImage(me, 0, 0, this);
Are you looking for this ?
Or load the image from an URL. -
How to save simple graphics drawn on canvas as gifs, bitmaps, etc.
I figured out how to draw a graphics object which is abstract for an application rather than an applet. Now, my question is, how do I save these simple graphics (lines, rectangles, circles,etc) drawn on canvas as gifs, bitmaps, etc. so that they may later be opened using other graphical viewers.
another question I was wondering was if graphics is a AWT only class (ie no better swing equivalent)
thankssome things i have found so far are acme or java advanced imaging api... anyone know what is easier to use for my purpose?
it appears that when using acme, i need to use java.awt.image (does that mean I would have to convert the canvas to an image?) how do i save in gif format using java advanced imaging?
Please help -
How do I retain the formatting (i.e. tables or graphics) while saving a pdf as an html?
Are the PDF files that you are attempting to Save As HTML tagged?
-
How to save applet in image(gif/jpeg) format
Hi there !
how to save applet in image (gif/jpeg) format. i have just gone through JIMI package where serilization is there ,WHERE U CAN SORE in image format ...........can anybudy help me out.........if possible then pleeez provide me some example.
Thanks in advan...........I think that is possible because i have seen some commercial applets that do that.
-http://www.izhuk.com/painter/
-http://www.lawrencegoetz.com/programs/signature/
Thses two saves the image in the server since applets cant write in the host they are running. Maybe it would be possible whit JFS, i don't know.
For now I am trying to store an image draw in the applet on my server.
My idea now is copying the image to a buffer or something, open a connection to the server and receive the image with a perl CGI.
There is an example with text:
-http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html
I want to do something similar but with an image. -
How to convert a Graphics object into a JPG image?
I have this simple question about how to make a Graphics object into a JPG file...
I just need the names of the classes or the packages ... I'll figure out the rest of the details...
Thanks...Anyway this might come in handy
JPEGUtils.java
============
* Created on Jun 22, 2005 by @author Tom Jacobs
package tjacobs.jpeg;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.awt.image.RenderedImage;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import javax.imageio.ImageIO;
import com.sun.image.codec.jpeg.JPEGCodec;
import com.sun.image.codec.jpeg.JPEGEncodeParam;
import com.sun.image.codec.jpeg.JPEGImageDecoder;
import com.sun.image.codec.jpeg.JPEGImageEncoder;
* Utilities for saving JPEGs and GIFs
public class JPEGUtils {
private JPEGUtils() {
super();
public static void saveJPEG(BufferedImage thumbImage, File file, double compression) throws IOException {
BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(file));
saveJPEG(thumbImage, out, compression);
out.flush();
out.close();
public static void saveJPEG(BufferedImage thumbImage, OutputStream out, double compression) throws IOException {
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(thumbImage);
compression = Math.max(0, Math.min(compression, 100));
param.setQuality((float)compression / 100.0f, false);
encoder.setJPEGEncodeParam(param);
encoder.encode(thumbImage);
public static BufferedImage getJPEG(InputStream in) throws IOException {
try {
JPEGImageDecoder decode = JPEGCodec.createJPEGDecoder(in);
BufferedImage im = decode.decodeAsBufferedImage();
return im;
} finally {
in.close();
public static BufferedImage getJPEG(File f) throws IOException {
InputStream in = new BufferedInputStream(new FileInputStream(f));
return getJPEG(in);
public static void saveGif(RenderedImage image, File f) throws IOException {
saveGif(image, new FileOutputStream(f));
public static void saveGif(RenderedImage image, OutputStream out) throws IOException {
// Last time I checked, the J2SE 1.4.2 shipped with readers for gif, jpeg and png, but writers only for jpeg and png. If you haven't downloaded the whole JAI, and you want a writer for gif (as well as readers and writers for several other formats) download:
// http://java.sun.com/products/java-media/jai/downloads/download-iio.html
ImageIO.write(image, "gif", out);
public static void main(String[] args) {
// TODO Auto-generated method stub
} -
Print preview in abap list format (OMLV) - Need preview in graphical format
Dear All
I am facing a problem with the print preview. (transaction code OMLV)
When i am clicking on print preview button the system is displaying the output in a ABAP list format.
and also the printout shows only the ABAP content.
Pl. advise on how to view the print preview in a graphical format and not in the ABAP list format and pl. let me know the setting to print the spool in the graphical format.
Thanks,
MaxxHi,
this problem is not only related to warehouse. even the print preview spool for GR/GI slip in t-code SP01 shows as ABAP list and not as graphical screen.
my question is why does the system shows the print preview for spool as an ABAP list instead of graphical view.
pl. advise
Thanks,
Maxx -
How JPG or GIF Image open in MIDP?
How my j2me application can support jpg or gif image format. I have tested png file in midp 1.0 and its not support other than png format( im not sure about midp 2.0 does it support or not). I have seen lot of mobiles those support gif and jpg file formats. Does j2me applications on those mobile can support other image formats?
Plus it is possible that i can develop my own decoder for jpg or gif format. I know it possible, but im talking related to its processing power consumption. Or is there any third party api exist to support jpg or gif file format on midp. Please rHere is the code snap that read image from a URL.. I have tested this code on localhost & two different pc on lan in emulator.. but not in actuall mobile... but i hope it will work...
Image image = null ;
DataInputStream httpInput = null ;
DataOutputStream httpOutput = null ;
HttpConnection httpCon = null ;
String url = "http://localhost:8080/images/picture.png"
try
httpCon = (HttpConnection)Connector.open(url);
int bufferSize = 512 ;
byte byteInput[] = new byte[bufferSize] ;
ByteArrayOutputStream imageBuffer = new ByteArrayOutputStream(1024*50);
httpInput = new DataInputStream( httpCon.openInputStream() );
System.out.println("Http-Input Connecting Establish Successfully");
httpOutput = new DataOutputStream( httpCon.openOutputStream() );
System.out.println("Http-Output Establish Successfully");
int size = 0 ;
// read all image data ....
while ( ( size = httpInput.read( byteInput , 0 , bufferSize ) ) != -1 )
imageBuffer.write( byteInput , 0 , size ) ;
// get byte from buffer stream
byte byteImage[] = imageBuffer.toByteArray();
System.out.println("read byte " + byteImage.length );
// convert byte to image ...
image = Image.createImage( byteImage , 0 , byteImage.length );
return image ;
//return null ;
catch( IOException e )
System.out.println("\nUnable to Perform Image IO Operation with Host");
return null ;
.................................... -
How to register a new docicon/progid using CSOM/SharePoint Client object model
I know how to register a new file-type icon in SharePoint 2013 by modifying docicon.xml,
but is it possible via any sort of web-based API? Specifically I'm trying to do it for a SharePoint Online/office 365 site.Hi Dylan,
For SharePoint Online, the docicon.xml is stored in the SharePoint online Server and there is no such Web API could modify the xml file directly, so there is no easy way to achieve it.
As a workaround, you can add some JavaScript and Jquery in the master page to modify the file type icon to the new one.
<script>
var IMGs = document.getElementsByTagName("IMG")
for (var i=0; i<IMGs.length; i++)
var alt=IMGs[i].alt;
if (alt.substring(alt.length-4,alt.length)==".pdf")
IMGs[i].src="/yourlibrary/yourimage.gif";
</script>
Here is a similar thread for your reference:
https://social.technet.microsoft.com/forums/msonline/en-US/bf5ff648-eefb-4084-8204-9519efaf50e7/modifying-dociconxml-on-sharepoint-online
Best Regards
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Zhengyu Guo
TechNet Community Support -
How to Add a graphical Sequence panel in a webhelp layout?
Hi,
Can anyone please let me know how to add a graphical pane on
the top right of every topic which would show the flow of sequence,
the single source layout being webhelp.
I'll be more clear......
If we click on Help>Tutorial>HTML ROBOHELP Tutorial. we
see a panel on the right which shows the graphical flow of files.
Can i do the same when i create a webhelp layout.(in html
format)....Please Please Please let me know!
Thanks
Sincerely
Siddb.Hi Siddb and welcome to our community
What you see in the RoboHelp help file is a browse sequence
as it is presented in a Compiled .CHM file. WebHelp and FlashHelp
do not offer this type of a browse sequence. Instead, they use
little Previous and Next arrows that sit just above the Table of
Contents/Index/Glossary/Search in that little toolbar.
Cheers... Rick -
Labwindows/cvi graphic format
Hi,
Does anyone know how to convert an IntensityPlot to a graphical format known
by Word (e.g.pcx, tif, bmp, jpg,...)
thank you in advance.
BjornHi,
there are two pssibilities:
CVI includes functions to get panels, graphs as memory bitmaps and it is fairly
simple to make it into a bmp and write it to a file.
Another possibility we used is to print panels to a temporary file using for
example a postscript printer driver. Then you get a nice mixture of vector
graphics elements (for the labels, grids etc.) and bitimages.
Dieter
Bjorn schrieb:
> Hi,
>
> Does anyone know how to convert an IntensityPlot to a graphical format known
> by Word (e.g.pcx, tif, bmp, jpg,...)
> thank you in advance.
> Bjorn
Attachments:
dieter.vcf 1 KB -
How to register the recipient when create job by function
I am now use JOB_OPEN , JOB_SUBMIT and JOB_CLOSE to create a job in the program. And need to post the result of the report to the person by email.
Can you tell me how to register the recipient when create the job.
( in sm36, it is easily to do but how to do in coding? )
regards,
slamHi
I think in Back ground using the above fun modules you can't send a mail to the receipient.
see the use of the above fun modules;
IF p_bjob = 'X'.
CONCATENATE sy-cprog sy-datum sy-uzeit
INTO jobname SEPARATED BY '_'.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = jobname
IMPORTING
jobcount = jobcount
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
IMPORTING
out_archive_parameters = arc_params
out_parameters = print_params
valid = valid
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF valid = chk.
SUBMIT ybrep
WITH < sel Screen>
AND RETURN
USER sy-uname
VIA JOB jobname
NUMBER jobcount
TO SAP-SPOOL
SPOOL PARAMETERS print_params
ARCHIVE PARAMETERS arc_params
WITHOUT SPOOL DYNPRO.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = jobcount
jobname = jobname
strtimmed = 'X'
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
invalid_target = 8
OTHERS = 9.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
MESSAGE i029 WITH jobname.
ENDIF.
ELSE.
MESSAGE s000 WITH text-003.
STOP.
ENDIF.
ENDIF.
Reward points if useful
Regards
Anji -
How to register multiple ipods on same email account
how do register multiple ipods using the same email account?
Maybe here
How to use multiple iPods, iPads, or iPhones with one computer
You can have an unlimited number of devices that you own or control for private use tied to one iTunes account. But you have only have five tied to one iCloud account.
To alllow FT and Messagibng between them see:
MacMost Now 653: Setting Up Multiple iOS Devices For Messages and FaceTime -
How to register custom report under Custom Development Application
Hi 2 all
How to register custom report under the Custom Development application in R12 vision DB, and also confirm location/folder of Custom Development application in R12.
Thanks
ZulqarnainHi,
You may or may not need to "register" the workflow - it depends on the changes that you made and which Item Type you modified. Some applications are essentially hard-coded to use a specific item type and process, some hard-coded to use an item type but you can configure the process to use, and some allow you to specify which item type and which process to use.
Without knowing exactly what you have done, though, there is no specific advice that anyone can give you here on what you need to do, apart from to ensure that you have saved the new definition to the database.
HTH,
Matt
WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
Have you read the blog at http://www.workflowfaq.com/blog ?
WorkflowFAQ support forum: http://forum.workflowfaq.com
Maybe you are looking for
-
I have an ipad with 5.0.1 and trying to learn how to use it. When I click on the icon Calender, I get the calendar presentation but I do not know how to make an entry. Every tutorial I have looked at says that you click on a + sign in the lower ri
-
Parse problem using SOMSchema reading an .xsd file
Platform: windowsXP, WLI2.1, WLS6.1sp1 The following is extracted from a log of the sample WLI server. I used it as a platform for an adapter under development. The log shows an erronous SOMSchema after a faile
-
Hi there, I would like to create a checkbox on the ALV list output..I used the option Checkbox when doing the field catalogue ,but the problem is the checkbox is not clickable.. Can u please help on which options must I use to have a clickable checkb
-
Email Output - Subject Line issue.
Hi, I have an issue in changing the subject line of the billing output which goes as an email whenever newly created. I want to incorporate the subject line of the email as "ABCD Invoice for SO number '12345678' for Customer 'Customer Name' ". Here t
-
KT3 Ultra: No POST when USB Printer Connected
So this morning I turned on my PC to find out that it would not boot for some reason; the computer would freeze at post. I checked to D-Bracket and it gave the error code for Chipset Initialization. On a reset, the motherboard gave three beeps. After