How to get the pixel data so as to work on it?
Hi all,
I am trying to write a plug-in that will crop and scale the image, edit the selection in the image document based on image data. For this purpose I need the pixel data of the image. How to get the image data as different pixels and what is the data structure used to store this data?
Assumption: No layers i.e., only background
Thanks in advance,
Sailu
Hi Ilya,
Thank you for your post. In the plugin architecture you propose (automation + filter), do you have an idea about how to share the pixel data between the two plugins? I have found a post that gives details about how to get pixel data and show it using ADM components
Matthew Hollingworth, "ADM Color Managed Preview?" #1, 22 Oct 2007 11:53 pm but it supposes that you have a filter plug-in.
Again, does anyone knows how to preview the current image in a AUTOMATION plug in? This seems impossible.
Thank you all for your help
Cheers,
Chaker
Similar Messages
-
How to get the actual data in ALV report
I am doing some upgradation work in that i am using Submit & And return and also i am using some function modules like LIST FROM MEMORY , LIST TO TXT wnd WRITE LIST , it gives output in normal list format , But i need to print in ALV report .
With the use of set table for 1st display i got the ALV report but not with actual data, (some junk value is showing) , So can any 1 suggest me how to get the actual data in ALV report, With the use of Any Function Module or with Coding,
with regards,Hi Saravana
I am sure you must be getting the values in tables of table parameters from every FM.
consolidate the values from tables of all FMs in one table and built ALV for that table only.
I hope this way you can show the actual data in ALV.
thanks
Lalit -
How to get the "current date" in the BEx?
Hi all,
I need to get the "current date" in my Bex report in order to make a comparison. I know there is a "How to" which shows how to get the current date via a User Exit, but I didn't find it. Could you please help me?
Thanks1. Create a New Formula in Key Figures structure
2. Give tech name and description and Select "New variable" option
3. Next screen will launch Variable Wizard -> create a new variable with replacement path as processing type
4. in next screene select the date characteristic that represents the first date to use in the calculation (From Date)
5. In the next screen select Key in the Replace Variable with field. Leave all the other options as they are
6. In the next Currencies and Units screen select Date as the Dimension ID.
6. Save variable
repeate the Above steps to create another variable (To Date)
and now you can use these two new replacement path variables in your new formula.
Dev -
How to get the current date in a workflow
Hey,
Can anyone tell me how to get the current date while in a workflow?
Thanks in advance.Here is how we did it, hope it helps
<defvar name='locCalendar'>
<new class='java.util.GregorianCalendar'/>
</defvar>
<defvar name='dateFormat'>
<new class='java.text.SimpleDateFormat'>
<s>MM/dd/yyyy</s>
</new>
</defvar>
<defvar name='formatedDate'>
<invoke name='getTime'>
<ref>locCalendar</ref>
</invoke>
</defvar>
<invoke name='format'>
<ref>dateFormat</ref>
<ref>formatedDate</ref>
</invoke> -
How to get the current date ? in the form of dd/mm/yyyy?
Hi all,
As getDate( ), getMonth( ), and getYear( ) is depricated, how to get the current date or System date, month and year ? please help ??
Regards
AshviniHI,
Than u for the reply. But i am getting one error.
as u said, I tried to do so.........
but, i am getting one error.
code
Calendar cald=(Calendar.getInstance.getTime());
out.println(cald);
error message
validate$jsp.java:86: Attempt to reference method getInstance in class java.util.Calendar as an instance variable.
Calendar cald=(Calendar.getInstance.getTime());
^
1 error
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
Pls help
Regards,
Ashvini -
How to get the context data using java script in interactive forms
Hi All,
How to get the context data using java script in interactive forms by adobe, am using web dynpro java
thanks.Hi venkat,
Please Refer this link.
Populating one Drop-Down list from the selection of another Drop-down list
Thanks,
Raju. -
How to get the manufacturing date of iphone 5s?
how to get the manufacturing date of iphone 5s?
thanksEnter your serial number here:
www.appleserialnumberinfo.com/Desktop/index.php
To find your serial number:
Settings > General > About > Serial Number -
How to get the creation date of an event/meeting
I need to implement some control rules on booking conference rooms depending on the creation date and start date.
For example:
- the booking cannot be accepted if the meeting start date is less than 2 hours ahead
at 3:00 PM I can book the conference room for a meeting starting at 5:05PM
but not for a meeting starting at 4:55PM
- the booking cannot be accepted after 5:30PM for a meeting starting the next morning before 10:00AM
at 5:45PM I can book the conference room for a meeting tomorrow at 11:00AM, but not for a meeting at 9:45AMHi Michel,
how to get the creation date of an event/meeting?When you use the calendar sdk to fetch a meeting there is an Icalendar(http://www.ietf.org/rfc/rfc2445.txt) property called CREATED with the creation time in UTC.
For example:
- the booking cannot be accepted if the meeting start
date is less than 2 hours ahead
at 3:00 PM I can book the conference room for a
meeting starting at 5:05PM
but not for a meeting starting at 4:55PM
You would want to implement these rules with with the sdk? That would implie that users connecting to the calendar server with any other client than the calendar sdk could still book these resources whenever they want.
Or you would want to go an validate all the meetings once they are already created?
Cheers,
Jean-Philippe -
The dates my photos were taken are not incorrect. Any suggestions on how to get the correct dates back?
Thank you Winston. This works and I can adjust several photos at the same time.
-
How to Get the Current data into Planning Layout from the Planning cube
Hi,
I have a problem in BPS. I am selecting the data from cube based on Month org details but I want to see the latest data. How can i get this data into planning cube.
Like
data
Tran cal month org amt
1 jan a 100
1 feb a 200
if i want to read based on Tran org as input values I shoud get the below data but I am getting the previous data.
Tran cal month org amt
1 feb a 200
Kindly help me in this regard
Thanks
NaveenNaveen,
Are yo having issue when you save something in the layout, the data doesn't appear in the listcube ? Or do you have issue that the latest data you see in the cube doesn't appear in the layout ?
For the former issue, please look at your selections of listcube and for the second issue, please check your planning level definition, make sure all the restrictions you have applied are valid for this latest data to be presented in the layout.
Hope this helps.
Cheers
Srini -
How to get the Delivery date in PO line Item in SAPScript
Hi Gurus,
I am working on PO Script (MEDRUCK). I copied the Standard to a Z form. ZMM_MEDRUCK, Now I need to print the the Header text at the end of MAIN window. I put Iem number along with the other line Item informmation like stanadrd PO Script MEDRUCK. I also want to show the delivey date with line Item, so Itried to use EKET-EINDT but it is returning the delivery date of last line item, means while printing the first line and other information it is showing the delivery date of the last line item, I tried with the PEKPO-EINDT it is also not working.
Can any body suggest me how i can get the delivery date for the respective line Item ?
Regards
Sonyactually your are picking up the correct data from Table EKET (EKET-EINDT) but your are printing that in item data loop for EKET might have already executed in your script and the header of that internal table consist the last entry of the table so for that. Fetch the delivery date explicite from the Table EKET when your in item level processing and print that.
For Example u can use this code.
To print you have write the this code in Script item level printing window "MAIN" window
Following perform is called to get the line item delivery date in PO
{/: PERFORM GET_DEL_DATE IN PROGRAM ZPerform_prog
/: USING &EKPO-EBELN&
/: USING &EKPO-EBELP&
/: CHANGING &DEL_DATE&
/: ENDPERFORM}
{* Dellivery date &DEL_DATE& }
write the below code in the Z program "ZPerform_prog"
{ FORM get_del_date TABLES in_par STRUCTURE itcsy
out_par STRUCTURE itcsy.
READ TABLE in_par WITH KEY 'EKPO-EBELN'.
CHECK sy-subrc = 0.
$_po_no = in_par-value.
READ TABLE in_par WITH KEY 'EKPO-EBELP'.
CHECK sy-subrc = 0.
$_po_line = in_par-value.
SELECT *
FROM eket UP TO 1 ROWS WHERE ebeln EQ $_po_no AND ebelp EQ $_po_line.
$_del_date = eket-eindt.
CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
EXPORTING
date_internal = eket-eindt
IMPORTING
date_external = $_del_date
EXCEPTIONS
date_internal_is_invalid = 1
OTHERS = 2.
READ TABLE out_par WITH KEY 'DEL_DATE'.
CHECK sy-subrc EQ 0.
out_par-value = $_del_date.
MODIFY out_par
INDEX sy-tabix.
CLEAR : $_po_no , $_po_line ,$_del_date.
ENDSELECT.
ENDFORM. "GET_DEL_DATE } -
How to get the Current Date in webdynpro java
Hi Experts,
In my project i have two date input fields called
1)Start Date
2)End Date
and one Absence type input field is there. The user wants to set the start Date ,End date and absence type.
How to get the user set values in my project.i.e how to get the user inputs and the started date must be current date of the system and end date must be after the 3 months.
Can any body send code regarding this.
Thanks in advance.
Regards,
Venkat.
Edited by: Venkat5939 on Jan 11, 2011 4:46 PMHello Venkat,
Current Date:
Date date = new Date(System.currentTimeMillis());
For getting the date after three months refer the following threads:
Set date in a date field
Date Function
date format
Hope it helps.
Regards
Nizamudeen SM -
How to get the current date and compare dates
hi
does anyone know how you would get the current date?
furthermore, how to compare the current date with a past date to see how many days or months have past since then?
thankshave a look at the Date class. new Date() creates an object containing the exact date and time at creation time. (Date).getTime() might be useful for comparing two dates. GregorianCalendar might be useful, too.
-
How to get the PDF data which i have send to Spool
Dear Freinds,
My requirement is to display the output which iam getting from a custom report(ZSALARY) in the form of PDF . So now i wanted to display the ALV output on to my desktop (as of now) in PDF format.
i have done the below coding please correct me why iam not getting the same data which is coming out of my report in the PDF, iam passing the same internal table.
IF NOT it_final[] IS INITIAL. -
>IT_FINAL is my main internal table in the report ZSALARY
DATA : count TYPE syprcop,
days TYPE sypexpi,
params TYPE pri_params,
valid TYPE c,
pdf_table TYPE rcl_bag_tline,
spoolid TYPE rspoid,
pdf_fsize TYPE i.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = 'LP01'
copies = count
list_name = 'ZSALARY' -
tHIS IS MY REPORT NAME
list_text = 'ZSSPOOL'
immediately = ' '
release = 'X'
new_list_id = 'X'
expiration = days
line_size = 90
line_count = 65
layout = 'X_PAPER'
sap_cover_page = 'X'
receiver = 'SAP*'
department = 'System'
no_dialog = 'X'
IMPORTING
out_parameters = params
valid = valid.
NEW-PAGE PRINT ON PARAMETERS params NO DIALOG.
WRITE : 'hi this is the test for spool'.
NEW-PAGE PRINT OFF.
COMMIT WORK.
WRITE : / 'The Spool no is ', sy-spono. "system variable for spool no
spoolid = sy-spono . -
At this point i can see the spool no.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = spoolid
no_dialog = 'X'
IMPORTING
pdf_bytecount = pdf_fsize
TABLES
pdf = pdf_table
EXCEPTIONS
OTHERS = 0.
CHECK sy-subrc = 0.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = pdf_fsize
filename = 'C:\Documents and Settings\Administrator\Desktop\test.pdf'
filetype = 'BIN'
TABLES
data_tab = it_final
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
OTHERS = 5.
ENDIF.
if i go and on my desktop it is saying the below error "ADOBE READER COUDNT OPEN 'test.pdf'
because it is either not supported file type or because the file has been damaged.
my aim is to get the data which is there in IT_final in the PDF .....please correct me the parameters which i have given wrong. my doubt is in GUI_download fM in the tables should i pass it_final or
the pdf_table coming from'CONVERT_ABAPSPOOLJOB_2_PDF'...... i tried this option iam able to open and it is just giving message which i kept before this FM i.e WRITE : 'hi this is the test for spool'.
what i should to get my internal table data.
Pls help.
regards
srinivas.Dear Karthik,
Thank you for giving me the link there by iam able to get the ouput download int he pdf
as below code , but now a small problem for me .......i have 10 fileds in the Report ouput ....but however in the pdf output i can see only 8 fields and the two fields got truncated . Could you please tell me what
i have to change in my below code so that i can get all the values
IF NOT it_final[] IS INITIAL.
data : it_tsp01 type standard table of tsp01,
l_wa_tsp01 type tsp01.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = 'LP01'
copies = count
list_name = 'ZHR_BON'
list_text = 'ZSSPOOL'
immediately = ' '
release = 'X'
new_list_id = 'X'
expiration = days
line_size = 90
line_count = 65
layout = 'X_PAPER'
sap_cover_page = 'X'
receiver = 'SAP*'
department = 'System'
no_dialog = 'X'
IMPORTING
out_parameters = params
valid = valid.
SUBMIT (sy-repid) TO SAP-SPOOL
SPOOL PARAMETERS mstr_print_parms
WITHOUT SPOOL DYNPRO
WITH pnppernr = p0001-pernr
AND RETURN.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = spoolid
no_dialog = 'X'
DST_DEVICE = params-PDEST
IMPORTING
pdf_bytecount = pdf_fsize
TABLES
pdf = pdf_table
EXCEPTIONS
OTHERS = 0.
CHECK sy-subrc = 0.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = pdf_fsize
filename = 'C:\Documents and Settings\Administrator\Desktop\test.pdf'
filetype = 'BIN'
TABLES
data_tab = pdf_table "it_final
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
OTHERS = 5.
ENDIF.
Please tell me how i can get the all the fields which are there in my normal alv output ......
Case 1) .i wanted all the 10 fields in PDF to be displayed without truncated , I have checked in Spool ........ i found all the fields are there .....but however when i check the downloaed PDF i can see some fields are getting truncated.
Case 2) However if on the ALV output if the user hides 2 fields out of 10 fields then only 8 feilds which are appearing on the output before sending the Spool should only be displayed in PDF as well -
> for this scenario what i have to do.
Thanks Once again.
regars
srini. -
How to get the finished date of production order
hi guys
now i want to get the finished date of production date. when i search in the table afko , i found the field GLTRI is '0000.00.00'.
BUT IN the production order display view , the confirm date is '2007.1.1'. so how can i get the confirm date with the production order number? thanks.For costing report, you have to read the following tables: based on material Qty/value/ Machine rate and machine posting date , machine rate ( T-code kp26) and also types of material Raw, finished and semi finished ..
AFRU ,AFPO,AFKO,AFVV,AFVC,CAUFV FOR PRODUCTION ORDER.
For material calculation MARA, MSEG and MKPF as well as MAKT...
Hope thisll help you .
Thanks
Maybe you are looking for
-
Mac OS X 10.5.1 - Disk Permission Verify and Repair Functions Are Broken
Machine: Mac mini with 1.66 MHz Intel Core Duo, OS: Mac OS X Version 10.5.1 Note: Upgraded to Leopard from version 10.4.10 When using Disk Utility to attempt to verify or repair the permissions of the internal hard drive volume containing the OS, the
-
Problem to open office files from outlook 2013
can not open the attached office files word, Ex etc. from outlook 2014, as the window of opening file hang on "opening in protected view", and the only way to open the attachment is to save it and open it, kindly advice
-
I have just subscribed to family sharing. I notice that when I sign into find my iPhone using a family member's device, all devices are visible. This is could be helpful and convenient, but I don't like the idea that family members can lock and eras
-
WMI filter query of the last GPO in an OU fails
Hi, I've noticed an interesting issue: Server 2012 R2, Windows 7. GPO's. WMI Filters. I've linked some GPOs to a specific OU (which exclusively contains users). For example, there are three objects which configure Word, Excel and PowerPoint 2010. I'v
-
GROUP attribute ruins alternate row coloring
I had the alternate row colors working, but then when I added the "GROUP" attribute to my <cfoutput> tag, it's not working any more. More like random row coloring! Any thoughts? Thanks! Rick <table width="100%" border="1" cellspacing="0" cellpadding=