How to create a live trace object with transparent background?
Hi, I am trying to create a live trace object of my logo in ai. The logo is coming from photoshop on a transperent background, and it is all black. What I want to do is to bring it into ai and make it an object for obvious reasons. The problem I have had is that when I live trace it, the live trace leaves a white background which then overlaps with other objects in my ai file. Is there a way to live trace while preserving the transparent area or possibly better, to not include white space in the live trace? Thanks in advance!
Yep open the properties for live trace (Object>Live Trace>Tracing options). You will find a checkbox for ignore white.
Similar Messages
-
Graphics object with transparent background
Ive been trying to create an image using a graphics object, which i want to have a transparent background. I have been researching on the net and have come up with something like this, but its not really getting the job done. Im still getting an image with a black background. The image will always be 200 by 100 pixels.
public void drawGraph(Graphics2D g,int a,int b, int d)
Composite oldComp = g.getComposite();
Composite alphaComp = AlphaComposite.getInstance( AlphaComposite.CLEAR);
g.setComposite(alphaComp);
g.fillRect(0,0,200,100);
g.setComposite(oldComp);
<<OTHER STUFF DRAWN HERE>>
}Any tips would be greatly appreciated thanks.Create a BufferedImage like this:
int width = 200;
int height = 200;
BufferedImage yourImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); -
How to create LOV on view object with itself
Hi
My scenario is that I have COUNTRY table with columns Country_Code and Country_Name.
I need to display the Country_Name as selectonechoice. User will select some country name and then I should get the Country_Code associated with the selected Country_Name in Managed bean.
Could you please suggest how to achieve this?
Regards,
VinodHi
My English isn't very good.
create a view obj on COUNTRY table then from Data Control drag&drop view obj as a Single Selection and then select Adf Select One Choice and from there you can select which attribute to display.
in managed bean you can get the Country_Code from the below code:
DCBindingContainer dcBindings =
(DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding iteratorRow =
(DCIteratorBinding)dcBindings.get("iterator name for view obj");
Row row = iteratorRow.getCurrentRow();
System.out.println("row[]=" + row.getAttribute(0));
Habib -
Creating Thumbnail from an Image with transparent background
Hello,
I want to create a thumbnail image of size 200 x 200 pixels from an image of any size.
As the thumbnail is square, I'm centering the image according to size.
The code I'm using is working fine BUT after centering and resizing original image
and writing it to output file the remaining area is of black color.
I want the background should be transparent.
Code I'm using is not using JAI.
Please suggest me the solution.
the code I'm using is as follows:
public static void makeThumbnail(String inFile, String thumbFile ) throws Exception {
Image image = Toolkit.getDefaultToolkit().getImage(inFile);
MediaTracker mediaTracker = new MediaTracker(new Container());
mediaTracker.addImage(image, 0);
mediaTracker.waitForID(0);
int fixedHeight = 200 ;
int fixedWidth = 200 ;
int imageWidth = image.getWidth(null);
int imageHeight = image.getHeight(null);
double imageRatio = 0.25 ;
int thumbHeight = (int)(imageHeight * imageRatio );
int thumbWidth = (int)(imageWidth * imageRatio );
int x = ( fixedWidth - thumbWidth )/2 ;
int y = ( fixedHeight - thumbHeight )/2 ;
System.out.println(thumbHeight + " - " + y );
System.out.println(thumbWidth + " - " + x );
// draw original image to thumbnail image object and
// scale it to the new size on-the-fly
BufferedImage thumbImage = new BufferedImage(fixedWidth, fixedHeight, BufferedImage.TYPE_INT_RGB);
Graphics2D graphics2D = thumbImage.createGraphics();
graphics2D.setColor( new Color( 255, 255, 255, 0) );
int rule = AlphaComposite.SRC_IN ;
AlphaComposite ac = AlphaComposite.getInstance(rule, 0.9f);
graphics2D.setComposite(ac);
graphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION,RenderingHints.VALUE_INTERPOLATION_BILINEAR);
graphics2D.drawImage(image, x, y, thumbWidth, thumbHeight, null);
// save thumbnail image to OUTFILE
BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(thumbFile));
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(thumbImage);
int quality = 60 ;
quality = Math.max(0, Math.min(quality, 100));
param.setQuality((float)quality / 100.0f, false);
encoder.setJPEGEncodeParam(param);
encoder.encode(thumbImage);
}Change this line
BufferedImage thumbImage = new BufferedImage(fixedWidth, fixedHeight,
BufferedImage.TYPE_INT_RGB);
...to use a BufferedImage type that supports transparency like TYPE_INT_ARGB or TYBE_4BYTE_ABGR (I would recommend the latter since your saving the image).
Also, btw, you're not going to like the quality of the thumbnail if the image is reduced by more then half its size. -
Png files with transparent background show black only in firefox for android
I have a wix created site and png files with transparent backgrounds are showing with a black blackground in Firefox for Android. They show transparent in all other browsers I have tried.
I have tried saving the file as a gif, as a smaller png, interlaced, not interlaced, png 8, png24. It still shows black in Firefox for Android.Hi evelswoman,
Thank you for your question. This sounds like a good one for the web compatibility team. Currently there are some compatibility documentation for background-image here: [https://developer.mozilla.org/en-US/docs/Web/CSS/background-image] and more details on background: [https://developer.mozilla.org/en-US/docs/Web/CSS/background]
Filling a bug with webcompat.com with an example url can go a long way as well, I hope this helps. -
Convert live trace object to gradient mesh? Help please! :)
Does anyone have advice on turning a live trace object into a gradient mesh? Or some sort of workaround? We love the live trace tool, but cannot get the mesh to apply to it unless created by the pen tool first. Thanks for any help, using CS5.
Yes Monika has this right.
Ths is wha will happen toyour rt if you are first sucessful in creating shapes and then if you are successful in converting to gradient mesh.
You willlose your strokes and some of your strkes will be in part filed objects.
Best to do the live trace for the ink work and the gradient mesh as separate shaphes, but I do not think it is ncessary to lose you strokes by using tham ads clipping paths I think simply placing the gradient mesh objects behind the line work will do the trick.
Sort of like this -
How do i live trace without the white background
Im using cs3 photoshop and illustrator.
I want an object lived traced in illustrator without an white background colour.
I selected the object and cut it in photoshop and put it in a window with a transparant background, i saved it and opened it in illustrator, than it comes up without a background, but when i live trace it a white background comes up.
Anybody know what i can do about it?
thanksYou first have to expand the art, then proceed with the magic wand. Or select one white objekt with direct select and use Select > Same > fill color
-
HELP! PDF objects - How to create a program line object?
Hi Experts,
I would like to know how to create a Program lines object (icon cog wheels). I need to create additional coding inside the context tab but when I try to right click on a folder --> create -->graphic,address,text,alternative...single record... No
program lines can be created.
Hope someone could help me.
Thanks,
JeffThere are two ways of doing it, depending on what you want to accomplish. Both require that you edit the file ~/.bashrc (I assume you use bash)
1) If the application places all the executable files in a given directory (let's say /opt/Application/bin/), you can access all those executables directly by simply telling your shell where to look (in the same way the shell automatically looks for executable files in eg. /usr/bin). In ~/.bashrc, you would have to add a line that looks like this:
PATH="$PATH:/opt/Application/bin"
2) If you just want to make a traditional "shortcut" that executes a given command, this can be done with alias. Add this command to your ~/.bashrc:
alias shortcut="some command"
In this case, typing shortcut into a terminal will be interpreted just like if you had typed some command instead.
In order to try out these changes, either restart your terminal or run this command:
source ~/.bashrc
[EDIT]
I was obviously beaten to it
Last edited by Peanut (2009-05-26 23:12:47) -
How to create tcode for modulepool program with selection screen?
hi,
How to create tcode for modulepool program with selection screen?
thanks,
sagarHi,
We need to goto SE80.
In our program we right click on object name and goto create
-> transaction. Enter the module pool program and screen number and save and activate.
Or by SE93 also we can create a transaction code for our program.
Hope ths helps.
plz reward if useful.
thanks,
dhanashri..
Edited by: Dhanashri Pawar on Jul 22, 2008 8:29 AM -
How to create a custom function module with the records in SAP R/3?
Hi All,
How to create a custom function module with the records in SAP R/3? Using RFC Adapter I have to fetch the custom function module records.
Regards
SaraHi
goto se37...here u need to create a function group... then u need to create a function module. inside assign import/export parameters. assign tables/exceptions. activate the same. now write ur code within the function module
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm
Look at the below SAP HELP links, These links will show you the way to create a Function Module
http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm -
How to create a view on tables with different keys?
I have to create a View on:
Z3PVR: Transparent Table
BSEG: Cluster Table
CKIS: Transparent Table
BKPF: Transparent Table
RV61A: Structure
T001: Transparent Table
All the tables have different "Key Fields" and the structure has no "Key Fields". When i create the view, what do I mention in the "JOIN FIELDS" tab. and how do i create the view with the structure?
Please advise.How to create a view on a Non-Transparent Tables.
how to create view?
HELP.. How to create a view with the tables with ALV -
How to create transport request in object transport
How to create transport request in object transport from server to server
thanks in advance
aryahi,
when ever u r creating any object in devlopment and saving it will ask for request.create request and release in se09.
put mail to basis people to transport ,thy will transport using STMS transaction. -
How to create a LONG TEXT object in BAPI_ALM_NOTIF_CREATE
Dear experts,
Would you please give me a hand how to create a LONG TEXT object when creating a new Notification using BAPI_ALM_NOTIF_CREATE.
The snapit of my code is below. The Notification is created but without a long text.
THANK YOU!!
Data:
lv_it_longText type STANDARD TABLE OF BAPI2080_NOTFULLTXTI,
lv_st_longText like LINE OF lv_it_longText,
lv_st_longText-OBJTYPE = 'QME'.
lv_st_longText-TEXT_LINE = DESCRIPTIONLONG.
CALL FUNCTION 'BAPI_ALM_NOTIF_CREATE'
EXPORTING
EXTERNAL_NUMBER =
notif_type = 'M1'
notifheader = lv_header
TASK_DETERMINATION = ' '
SENDER =
ORDERID =
IMPORTING
NOTIFHEADER_EXPORT = lv_header_import
TABLES
*NOTITEM = lv_it_item
NOTIFCAUS =
NOTIFACTV =
NOTIFTASK =
NOTIFPARTNR =
LONGTEXTS = lv_it_longText
KEY_RELATIONSHIPS =
RETURN = lv_it_return.Hi
Make sure you have filled OBKEY.
OBJKEY must have the corresponding sort field for the values named below :-
1. QMEL - Notification header
2. QMFE - Notification item
3. QMUR - Notification cause
4. QMSM - Notification task
5. QMMA - Notification action
The combination of sort field of item/cause, item/task and item/action must be unique within a notification. If you leave the sort field empty and the OBJTYP = QME, then a long text is created for the notification header.
Regards
Abhii -
How to create Using Formatted Text Field with multiple Sliders?
Hi i found the Java Sun tutorial at http://java.sun.com/docs/books/tutorial/uiswing/components/slider.html very useful, and it tells how to create one Formatted Text Field with a Slider - however i need to create Formatted Text Field for multiple Sliders in one GUI, how do i do this?
my code now is as follows, and the way it is now is scroll first slider is okay but scrolling second slider also changes value of text field of first slider! homework due tomorrow, please kindly help!
// constructor
label1 = new JLabel( "Individuals" );
scroller1 = new JSlider( SwingConstants.HORIZONTAL, 0, 100, 10 );
scroller1.setMajorTickSpacing( 10 );
scroller1.setMinorTickSpacing( 1 );
scroller1.setPaintTicks( true );
scroller1.setPaintLabels( true );
scroller1.addChangeListener(this);
java.text.NumberFormat numberFormat = java.text.NumberFormat.getIntegerInstance();
NumberFormatter formatter = new NumberFormatter(numberFormat);
formatter.setMinimum(new Integer(0));
formatter.setMaximum(new Integer(100));
textField1 = new JFormattedTextField(formatter);
textField1.setValue(new Integer(10)); //FPS_INIT
textField1.setColumns(1); //get some space
textField1.addPropertyChangeListener(this);
//React when the user presses Enter.
textField1.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "check");
textField1.getActionMap().put("check", new AbstractAction() {
public void actionPerformed(ActionEvent e) {
if (!textField1.isEditValid()) { //The text is invalid.
Toolkit.getDefaultToolkit().beep();
textField1.selectAll();
} else try { //The text is valid,
textField1.commitEdit(); //so use it.
} catch (java.text.ParseException exc) { }
label2 = new JLabel( "Precision" );
scroller2 = new JSlider( SwingConstants.HORIZONTAL, 0, 100, 8 );
scroller2.setMajorTickSpacing( 10 );
scroller2.setMinorTickSpacing( 1 );
scroller2.setPaintTicks( true );
scroller2.setPaintLabels( true );
scroller2.addChangeListener(this);
textField2 = new JFormattedTextField(formatter);
textField2.setValue(new Integer(10)); //FPS_INIT
textField2.setColumns(1); //get some space
textField2.addPropertyChangeListener(this);
//React when the user presses Enter.
textField2.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "check");
textField2.getActionMap().put("check", new AbstractAction() {
public void actionPerformed(ActionEvent e) {
if (!textField2.isEditValid()) { //The text is invalid.
Toolkit.getDefaultToolkit().beep();
textField2.selectAll();
} else try { //The text is valid,
textField2.commitEdit(); //so use it.
} catch (java.text.ParseException exc) { }
// State Changed
public void stateChanged(ChangeEvent e) {
JSlider source = (JSlider)e.getSource();
int fps = (int)source.getValue();
if (!source.getValueIsAdjusting()) { //done adjusting
if(source==scroller1) {
System.out.println("source ==scoller1\n");
textField1.setValue(new Integer(fps)); //update ftf value
else if(source==scroller2) {
System.out.println("source ==scoller2\n");
textField2.setValue(new Integer(fps)); //update ftf value
} else { //value is adjusting; just set the text
if(source==scroller1) textField1.setText(String.valueOf(fps));
else if(source==scroller2) textField2.setText(String.valueOf(fps));
// Property Change
public void propertyChange(PropertyChangeEvent e) {
if ("value".equals(e.getPropertyName())) {
Number value = (Number)e.getNewValue();
if (scroller1 != null && value != null) {
scroller1.setValue(value.intValue());
else if (scroller2 != null && value != null) {
scroller2.setValue(value.intValue());
// ACTION PERFORMED
public void actionPerformed(ActionEvent event) {
if (!textField1.isEditValid()) { //The text is invalid.
Toolkit.getDefaultToolkit().beep();
textField1.selectAll();
} else try { //The text is valid,
textField1.commitEdit(); //so use it.
} catch (java.text.ParseException exc) { }
if (!textField2.isEditValid()) { //The text is invalid.
Toolkit.getDefaultToolkit().beep();
textField2.selectAll();
} else try { //The text is valid,
textField2.commitEdit(); //so use it.
} catch (java.text.ParseException exc) { }
...if :p3_note_id is null
then
insert into notes (project_id, note, notes_month, notes_year) So, p3_note_id is NULL.
Another option is that you have a trigger on table NOTES that generates a new note_id even for an update. -
How to Create an Input Schedule Comparison with Data Using EVDRE
Hello,
I try implement the scenario described in "How to Create an Input Schedule Comparison with Data Using EVDRE".
Once I am using the "Insert Function" from the panel and selecting the EVTIM function Excel crashes (see page 8 How to paper).
Systems:
BPC 7.0 NW SP02
Office 2007
BPCADminClient and BPCOfficeClient up to date
Have anyone a solution?
Thanks
OktayHi Oktay -
This function works in my BPC70NW SP02 system. Your issue might be that you are trying to access a TIME member that does not exist. Please make sure the offset value is a valid dimension member.
I can confirm that EVTIM does allow the offset for base members (such as 2009.MAY) as well as parent nodes (such as 2009.Q1 or 2008.TOTAL)... BUT...the offset result of the EVTIM function needs to be a valid dimension member!
Regards,
Sheldon
Maybe you are looking for
-
How do i get all of my music back to my phone from icloud?
Recently had to restore my phone for unknown reasons but now that i have it going again all of my music has a cloud with an arrow pointing down on it..which i know means it has to be downloaded from icloud. Is there any way i can do them all at once
-
Pivot tables and charts error: Please load datasource first
hi all, i am getting a error: please load data source first in rtf template , only for pivot table and charts(note: normal tables and fields i can insert ) Please help me with this. Thanks and Regards Prakhar
-
How to compute for customer aging...
Hello Experts, I have a requirement for my object wherein I need to display the due date of the customer and the aging like 0-30 days, 60-90 days. How do we comput for this? This is for customers by the way... Thank you guys and take care!
-
Updating iPod from iTunes sporadically causes system reboot
This one is driving me slowly crazy, so help is appreciated. I'm running version 6.0.4.2 of iTunes and iPod updater 2006-03-23 on a Windows XP Media Center PC with a 20 gig iPod Photo. Have been blissfully using iPod and iTunes for months with zero i
-
Can I download Lightroom 4 on a new computer?
I just recently purchased Lightroom 4 (online at Adobe's Education store) and have been extremely satisfied with it. However, my computer recently died (it overheats 1-5 times a day and half of the keyboard doesn't work), so I just purchased a MAC. I