How to place image and crop to fit inside vector shape
I'm trying to place an image on top of a vector shape and then i want to trim the edges of the image so it takes on that shape (essentially filling the shape with the image)
I'm also trying to do this with two layers of vector shapes, i want to fit one within the other and not have any over hang.. the top or "filling shape" is an array of hexagons (making a honeycomb like structure) i want it to fit within the underlying oval (lime green one) shape. here's a link if you want to see what i'm doing.. its the one on the right
www.oregonstate.edu/~pearsoan/images/achieve3.ai
How do you do this?
Blue,
Put the shaping (vector) path on top of the image, select both, and Object>Clipping Mask>Make.
I cannot open the file to see what there is to see, and I have to leave in a moment.
If you upload an image, using the Camera icon, all helpers can see it here in the thread.
Similar Messages
-
How to place header and footer in OO-ALV program using class
How to place header and footer in OO-ALV program using class tell me wat r the class we shold use and their attributes as well
Hi Venkatesh,
Take a look at this how to [ABAP Objects - ALV Model - Using Header and Footer|https://wiki.sdn.sap.com/wiki/x/xdw]
it's explaining how to define the classes and use it for display an ALV with Header and Footer.
Regards,
Marcelo Ramos -
How to use image and text in same component
Hello
Do you know how to use image and text in same component in java ?
because i need this in my project ,which is chat application , to
put the received text and any image if it is need within the textthanks levi_h
JTextPane class extends JEditPane and allows you to embed
images or other components within the text managed by the component -
How to display images and information
how to display images and information(e.g. like questions) on a jsp page that stored in a database
Look As far as i can see....
Utlimately every file could be expressed as a bytes buffer.
so say if you have a bean called Choice Bean which is expressed as
public class ChoiceBean{
private String choiceid;
private String choicedesc;
private byte image[];
public void setChoiceId(String choiceid){
this.choiceid = choiceid;
public String getChoiceId(){
return this.choiceid;
public void setChoiceDesc(String choicedesc){
this.choicedesc = choicedesc;
public String getChoiceDesc(){
return this.choicedesc;
public void setImage(byte image[]){
this.image = image;
public byte[] getImage(){
return this.image;
}QuestionList.java:
===============
public class QuestionList{
private List<ChoiceBean> choicelist;
/*Other member variable declarations*/
public List<ChoiceBean> getChoiceList(){
/*Custom code where you may build the list by querying the DA layer*/
return this.choicelist;
public int search(String choiceid){
int index = -1;
for(int i =0 ; i < this.choicelist.size() ; i++){
ChoiceBean cb = this.choicelist.get(i);
if(cb.getChoiceId().equals(choiceid)){
index = i;
break;
return index;
/* Other member method declarations */
}and you are retreving List<ChoiceBean> from DB using your query & have created a session attribute / <jsp:useBean> named ChoiceList
NOTE: sometimes your application server can go out of bounds as you are consuming a lot of memory by creating an arraylist object.
use the following methodology to display images & choices
sample.jsp:
=========
<jsp:useBean id="QuestionList" class="com.qpa.dao.QuestionList" scope="session"/>
<TABLE>
<%
/* QuestionList.getChoiceList() is a method which fetches data from the DB & returns it in form of List<ChoiceBean> */
List<ChoiceBean> choicelist = QuestionList.getChoiceList();
for(int i =0 ; i < choicelist.size() ; i++){
%>
<TR>
<TD><%!=choicelist.get(i).getChoiceId()%></TD>
<!-- calling servlet which renders an images in JPG format based upon given choiceid(unique field) -->
<TD><IMAGE src="ImageServlet?choiceid=<%!=choicelist.get(i).getChoiceId()%>"/> </TD>
<TD><%!=choicelist.get(i).getChoiceDesc()%></TD>
</TR>
<%
%>
</TABLE>
<%
session.remove("QuestionList");
%>
NOTE: usage of JSTL or any other custom built tag-libraries makes life more simpler in the following case
ImageServlet.java:
===============
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
byte buffer[] = null;
HttpSession session = request.getSession(false);
/*getting the QuestionList from the session*/
QuestionList ql = null;
String choiceid = new String("");
try{
choiceid = request.getParameter("choiceid");
/*getting the QuestionList from the session*/
ql = (QuestionList) session.getAttribute("QuestionList");
} catch(Exception exp){
if(choiceid.equals("") == false && ql != null ){
List<ChoiceBean> clist = QuestionList.getChoiceList();
assuming that you have created a serach method which searches the entire choice list and would give you
the index of that object which is being refered by unique choiceid and returns -1 if not found
int index = QuestionList.search(choiceid);
if(index != -1){
ChoiceBean cb = clist.get(index);
buffer = cb.getImage();
if(buffer != null){
// assuming that we have stored images in JPEG format only
JPEGImageDecoder decoder = JPEGCodec.createJPEGDecoder(new ByteArrayInputStream(buffer));
BufferedImage image =decoder.decodeAsBufferedImage();
response.setContentType("image/jpeg");
// Send back image
ServletOutputStream sos = response.getOutputStream();
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(sos);
encoder.encode(image);
} else {
response.setContentType("text/html");
response.getWriter().println("<b>Image data not found</b>");
}However,i still feel there are few loopholes with this approach where Application Server can eat up a lot of heap space which may result in outofmemorybound exception.
Hope this might help :)
REGARDS,
RaHuL -
Hi Experts,
How to Place Approve and Reject Button in every row to approve and reject the particular order in sapui5.
Please Kindly help me.
Thanks & Regards
Chitti BabuHi Chitti,
You can achieve this using sap.m.CustomListItem.
View :
<core:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc"
xmlns:l="sap.ui.layout" xmlns="sap.m" controllerName="demoallinonegrid.tablewithscroll"
xmlns:html="http://www.w3.org/1999/xhtml">
<Page title="Title">
<content>
<ScrollContainer horizontal="true" width="100%">
<Table id="empTable">
<headerToolbar>
<Toolbar>
<Label text="Employees"></Label>
</Toolbar>
</headerToolbar>
<columns>
<Column width="12em">
<Label text="Employee Id"></Label>
</Column>
<Column width="12em">
<Label text="Last Name"></Label>
</Column>
<Column width="12em">
<Label text="First Name"></Label>
</Column>
<Column width="12em">
<Label text="Title"></Label>
</Column>
<Column width="12em">
<Label text="Approve"></Label>
</Column>
<Column width="12em">
<Label text="Reject"></Label>
</Column>
</columns>
</Table>
</ScrollContainer>
</content>
</Page>
</core:View>
Controller:
var model = new sap.ui.model.json.JSONModel();
model.loadData("http://services.odata.org/Northwind/Northwind.svc/Employees?$format=json",null,false,'GET',false,null);
this.getView().byId("productTable").setModel(model);
var template = new sap.m.ColumnListItem({
cells:[
new sap.m.Text({text:"{EmployeeID}"}),
new sap.m.Text({text:"{LastName}"}),
new sap.m.Text({text:"{FirstName}"}),
new sap.m.Text({text:"{Title}"}),
new sap.m.Button({text:"Approve"}),
new sap.m.Button({text:"Reject"})
this.getView().byId("empTable").bindAggregation("items","/value",template);
Output:
Regards,
KK -
Hello. I appreciate your help. I am in FCP7 and trying to do Boris Vector Shape effect. When I try to pull the vector shape square from the view window to the Superimpose, I get the message: insufficient content for edit. Why? I did this effect before and everything worked well. Thank you for your help.
Make sure that you have no active I/O markers on the Timeline (use Option X keys to clear them).
-
How to protect image and text from page break
Hi
I have set on a smartform a single row which contains two columns. The first column has an image, and the second has some text. I want the program to send the whole row to the next page if it does not fit the page, instead of breaking it up in separate portions. I already set the line break protection in Table > Details, but that did not work. Also, if i go to the output options in the text, the option to protect from break is not enabled. How can I do this?
Thanks,
GabrielHi Gabriel,
just tested it and it work fine, if I do such setting:
This is the output with:
And here without:
~Florian -
How to share image and text in the share contract
Hi,
I want to share a movie( title and link of the movie ) from my app to another apps ( whatsapp,facebook etc ) for that i have used following code. but How can i add image to that share if i have web url of the image ( https://i.ytimg.com/vi/J-wiPP76FqQ/mqdefault.jpg
). Please help me
private void RegisterForShare()
DataTransferManager dataTransferManager = DataTransferManager.GetForCurrentView();
dataTransferManager.DataRequested += new TypedEventHandler<DataTransferManager,
DataRequestedEventArgs>(this.ShareTextHandler);
private void ShareTextHandler(DataTransferManager sender, DataRequestedEventArgs e)
DataRequest request = e.Request;
request.Data.Properties.Title = shareContent;
request.Data.SetWebLink(videoId);
public async Task share(string content, string videoId)
RegisterForShare();
this.shareContent = "Watch " + content + " on ";
this.videoId = new Uri("http://www.youtube.com/watch?v=" + videoId);
DataTransferManager.ShowShareUI();
Thank youHi Ashia Hassan,
Based on your description, I know that you want to share image and text in the share contract in the Windows Phone Runtime app, then please try to refer to the following article:
https://msdn.microsoft.com/en-us/library/windows/apps/xaml/Hh871370.aspx .
Besides, this similar thread may help you, please try to check it:
https://social.msdn.microsoft.com/Forums/windowsapps/en-US/9bc7f8fd-0b0c-406e-875d-432d6f196419/need-to-share-image-text-using-share-contract?forum=winappswithcsharp
Best Regards,
Amy Peng
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to transfer images and music from PC (Windows 7) to iPhone?
Hello:
Could someone please inform me how can I transfer images and music from a PC (Windows 7) to my iPhone (3GS)?Hi, RichardParker,
I have also meet problems to transfer music from PC to iPhone, and I had solved it now. You can do the following steps,
1. Copy music to your phone memory
2. Exported contacts to SD Card (on Android phone) in VCard format
3. Transfered VCard file from SD Card to PC
4. Created a Google Account
5. Opened the Google Account from a browser (on PC), go to Contacts, and then uploaded VCard contacts to the Google account
6. Configured the iPhone (using a separate Windows user account - so as to allow for importing pictures & videos through iTunes)
7. Created a "CardDAV" account on the iPhone and synchronised all Contacts
If you have any question ,you can ask me about iPhone Transfer. And I hope the steps above works. -
How to show image and file field
Hi,
I try to bind DataTable with Sales-Rep_Data_tbl under Order database source (within Creator).
The columns have IMAGE and RESUME.
After binding and run, the two fields show no meaning in browser. Should I do some extra work? How do I display them?Thanks!Hi, Runak/Creator Team:
Thanks a lot for quick response!
I followed the steps there, but after run, the image still couldn't be displayed . It 's just a "X" icon there.
I don't know the reason.
If "Sample Application" in tutorial offers similar application to download, it would be wonderful. -
How to populate image and text field in SQL Server
I want to populate a table, i.e insert images in a table in SQL Server. I am using Java(JSP/Servlet). Can any one suggest me how to populate the image and text fields in SQL Server...of course, using Java. If possible, could you please give me a piece of code?
Regards -
SamitHi,
Please check the following link for information on inserting images in to sql server database.
http://www.databasejournal.com/features/mssql/article.php/1475641
Cheers,
vidyut -
How to store images and video clips in Oracle
All,
Can anyone guide me how to store the images and video clips in oracle through pl/sql and also the way to retirve it.
Edited by: sikander on Sep 7, 2010 3:27 AMSome sample code
connect sys schema --if scott has no privs to create directory
--where physical file store in the same machine where database load
CREATE DIRECTORY IMAGES AS 'D:\images';
GRANT READ ON DIRECTORY IMAGES TO SCOTT;
connect scott/tiger
create table my_book_diagrams (Image BLOB);
DECLARE
v_file_loc BFILE;
v_diagram_loc BLOB;
v_diagram_size INTEGER;
BEGIN
v_file_loc := BFILENAME('IMAGES','Layout.bmp');
DBMS_LOB.FILEOPEN(v_file_loc );
v_diagram_size := DBMS_LOB.GETLENGTH(v_file_loc);
INSERT INTO my_book_diagrams (Image) VALUES (EMPTY_BLOB())
RETURNING image INTO v_diagram_loc;
DBMS_LOB.LOADFROMFILE(v_diagram_loc, v_file_loc, v_diagram_size);
END;
commit; -
Place image and centre javascript??
Hello,
I'm trying to create a script (Javascript) which automatically creates a document to a pre specified size (specified within the script), places a file (usually .PDF) centrally on the document page, adds crops, saves and exports.
I've got everything sorted except the place file and centre part - and to be honest after looking through the forums I'm none the wiser. Can you offer some advice please?
The file which is placed will change each time (as will its location), so I was hoping that i could use the standard place command and use the window which comes up normally...although i've horrible feeling I might have to create something - hopefully not!....I realise this is very simple for most of you, but I'm struggling!
Thanks in advance for any help!
(on a side note, would a script made from applescript enable me to select the file to be placed in InDesign, and run everything in one click, opening InDesign etc? just wondering...)Use the Folder.selectDialog () function to display the OS dialog in which you pick a file. See the JavaScript Tools Guide (in ESTK's Help menu), page 57.
As to your sidenote, you can't have JavaScript start InDesign. AppleScript probably can.
Peter -
Manually PLACE images and other files in illustrator
I see a tutorial of Infographics by Nigel French, In this tutorial when the Mr Nigel use place option to import images or other illustrator files the illustrator not auto put images at center but ask where to place images or how much area to be covered by this image or file.
I search about this but not found anything relating to this topic, I don't know whether this is plugin or illustrator function/feature.
I hope you would answer,
Here are the pictures to ellaborateThanks Monikia for answering
Yes I mean place gun with 1/1 symbol besides the arrow but how to enable this in CS6 version 16.2.1. I haven't seen any option in preference or in place window. -
How to add Images and PDFs in MDM iView
Hello!
We use SAP Portal as interfase to access SAP MDM repository tables.We use MDM Record Set and MDM Item Detail iViews to display and operate with main table content.
There is a field in the qualified table, which is the lookup to the Images table. And the other field is the lookup to the PDFs table. Both fields are qualifiers.
In the main table there is a field, which is the lookup to the qualified table. When we try to add values to this field using Item Detail iView, we get a window, where we can fill all values of the qualified table, except Image field and PDF field - they are disabled. So, can we add Images and PDFs to the table using Item Datail iView? Or what is the other way to add them?
Thanks,
Vika
Message was edited by:
Viktoria DeminaOoohh... you mean, like the one mentioned in http://indesignsecrets.com/adding-zoom-and-print-to-indesign-swf-files.php?
But they want to get paid for their hard work, the bastards!
Maybe you are looking for
-
Report works fine in local environment but gives problem on server
Hi, I have following condition which works fine when executed in local environment. But simply does not work when executed on server. <?for-each-group:XYZIC[ListOf_ssFsInvoice/ssFsInvoice/InvoiceDate >= EffStartDate][ListOf_ssFsInvoice/ssFsInvoice/In
-
Officejet Pro 8600 Plus N911 Tries to Copy from ADF if Lid Covering the Glass is Completely Open
Hi, I just posted a reply to the following regarding an identical problem that I am having: http://h30434.www3.hp.com/t5/Scanning-Faxing-and-Copying/Officejet-Pro-8600-N911n-Printer-Tries-to-C... It occurs to me, however, that the original post I r
-
Error : basic_init
Hi all, When i try to run a project it shows Build failed. The Error was C:\Documents and Settings\e10178\My Documents\NetBeansProjects\MobileApplication4\nbproject\build-impl.xml:56: Classpath to J2ME Ant extension library (libs.j2me_ant_ext.clas
-
Dear all, Please help me to map the below scenario :- Its a repetitive manufacturing. I am generating PIR for monthly production from MD61. AND I am able to do the production and confirm . Planning strategy is 40 , depending upon the sales order inte
-
How to uninstall Lion and restore Snow Leopard?
I did upgrade from Leopard to Lion 10.7.1 two days ago. After that my 2.8 GHz Core i5 4GB DDR3 start to jerking, I sometime even start any applications. That is never happen before when running on Leopard. I can not work for two days already. Anybody