How to change Image color like Channel mixer
Hello everybody
I have this problem can anyone help me:
I want to change Channel mixer color,
for example, change original Image color to B&W.
My code:
docRef.channels[0].color.rgb.red = 30;
docRef.channels[0].color.rgb.green = 59;
docRef.channels[0].color.rgb.blue = 11;
docRef.channels[1].color.rgb.red = 30;
docRef.channels[1].color.rgb.green = 59;
docRef.channels[1].color.rgb.blue = 11;
docRef.channels[2].color.rgb.red = 30;
docRef.channels[2].color.rgb.green = 59;
docRef.channels[2].color.rgb.blue = 11;
But not working in scripting, seems a mistake.
How should I correct this code? Thank you for your help.
Hi Michael,
I try changed 12 parameters in array of num in my js,
doc.layers[0].mixChannels([[30,59,11,0],[30,59,11,0],[30,59,11,0]],false);
doc.layers[0].mixChannels([[30,59,11,0]],true); ------ this way is better than ↑
doc.layers[0].mixChannels([[60,30,10,0],[30,10,60,0],[10,60,30,0]],false);
doc.layers[0].mixChannels([[39,77,19,0],[35,69,17,0],[27,53,13,0]],false);
They would show new color as I wantted,
I forgot ' When monochrome = true, the maximum number of channel value specifications is 1. '
Thank you for your recommendation.
Similar Messages
-
How to change background color in online editor
How to change background color in online editor
Jeff,
if you try to change all the plsql keywords to the same background color (that is not either white or black or blue) via the options panel in SQL Developer (Code Editor > PLSQL syntax colors), you will get the new background color in the worksheet only for the areas with plsql text, while the areas without any text will have the same background color as the base color scheme you started with. This means that there is no way to change the "general background" color via the options panel, but you have to use the same background color of one of the predefined color schemes.
This seems to me a bug, but probably it's not considered high priority, so it will not be fixed for the time being.
I would like to stress the fact that being able to change the color scheme of the development environment that you use every day about 8 hours a day can make quite a difference on your eyes at the end of the day.
Thanks,
Paolo -
How to change the color of specific row in ALV tree
Hi,
I m using method set_table_for_first_display of a class CL_GUI_ALV_TREE.
The req is to change the color of specific row. Now can anybody tell me how to change the color of ALV tree. As in ALV tree and in this method 'set_table_for_first_display', there is no parameter IS_Layout.
Pls suggest...hi
hope this code will help you.
Reward if help.
REPORT zsharad_test1.
TABLES: ekko.
TYPE-POOLS: slis. "ALV Declarations
*Data Declaration
TYPES: BEGIN OF t_ekko,
ebeln TYPE ekpo-ebeln,
ebelp TYPE ekpo-ebelp,
statu TYPE ekpo-statu,
aedat TYPE ekpo-aedat,
matnr TYPE ekpo-matnr,
menge TYPE ekpo-menge,
meins TYPE ekpo-meins,
netpr TYPE ekpo-netpr,
peinh TYPE ekpo-peinh,
line_color(4) TYPE c, "Used to store row color attributes
END OF t_ekko.
DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
wa_ekko TYPE t_ekko.
*ALV data declarations
DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE,
gd_tab_group TYPE slis_t_sp_group_alv,
gd_layout TYPE slis_layout_alv,
gd_repid LIKE sy-repid.
*Start-of-selection.
START-OF-SELECTION.
PERFORM data_retrieval.
PERFORM build_fieldcatalog.
PERFORM build_layout.
PERFORM display_alv_report.
*& Form BUILD_FIELDCATALOG
Build Fieldcatalog for ALV Report
FORM build_fieldcatalog.
There are a number of ways to create a fieldcat.
For the purpose of this example i will build the fieldcatalog manualy
by populating the internal table fields individually and then
appending the rows. This method can be the most time consuming but can
also allow you more control of the final product.
Beware though, you need to ensure that all fields required are
populated. When using some of functionality available via ALV, such as
total. You may need to provide more information than if you were
simply displaying the result
I.e. Field type may be required in-order for
the 'TOTAL' function to work.
fieldcatalog-fieldname = 'EBELN'.
fieldcatalog-seltext_m = 'Purchase Order'.
fieldcatalog-col_pos = 0.
fieldcatalog-outputlen = 10.
fieldcatalog-emphasize = 'X'.
fieldcatalog-key = 'X'.
fieldcatalog-do_sum = 'X'.
fieldcatalog-no_zero = 'X'.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'EBELP'.
fieldcatalog-seltext_m = 'PO Item'.
fieldcatalog-col_pos = 1.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'STATU'.
fieldcatalog-seltext_m = 'Status'.
fieldcatalog-col_pos = 2.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'AEDAT'.
fieldcatalog-seltext_m = 'Item change date'.
fieldcatalog-col_pos = 3.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'MATNR'.
fieldcatalog-seltext_m = 'Material Number'.
fieldcatalog-col_pos = 4.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'MENGE'.
fieldcatalog-seltext_m = 'PO quantity'.
fieldcatalog-col_pos = 5.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'MEINS'.
fieldcatalog-seltext_m = 'Order Unit'.
fieldcatalog-col_pos = 6.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'NETPR'.
fieldcatalog-seltext_m = 'Net Price'.
fieldcatalog-col_pos = 7.
fieldcatalog-outputlen = 15.
fieldcatalog-datatype = 'CURR'.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'PEINH'.
fieldcatalog-seltext_m = 'Price Unit'.
fieldcatalog-col_pos = 8.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
ENDFORM. " BUILD_FIELDCATALOG
*& Form BUILD_LAYOUT
Build layout for ALV grid report
FORM build_layout.
gd_layout-no_input = 'X'.
gd_layout-colwidth_optimize = 'X'.
gd_layout-totals_text = 'Totals'(201).
Set layout field for row attributes(i.e. color)
gd_layout-info_fieldname = 'LINE_COLOR'.
gd_layout-totals_only = 'X'.
gd_layout-f2code = 'DISP'. "Sets fcode for when double
"click(press f2)
gd_layout-zebra = 'X'.
gd_layout-group_change_edit = 'X'.
gd_layout-header_text = 'helllllo'.
ENDFORM. " BUILD_LAYOUT
*& Form DISPLAY_ALV_REPORT
Display report using ALV grid
FORM display_alv_report.
gd_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = gd_repid
i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
i_callback_user_command = 'USER_COMMAND'
i_grid_title = outtext
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
it_special_groups = gd_tabgroup
IT_EVENTS = GT_XEVENTS
i_save = 'X'
is_variant = z_template
TABLES
t_outtab = it_ekko
EXCEPTIONS
program_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.
ENDFORM. " DISPLAY_ALV_REPORT
*& Form DATA_RETRIEVAL
Retrieve data form EKPO table and populate itab it_ekko
FORM data_retrieval.
DATA: ld_color(1) TYPE c.
SELECT ebeln ebelp statu aedat matnr menge meins netpr peinh
UP TO 10 ROWS
FROM ekpo
INTO TABLE it_ekko.
*Populate field with color attributes
LOOP AT it_ekko INTO wa_ekko.
Populate color variable with colour properties
Char 1 = C (This is a color property)
Char 2 = 3 (Color codes: 1 - 7)
Char 3 = Intensified on/off ( 1 or 0 )
Char 4 = Inverse display on/off ( 1 or 0 )
i.e. wa_ekko-line_color = 'C410'
ld_color = ld_color + 1.
Only 7 colours so need to reset color value
IF ld_color = 8.
ld_color = 1.
ENDIF.
CONCATENATE 'C' ld_color '10' INTO wa_ekko-line_color.
wa_ekko-line_color = 'C410'.
MODIFY it_ekko FROM wa_ekko.
ENDLOOP.
ENDFORM. " DATA_RETRIEVAL -
How to change the color of SAP screen?
Hi Frens,
I know it has nothing to do with SD Community, but still I am asking. Can anyone tell me "How to change the color of SAP screen?" It is needed especially when you are working on System Landscape including PRD, Qua & Dev. There are chances that you end up making a test case in PRD instead of Dev or Qua. To avoid that, different color of SAP screen may be very useful and safe.
Regards
Vikas Chhabra
SD/CIN ConsultantWe had a clone of SAP for testing
Only GUIXT solution was available for users to distinguish between real Prod & Clone as SID was same
Created 2 scripts n C:\guixt\scripts
saplsmtr_navigation.e0100.txt
Esession.txt
BOTH having identical code
if V[_ashost=10.3.3.18]
TitlePrefix "CLONE18"
TitleSuffix "(CLONE8)"
endif
if V[_ashost=10.3.3.25]
TitlePrefix "PROD25"
TitleSuffix "(PROD25)"
endif
After much research - this was only solution.
GUIXT will be around; like SAPSCRIPT & SMARTFORMS
despite the enticement of Adobe Forms!
After some time you may set GUIXT profile start window HIDDEN
This you do by clicking profile button of GUIXT menu
If you want to see GUIXT Window again
CMD.exe Dos prompt
cd C:\Program Files\SAP\FrontEnd\SAPgui
guixt visible
Regards
Jayanta Narayan Choudhuri
Kolkata
URL: http://ojnc.byethost11.com -
How to change the color of the text field of form
Hi ,
Is there any way to change the color of the text field of the form........
Thnx in advance .......
Cheers,
EmanHi Bob. I'm new to these forums and I'm not sure of protocol and exactly how this is supposed to work, so If I'm doing this wrong then please excuse me and let me know.
I liked you solution on 'How to change the color of an Item on a form' using <blink>.
I'm new to this application and coding as well so its kind of foreign to me.
Working on a Report Page,
I would like to have item, :P1_JOB_NO blink when the difference between sysdate and :P1_DATE_DUE < 7 days.
I can identify the job_no which should blink by using the sql statement:
SQL> select job_no from oax_projects07 where
2 (sysdate - date_due < 7) and
3 emp_name = 'GARY PILKENTON';
JOB_NO
20060627 050
But I dont know the proper syntax to make it blink,
or when to plug the syntax into.
ie, is it a process, a validation, etc.
Do you have any advice for me? -
In elements 10 how to change screen color around photograph being worked on?
In elements 10 how to change screen color around photograph being worked on?
If you mean just the background of the tab or image window, right click it and choose what you want. If you mean for the whole program, no can do, sorry.
-
How to change images based on action.Even clicking changed images should ?
how to change images based on action.
Even clicking changed images should do respective actions.
and while displaying only one image at a time sholud get displayed.
I am using three images for a single column of a table in Jsp.
Any clues.
Any link for any good javascript html jsp site where i can find some good solution.
vijendraIn broad way if i say i have multiple situations in mutiple tables where i need such a logic to operate in for all tables.
lets say in first time load of page by default one image will be displayed (one with sorted order for first column rest all non sorted)Now after every click to any image respective sort should get called.along with all images should get changed.Here with every function one/two images will get effect at least.
As in first if i say sort by desc then this image will change rest all will remain in unsort form.
when i move to other column and click on new image the previos will convert to unsort and new one will convert to sort by ascending. rest all will be in unsort form as it is.
Now it seems like same logic is required with two three conditions.
even for everyaction different parametrs has to be passed at differnt situations.
Any good idea if someone can suggest.
I will be very greatful for him.
thanks
vijendra -
How to change the color of a font/sentence ?
what is a quick and easy method to change the colour of a sentence?
thanks!!!what are you asking here?
i'm confused because your questions is so simple
the answer is to set the color of the text before you render it out
if you're asking how to change the color AFTER it's in an image, well you can't, not by using the API anyway, you'll have to do some magic -
How to change images dynamically in jsp?
Hi All,
i Want to know how to change images dynamically in jsp, for example in any site if u look at advertise or any images, it will be changed after every few seconds.
Please guide me
Thanks
Sandesh Ssandeshas wrote:
Hi BlusC,
i was searching your mail Id to ask the question directly to u,i checked in your blog also, but i didnt get,I want to keep my email spam safe. Only trusted people and direct friends have it. Just use the forums for discussion.
my question is suppose if i want to display and change the advertise(adds from different company ) in my web site,how can i do it by using jsp?
Do i need to create animated gifs which contains all company adds??one might be from movie add,after few seconds next one migth be some other web site add like that, how can i achieve this in my servet,jsp or using struts.You create animated gifs with an [animated gif editor|http://google.com/search?q=animated+gif+editor]. There is nothing what JSP can do for you here. -
How to change the color of Menu links in obiee
Does anyone knows how to change the colors of Menu links in obiee. With menu I mean the menu links default right top (Search, homepage, Catalogus, Dashboards, new, Open). This should be set in skin and style files, not? I searched a lot. I could not find It. It is now Oracle blue, we want to change this.
obiee 11.1.1.5.
ThanksYou have to customize portal banner and portal content CSS files as needed in OBIEE server.
below links will guide u but will will not tell you exactly but your req can be done by customizing portal content and portal banner CSS files. try to identify the exact code using firebug in mozilla.
http://www.rittmanmead.com/2009/04/customizing-obiee-dashboard-banners/
Customization of login page, banner,logo in obiee11g
Thanks
Jay. -
How to change front color in Visual composer
Dear friend,
i am taking numerical expression box into visual composer table view
and try to change the front color in style tab for that field property
but front color is not changing in output(back ground color is changing ).
how to change front color in visual composer?
and can we change the symbol color too?
thanks and regards,
dushyant.Hi Vani!
1. Unfortunately one of my requirements is that I can only get data from queries and not from Web Services or other sources, so no WS calling would be allowed in my deployed I-View, but thanks anyway for your suggestion.
2. You are right, I was not clear enough in my first post. Let's say I have 3 rows and 12 columns, what I want is the following:
ROW3 = ROW1 / ROW2
obviously for each column. Do you have an idea about how it could be done??
Thanks a lot,
Andrea -
How to change background color to JCheckBox in a JTable?
Dear Friends,
I have an JTable in my application. It has four columns. First, third and fourth column contains JCheckBox (JCheckBox is created using Boolean.class), secod column contains values.
I have to change some of the cell color where JCheckBox is present.
Could anyone please tell me how to change the color of the cell in the JTable?
Thanks in advance,
Sathish kumar DYou would use a custom renderer.
To get better help sooner, post a SSCCE that clearly demonstrates your problem.
Use code tags to post codes -- [code]CODE[/code] will display asCODEOr click the CODE button and paste your code between the {code} tags that appear.
db
Alternative link: SSCCE
Edited by: Darryl.Burke -
How to change background color in photoshop cs3
how to change background color in photoshop cs3
Please help me...Background for what? You need to explain better and be more specific.
Mylenium -
How to change background color of multilevel textbox in oracle form 6i
hi
How To Change background Color of the Text.
In One Multilevel Block 10 Record is Display At a Time in a Text Box (Name is AMTt)
This Text Box display , Buffer and Record Length is 10
In Case Of Amount is Less 500 then Text Color Is Red(Or Any) and In Case Amount Is More 500 Then Color is Green (Or Any).
Me Use This Code in PRE_RECORD EVENT
TCMTL is Block name
TCMTL_AMT is Text Box Name
if :TCMTL.TCMTL_AMT >5000 then
g_fun.msgbox('Values is more');
Set_Item_Property('TCMTL_AMT' , BACKGROUND_COLOR, 'r50g100b100');
else
g_fun.msgbox('Values is Less');
Set_Item_Property('TCMTL_AMT' , BACKGROUND_COLOR, 'r50g100b10');
end if;
but This Code Is Refer Only 10th Value and change color depend on value.
so
possible to Different color in One Block Text Box Then how?DECLARE
cur_itm VARCHAR2(80);
cur_block VARCHAR2(80) := Name_in('system.trigger_block') ;
BEGIN
cur_itm := Get_Block_Property( cur_block, FIRST_ITEM );
WHILE ( cur_itm IS NOT NULL ) LOOP
cur_itm := cur_block||'.'||cur_itm;
--:global.VISUAL_ATTRIBUTE:= 'BACKGROUND_COLOR';
--:global.VISUAL_ATTRIBUTE:= get_item_property(cur_block||'.'||cur_itm ,Background_Color);
IF :TCMTL.TCMTL_AMT >= 500 THEN
Set_Item_Instance_Property( cur_itm, CURRENT_RECORD, VISUAL_ATTRIBUTE,'r50g100b100');
ELSE
Set_Item_Instance_Property( cur_itm, CURRENT_RECORD, VISUAL_ATTRIBUTE,'r5g100b10');
END IF;
cur_itm := Get_Item_Property( cur_itm, NEXTITEM );
END LOOP;
next_record;
END;
this is my in that how to set a VISUAL_ATTRIBUTE, and where to set so get a background color of text and change -
How to change a color for a row in ALV grid display
Hi,
how to change a color for a row in ALV grid display based on a condition.Any sample code plzHello Ramya,
Did you check in [SCN|How to color a row of alv grid]
Thanks!
Maybe you are looking for
-
Booting two Macs from one external drive: 10.8 and App Store?
I boot two Macs from one external harddrive. Does this mean that when 10.8 is sold exclusively via the App Store and thereby linked to a unique hardware identifier, I am going to have issues with activation/authentification each time I switch machine
-
All-day events become 3-day events
When I sync my iPhone All-day events from iCal are shown as 3-day events in iPhone. Any ideas anybody?
-
I have someone else's calendar on my iphone. how safe is our info?
I got a replacement iphone after dropping mine...once... I assumed this was a new phone.But when I looked in the calendar, I found someone else's information, some of which looks confidential. I have just given the 'genius bar' my old iphone to repla
-
Identity Sync - Password randomly generated in AD
Configuration: DS 5.2 Patch 2 on Solaris 9 with Identity Sync for Windows 1 2004Q3 configured to Synch from DS to AD I have set up object creation to flow from DS to AD, and the user creation works okay but the password I create the account with is n
-
Hello, I'm facing a problem here, l'd be grateful if someone could help me. I'm trying to install Remote Manager in an environment that has Windows Server 2003 64-bits as the OS and Intel Xeon as a processor. The objective is to make Oracle Identity