[CS2]How to get the Image Width & Height using JS (ILLUSTRATOR CS2)
Hi,
How to get the Image width & height of an Image using javascript .Im using Illustrator CS2.
Any sample code
Regards
MyRiaz
you can reference the dimensions of a loading image (or swf)
by referencing the target movieclip's dimensions AFTER loading is
complete. ie, use preloader code or the onLoadInit() method of a
moviecliploader listener.
Similar Messages
-
How can I get the image width and height stored in database?
Hi!I write s servlet to display images store in database.but how can I get the image width and height?
Have you tryed using PJA or a similar library?
I presume you get java.lang.NoClassDefFoundError on the line :
Toolkit.getDefaultToolkit();? -
How to get blob image width with ordimage?
Hello,
I have trouble getting image width with ordimage. I have quite the same program for processing images as here: http://spendolini.blogspot.com/2005/10/manipulating-images-with-database.html
so I have declared image files as BLOB files. How can I get the width for the them?
There is a sample from ordimage reference:
DECLARE
image ORDSYS.ORDImage;
width INTEGER;
BEGIN
SELECT p.product_photo INTO image FROM pm.online_media p
WHERE p.product_id = 3515;
-- Get the image width:
width := image.getWidth();
DBMS_OUTPUT.PUT_LINE('Width is ' || width);
COMMIT;
END;
the ORDSYS.ORDIMAGE is used instead of BLOB here. when i do the same then i can't select BLOB content into the ORDSYS.ORDIMAGE variable. And otherwise I can't use the getWidth with the BLOB variable.
Can anybody help please?Hi,
the column blob_content is not suitable for storing into v_image2 because variable v_image2 is of type ORDSYS.ORDIMAGE and the column is BLOB.
I used the following method instead:
declare
image blob;
attributes clob;
img_mimeType varchar2(32);
img_width integer;
img_height integer;
img_contentLength integer;
fileFormat varchar2(32);
contentFormat varchar2(32);
compressionFormat varchar2(32);
begin
DBMS_LOB.CREATETEMPORARY(attributes, TRUE, DBMS_LOB.CALL);
select img
into image
from image_repository
where id = 0;
ORDSYS.ORDImage.getProperties(image,
attributes,
img_mimeType,
img_width,
img_height,
fileFormat,
compressionFormat,
contentFormat,
img_contentLength);
dbms_output.put_line(img_mimeType);
dbms_output.put_line(img_width);
dbms_output.put_line(img_height);
dbms_output.put_line(fileFormat);
dbms_output.put_line(compressionFormat);
dbms_output.put_line(contentFormat);
dbms_output.put_line(img_contentLength);
DBMS_LOB.FREETEMPORARY(attributes);
end;
try adapting this code and think about the possibility of "caching" image properties, because it takes some time to retrieve them every time.
Bye,
Flavio
http://oraclequirks.blogspot.com/search/label/Apex -
How to get the image stored in archieve link as an attachment in work item.
Hi All,
through transaction OAWD we are storing scanned images.
Once this transaction is executed a workitem appears in the inbox of the initiator with the scanned invoice as attachment.
When the user executes the work item FV60 screen is displayed where the user enters the data based on the scanned invoice attachment.
After the user Parks the document the custom workflow triggers and a workitem appears in the inbox of an approver.
Our requirement is that the scanned image should also appear as the attachment.
Can you please suggest how to get the image stored in archieve link as an attachment in work item.
Regards
ShraddhaHi Martin,
with every parked document a scanned image is linked.
I need to create a link under objects and attachments in the work item, such that when the user clicks that link the image is displayed.
At present the following functionality is available.
The BO used is FIPP
Objects and attachments:
parkeddocument:AK0108500001252008.(via FIPP binding with WIOBJECT_ID)
On clicking the link below objects and attachments: the parked document AK0108500001252008 opens in display mode.
Now we want to have 2 links:
parkeddocument:AK0108500001252008.
image.
When we click on the link image then the scanned invoice linked to the document should get opened.
I am able to get the image id of the the image through SAP_WAPI_GET__OBJECTS,
export parameter leading_object provides the detail.
But I am not able to figure out how to use it in my workflow to display it as an attachment.
Hope this will give a better understanding of my question.
can you please suggest as to how I should proceed with it. -
How to get the value of Keyboard Increment in illustrator?
Hi! everyone,Good afternoon.
Now I have a painful problem.
How to get the value of Keyboard Increment in illustrator,JS? Like Object > Preferences > General >Keyboard Increment.this will do
var keyboardIncrement = app.preferences.getRealPreference ('cursorKeyLength');
alert(keyboardIncrement); -
How to get the image in docking control in a report using doc management
HI All
My question is that is that i am storing one image using documents in jha2n.
Now I want to get that image in report using Document management.
Pls guide how to proceed as I am new and dont know anything about document management.
Thanks
PoojaHi,
Please kindly refer to the online help link below:
[http://help.sap.com/saphelp_erp60_sp/helpdata/en/7a/973035624811d1949000a0c92f024a/frameset.htm|http://help.sap.com/saphelp_erp60_sp/helpdata/en/7a/973035624811d1949000a0c92f024a/frameset.htm]
And for handling the DMS document, you may check the BAPIs in SAP Note: 504692
Function group: CVBAPI
BAPI_DOCUMENT_GETDETAIL2
BAPI_DOCUMENT_CREATE2
BAPI_DOCUMENT_CHANGE2
BAPI_DOCUMENT_DELETE
For display image in the docking control, pleae kindly refer to the SAP DEMO: RSDEMO_DOCKING_CONTROL
Cheers, -
How to store the images in KM using Code
Hello,
i retreived the images from KM using the following code.
import com.sapportals.portal.prt.component.AbstractPortalComponent;
import com.sapportals.portal.prt.component.IPortalComponentRequest;
import com.sapportals.portal.prt.component.IPortalComponentResponse;
import com.sapportals.portal.prt.resource.IResource;
public class ThumbnailTes extends AbstractPortalComponent {
/* (non-Javadoc)
@see com.sapportals.portal.prt.component.AbstractPortalComponent#doContent(com.sapportals.portal.prt.component.IPortalComponentRequest, com.sapportals.portal.prt.component.IPortalComponentResponse)
public void doContent(IPortalComponentRequest request,IPortalComponentResponse response) {
String path =request.getResource(IResource.IMAGE,"images/sap1.gif").getResourceInformation().getURL(request);
response.write("<img src = "path"/>");
but i want to store the images in KM using code.Can anybody help me.
acutally the image is my location(c:/images/sap1/jpg).i want to upload this image to KM using code.
Can anybody help me how to do that?Hi Kasturi,
> not accepting the points
It worked on this and on one other thread, but this is still open: How to upload the image
> want upload the images from the client side machine
> to KM
In the thread I just referred to, I already provided information about the HTMLB upload control. With this at hand, you'll get the file from the client to the server.
At server side, get an ICollection instance where you want to store the file and create the corresponding resource. See https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/javadocs/nw04/sp12/knowledge management/com/sapportals/wcm/repository/icollection.html#createresource(java.lang.String,%20com.sapportals.wcm.repository.IPropertyMap,%20com.sapportals.wcm.util.content.IContent)
Hope it helps
Detlev -
Regarding: How to get the Tax Breakup Amount using SDK
Hai Friends,
I created one saled order . I have given Tax code (Service) then it show total amout of tax is 370.80. when i click the link button of Tax Amount field from sales order then it show the Tax Breakup Details in Separate Screen of SAP. That screen Contain following Details.
From Caption is : Define Tax Amount Distribution
Type Tax Parameter Code Tax Parameter Name Rate Duty Tax Amount Base Amount
Service Service Service Tax 12 360.00
Cess_ST Cess_ST Education Cess for Sevice 2 7.20
HSCess_ST HSC_ST HSCee for Service 1 1.00
My Doupt is :
How do i get the Service tax Breakup value from above grid.
How to get the Tax Breakup value from that SAP Screen, is it any help in SDK.
Please Help Me.
Regards,
K Sakthivel
Edited by: ksakthivel on Dec 7, 2011 10:41 AM
Edited by: ksakthivel on Dec 7, 2011 10:53 AM
Edited by: ksakthivel on Dec 7, 2011 10:54 AMHai Friends,
I created one saled order . I have given Tax code (Service) then it show total amout of tax is 370.80. when i click the link button of Tax Amount field from sales order then it show the Tax Breakup Details in Separate Screen of SAP. That screen Contain following Details.
From Caption is : Define Tax Amount Distribution
Type Tax Parameter Code Tax Parameter Name Rate Duty Tax Amount Base Amount
Service Service Service Tax 12 360.00
Cess_ST Cess_ST Education Cess for Sevice 2 7.20
HSCess_ST HSC_ST HSCee for Service 1 1.00
My Doupt is :
How do i get the Service tax Breakup value from above grid.
How to get the Tax Breakup value from that SAP Screen, is it any help in SDK.
Please Help Me.
Regards,
K Sakthivel
Edited by: ksakthivel on Dec 7, 2011 10:41 AM
Edited by: ksakthivel on Dec 7, 2011 10:53 AM
Edited by: ksakthivel on Dec 7, 2011 10:54 AM -
How to get the update file without using Nokia Sof...
The network connection is unreliable and downloading the firmware update using PC Suite for my Nokia E90 proves difficult. Does anyone know how I can get the firmware version 300.34.84?
The trouble is Nokia's Software Updater does not accommodate any slight interruption to the connection during the update process. I will update this discussion with what version of PC Suite I have once I get that info.
Any help is kindly appreciatedIn fact, it is not Possible to get the update file without using Nokia Software Updater or you should search the net to find the update files in another place and even you get them, you can not use them with NSU.
You can Update your Device with:
1 - NSU (Nokia Software Update)
2 - FOTA (Firmware Over The Air) for FP2 devices ONLY.
3 - Nokia Care Center
there is not other way to upgrade.
Hope useful for u.
regards
Nokia N79 4GB
SW Version: 32.001 RM-348 MEA -
Quick question: How to get the scrolled page number using af:table
Hi,
When using range paging on scrolled table, how to get the current scrolled page number(1,2,3...), for example when moving the table vertical scroll bar forward or backward, is there any method in ViewObjectImpl class that I can use to get such information? I have seen the method scrollToRangePage(int i), but when scrolled ("Fetching data..."), it doesn't not get into this method. So it is wrong usage for this method, right?
ThanksDidn't you just ask that question in this thread?: How to catch the page number when using scroll table in ADF 11g?
A bit of patience might be in order.
CM. -
NSImageView - How to get the image file's path?
I'm working on an image uploader application, and am having difficulties getting the info I want from an editable NSImageView. Basically I have an NSImageView object which the user can drag an image file to display a preview and add to the list of images to be uploaded. The image is loaded into the NSImageView just fine, however for my purposes I need access to the actual file path of the image.
The NSImageView target function is activated when an image file is dragged onto the view, however at that point an NSImage is provided and I have yet to figure out how to get access to the file name. Anyone have any suggestions regarding this?This may be helpful.
http://nsnotfound.blogspot.com/2007/08/nsimageview-and-image-filenames.html
Eric -
Apple TV won't play back my album images from IPhoto in the edited order I want. The order seems to revert back to the time stamp for the photos. I have combined the photos from 3 different cameras and they had slightly different clock settings. I am working on an edited presentation of about 1500 Pics from travels in Turkey this summer and sometimes the order makes more sense if I move some of the images quite a ways. Is there any solution short of changing the time stamp on every single image?
Using the 'adjust date and time' setting is the best way to syncronise the photos from all your cameras. However as you say this merely puts them all in the correct order chronologically.
If there are photos that you feel would be best somewhere else in an album other than in date order, it may depend on how many as to which is the best option for you. If it's only a few you may wish to adjust the date/time on these few manually so they fit in with the rest where you want them.
If you have a lot of photos you want in a different order to the order by date, or you really don't care about what date/time is used and just want them in the order you want them in, then 'batch change' is the best option.
From the view menu, select 'sort photos - manually', drag the photos around until they are in the order you want, select all of them. Now select the batch change option and choose 'Date' from the 'set' options, type in a date and time for the first photo, it can be anything but it's probably a good idea to choose something close to the original date, then check the box 'Add'. You can keep the value set at 1 minute or enter any value you want, it may be more realistic to divide the length of your holiday by the number of photos you have to calculate a value, but it really isn't necessary. Clicking OK will adjust all the dates without affecting the title or description and the photos will now show on the Apple TV in that order.
Just to be sure iTunes is updated, you may want to go to the advanced menu/choose photos to share in iTunes and deselect the album, apply, reselect the album and apply again. -
CS2- How to get the fonts used in a document ?
Hi,
Can anyone tell how to find the the fonts used in the document directly without iterating through the text art used in the document.BCOZ if i iterate through each text frame or character my plugin works very slowly.I want to speed up the process of finding & replacing the fonts like wat we do manually in the "Type-> Find Font" menu thru my code.
Please post ur comments on this .If there is no direct option to find &replace the fonts used in the document ,pls let me know the simplest logic of finding & replacing all occurances of a font in a doc so that my process of doing this should be faster.
Thanks in advance.
myRiazAs far as I know, there's no way to get a list of fonts in use in a document without iterating over the document and compiling a list by asking every piece of art.
If you want to trigger 'Type > Find Font' there might be a way to invoke that using Actions (AIActionManager.h). I'm not sure if that would help or not though.
This probably isn't very helpful depending on what you're doing, but I think this is meant to be handled by using character styles. That way you can change a style and update any related text instantly. Not much help though if you're just trying to write a S&R font plugin. -
How to get the image from web site
Hi,
Anybody know the coding that use to get or download the image from the web site when the image's url is given.
Thankshttp://www.exampledepot.com/egs/java.net/GetImage.html
-
How to get the Mobile information by using J2ME application
hi all,
I am lakshman.I am developing an application in j2me,I want my program compatible to all mobile devices.
I want to know properties and the device information with the help of a j2me application.I got the information with the help of System.getProperty(String).I found some of the information like sms,videocapture,and some of the values and the variables ... in the following
platform...null
encoding...ISO-8859-1
configuration...CLDC-1.0
profile...MIDP-2.0
locale...null
fileconnection...1.0
comport...null
hostname...iwmc-07
sms...null
smartcard...null
location version...null
sip version...null
m3gversion...null
mms...null
videocapture...false
videoencoding...null
snapshotencoding...encoding=png encoding=jpeg encoding=gif encoding=bmp
audioencoding...null
supaudcap...false
suprecod...false
supmixing...false
mediaversion...1.1
streamcont...null
I want to know these are the only variables or is there are lot...
Now my question is I want to get the information of the service provider and also the present location that the mobile was present.I think there was some method to get that ...I want to get what firmware it was using .
Can anybody tell me that way and also the package to get the information
thanks in advance
lakshmanhi all,
I am lakshman,I found the answer for my question,By using the Location API(jsr179).It was not include in the WTK2.2.for that i have downloaded the WTK2.3 then i have implemented the location api in the application and it was working.
And I have the following warning...
Warning: To avoid potential deadlock, operations that may block, such as
networking, should be performed in a different thread than the
commandAction() handler.
I am running the application from my Emulator(by using the default color phone).I have to check that in the device.
Can any body please give me the way to fix that,i want to test my application from my emulator is that is possible if possible ...how?.what is the procedure to implement..
thanks in advance
Maybe you are looking for
-
Adobe Acrobat X Pro gets corrupted and will not open
After a month or so Adobe acrobat gets corrupted and will not open, so I have to uninstall it and reinstall it again. I am using windows 8 64bit professional version. Even the updates did not solve the problem.
-
Software Developer position based in LAS VEGAS METRO
Small company in the Las Vegas Metro area seeks a LabVIEW Software Developer. The LabVIEW Software Developer overview: The LabVIEW Software Developer position is responsible for developing and troubleshooting LabVIEW software developed for our propri
-
Placing a movie into scrollpane
I have a scrollpane Scroll1. I set its contentpath to "movie1" When run movie1 shows within the scrollpane. I need to progam a button to replace the contentpath with "movie2" I have tried: _root.Movie1.loadMovie("movie2.swf"); _root.scroll1.loadScrol
-
A download, iPhoto, Version 9.4.2, released November 2012; has been on my download page for three weeks. Despite a half dozen attempts to install it, it has never completed the download. Near the end it always says an error has occurred. What can
-
Error 100 with adobe download assistance..
Error 100 with adobe download assistance..unable to sign in to use the adobe acrobat software..i am not having any network issues..