How to set the text as an image
Is there a way to set the text to automatically change to an image? (In preference panel, you select "Sow text imaging indicator", then there comes a yellow sign over the text, meaning that the text will be a graphic in the browser) Some text does change to a graphic but some does not. It´s very annoying cause the text sometimes changes in the browser, some don´t. So is there not a way to select which text changes to a graphic?
Okay I made a new text box and changed the font until the little graphic appeared. Now I know, but, I also know that a lot of the font I tried would not be on someone else's computer (specially windows) but it would not have converted I guess it would have been substituted. That is really not good because the look would be very different. Should we force a conversion then to insure that it looks like what we want? Then we no longer have any text we have mostly graphics and is that not bad to be found by the search engines?
This is so complicated!
Mireille
Similar Messages
-
How to set the 'text' property of a 'Header' region dynamically?
Hi,
I have a requirement to display the 'text' property of a 'Header' region, based on a query.
So I need to set the text property programatically in CO.
Can I use setText("..") by getting the handler to the 'Header' region?
If so, How to get the handler for the 'Header' region?
Message was edited by:
user594528How to get the handler for the 'Header' region to call the setText()?
OAHeaderBean Header1 = (OAHeaderBean)...........................
Header1.setText("...."); -
How to set the source property of image control dynamically?
Hi,
I have different fxg files which I want to display in a list. For each row in the List, I define which fxg file to be displayed in my database.
I need to know how to set the image1.source = (the fxg path) as a string from database?
Is there any conversion needed in this case? If so, can you please help me how to do this?Hi,
Thank you for your response. I am new to Adobe Flash Builder, Flex and action script. I don't get your answer straight away.
What I basically need is, I need to set image1.source = strFXG. Right now, this does not show the image. I don't understand fxgObject.pathid.source => how to give this?
Moreover, when I did google search, there is somethink like fxg converter which converts the fxg to a component. I thought this is a very simple problem on how to convert the fxg string to an object format. But now, it looks like it might be a big problem. Can anyone help me in this?
import spark.components.Image;
protected function view1_creationCompleteHandler(event:FlexEvent):void
// TODO Auto-generated method stub
var strFXG:String = 'assets.DB_Actief_Graphics';
var image1:Image = new Image();
image1.x = 100;
image1.y = 100;
image1.source = strFXG;
addElement(image1);
Regards,
Chella -
How to set the text of a cell in Numbers to vertical direction? Tks.
Hi
In Numbers, please tell me how to switch the text of a cell to vertical direction?
Tks.Hi Kyle,
In Numbers, nothing having to do with a table can be rotated. (In Pages an entire Table can be rotated, but not text within a Table.)
There have been many suggestions posted here over the life of iWork for vertical labels. Most fall into three categories:
1. Type one letter, Option-Return, type another letter, Option-Return, and so forth.
2. Type label in a Text Box, rotate the box, position the box over the table, covering the cell where you need a label.
3. Create a PDF graphic with rotated text and insert it into table cell as Background Fill.
The third option is clearly the best. The steps for option three are:
Insert Text Box
Type label into the box
Rotate the text box
Select the text box (not the text inside the box)
Command-C
Switch to Preview.app
Command-N
Command-C
Switch to Numbers
Click on Cell where the label goes
Command-V
It sounds worse than it is. You can reuse the Text Box so you don't end up with a sheet full of them.
Regards,
Jerry -
How to Set the Text of an Onstage TextField?
I'm trying to set an onstage TextField instance's "text" property, while maintaining embedded fonts and its onstage appearance.
Problem Encountered: Text doesn't show up when setting text via ActionScript on an on-stage TextField w/ embedded text.
Workaround: Create and assign a TextFormat object:
defaultTextFormat = new TextFormat('Arial', 100, 0x000000, true, true);
Annoyance: This defeats the purpose of styling text with the IDE.
Possible Solution: Import the embedded font to the library and export for ActionScript?My problem was actually that merely setting the *text* property caused my dynamic TextField w/ embedded font to not display any text. BUT, I just re-tested this with a new file, and the problem doesn't occur. Only thing I can think of is -- my FLA was created with an older version of Flash... possibly MX 200(4?). Could this be the issue?
-
How to set the text in a jtextfield to align to the left
A quick simple question. I'm populating a jtextfield with text pulled from a record. However the text is too long to fit in the jtextfield and the alignment is set to the right rather than the left. How do I set the alignment of the text in the jtextfield to be on the left, so that the first character of the string is shown?
I've tried using
setHorizontalAlignmnet(JTextField.LEFT),
but my text still appears right justified in the jtextfield. It means that the user has to scroll the text to go to the beginning of the string, rather than the usual of scrolling the right to go the end of the string.
This has really gotten me stumped!HI thanks for the help. Unfortunately it doesn't work if the text is longer than the actual textfield. The textfield would still show the end of the text, rather than showing the beginning of the text.
For e.g.
|est text|
is show rather than
|test tex|
which is my desired result.
Any further suggestions please. -
How to change the text in your image?
How do I change the font in my image without changing the image itself?
When you create text in photoshop and save the resulting image in psd or tiff, the text stays live. Allowing you to edit it later on, which is why it is recommended to save to one of the two formats for archival purposes.
If your text is live, all you have to do is doube click on the icon in the text layer, that will highlight all of the text for that layer. You can then change the properties of that text. Draging across the text will also highlight only what you want selected, and only that portion will be affected by any changes in its properties.
If you save to a format like jpg and that is the only copy, you then have to use the selection tools to seperate the text from its background. Once the text is selected, you then need to find away to replace what was underneath, hopefully it a solid color, but only you know, since there are no screen grabs to look at.
If the background consist of multiple colors, you may have luck using the clone tool, or healing brush, etc. to try to mimic the area around the text. If you have CS5 or CS6 you may even have luck with the content fill feature.
All I can say is if the text is not live, its going to take time and patience to make it look good. And use this as a learning experience for both learning how to do it the hard way and to save as a psd from now on.
Good luck. -
How to set the size of an image
hi,
I have a database which contain an image. now i want to retrieve this image & want to show this image in my jsp page as user's defined size. I have following code. My following code shows the original size of an image. Now i want to see different size of this image. How is this possible? I know control the size of this image after saving this image
in a file. but i want to control the size of this image without saving this image in a file? IS it possible ? Is there anybody can help me?
Please help me.
ResultSet rs = null;
PreparedStatement ps=null;
InputStream sImage=null;
byte[] imagebyte=null;
String var;
String name=request.getParameter("RegName") ;
String image =request.getParameter("ImageFile");
out.println(name);
out.println(image);
out.println();
ps=con.prepareStatement("insert into t_image (ID, Image) values(?,?);");
File file =new File(image);
FileInputStream in = new FileInputStream(file);
ps.setInt(1,1234);
ps.setBinaryStream(2,in,(int)file.length());
ps.execute();
rs =stm.executeQuery("select Image from t_image where ID=1234");
if(rs.next()) {
imagebyte =rs.getBytes(1);
response.reset();
response.setContentType("image/jpeg");
%>
<%
response.getOutputStream().write(imagebyte);
%>
<%
response.flushBuffer();
%>With regards
Binahi,
I have a database which contain an image. now i
want to retrieve this image & want to show this
image in my jsp page as user's defined size. I have
following code. My following code shows the original
size of an image. Now i want to see different size
of this image. How is this possible? I know control
the size of this image after saving this image
n a file. but i want to control the size of this
image without saving this image in a file? IS it
possible ? Is there anybody can help me?This has nothing to do with JDBC; you can only store and retrieve the image you have and there's no image manipulation functions in JDBC (nor should there be).
I can see 2 options:
1) serve the image file as is, but in the jsp that writes the html that contains the "<img>" tag that gets it, use the "height" and/or the "width" to scale the suppied image to presentation size you want.
2) find some image manipulation code that will convert the image into the size you want
Option 1 will work well if the problem you have is merely refining the image size for presentation. Option 2 is your only coice if it's the image files size itself you really want to change, not just it's appearance on a page. -
How to set the text color in a Canvas?
When I use (Graphics) g.setColor(255,255,255), then g.drawString("xxx", 0, 0, ....);
the simulator works well but it can't work in my mobile phone (Nokia 7650).
What's wrong?
Thanks.do it like this
g.setColor(255,255,255);//this will set the color for the canvas
g.fillRect(0,0,ht,wd);//this will fill the rect(screen) with the above color,actually this will be BG color for ur app..ht,wd are the height and width of ur canvas...
now specify color for the text
g.setColor(r,g,b);//this color shud ofcourse be diff frm the color set for BG
now draw the string
g.drawString("xxx", 0, 0, ....); -
How to set the transparency for a image
Hi
iam reading and writing and GIF image,when i resize the new image
the transparency of the old image is not applied to the new one it appears black as background. so i need to set the transparency of the old image to the new GIF image . so is there any function to set the tranparency or any sample code....hi
Image image = Toolkit.getDefaultToolkit().getImage(logoFilePath);
image.getScaledInstance(200,150,Image.SCALE_SMOOTH);
MediaTracker mediaTracker = new MediaTracker(new Container());
mediaTracker.removeImage(image);
mediaTracker.addImage(image,
0);
mediaTracker.waitForID(0);
// determine thumbnail size from WIDTH and HEIGHT
int thumbWidth = Integer.parseInt("200");
int thumbHeight = Integer.parseInt("150");
double thumbRatio = (double) thumbWidth / (double) thumbHeight;
int imageWidth = image.getWidth(null);
int imageHeight = image.getHeight(null);
double imageRatio = (double) imageWidth / (double) imageHeight;
int transparency = Integer.parseInt("100");
if (thumbRatio < imageRatio)
thumbHeight = (int) (thumbWidth / imageRatio);
else
thumbWidth = (int) (thumbHeight * imageRatio);
if (imageWidth < thumbWidth && (imageHeight < thumbHeight))
thumbHeight = imageHeight;
thumbWidth = imageWidth;
// draw original image to thumbnail image object and
BufferedImage thumbImage = new BufferedImage(thumbWidth, thumbHeight, BufferedImage.TYPE_INT_RGB);
Graphics2D graphics2D = thumbImage.createGraphics();
graphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
RenderingHints.VALUE_INTERPOLATION_BILINEAR);
graphics2D.drawImage(image, 0, 0, thumbWidth, thumbHeight, null);
// save thumbnail image to OUTFILE
out = new BufferedOutputStream(new FileOutputStream(newFilePath));
GifEncoder gife = new GifEncoder(thumbImage,out);
gife.encode(); -
How to set the text for commandNavigationItem in nodeStamp facet of train?
When I use the af:train w/o ndeStamp facet, the train displays proeprly with text next to each nod, e.g.,
<af:train id="train" var="node" value="#{controllerContext.currentViewPort.taskFlowContext.trainModel}" layout="vertical"/>
but when I use a nodeStamp, then my text dissappears. e.g.,
<af:train id="train" var="node"
value="#{controllerContext.currentViewPort.taskFlowContext.trainModel}"
layout="vertical">
<f:facet name="nodeStamp">
<af:commandNavigationItem text="#{node.text}" actionListener="#{pageFlowScope.createModelFromTables.onSelectTrainStop}"/>
</f:facet>
</af:train>
Also, jDeveloper complains that it Reference "#{node.text}" not found. Likewise for #{node.readOnly}, etc. Note I also tried #{node.label} as described in the code example [adf:train|http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_train.html]
I am using jDeveloper 11.1.1.5.0 Build JDEVADF_11.1.1.5.0_GENERIC_110409.0025.6013These links will helpful for you.
http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_train.html
http://download.oracle.com/docs/cd/E15523_01/apirefs.1111/e12419/tagdoc/af_train.html -
How to set the text size on Photoshop elements 8
Am new at this!
Where are the settings for elements 8 ? I have to enlarge my type to read. the titles and instructions on the photoshop elements are much too small.
I tried what I do with my compu......ctrl +......that doesn't work. It probably is a simple thing but I can't find it.
Please, I need help.
thanks,
granibIn general it’s not possible to change the UI display. But you could try the Windows settings.
Go to the control panel and check dpi scaling under Appearance or Display.
It’s not uncommon to see a setting of 125% or higher to improve screen readability but PSE9 requires a dpi of 96 or 100%
Whilst the Editor Menu will appear at 120% the Organizer Menu (and the advanced button in downloader) won’t. Sometimes the mouse or tool cursors are distorted.
Try a setting of 115% or 116% otherwise 100%. A common display resolution, notably for notebooks/laptops, and netbooks is 1024 x 768 but PSE9 requires a screen height of 800 for full functionality.
Unfortunately you may need to keep changeing back and forth. It's not perfect.
-
Newbie iPhone: How do I programatically set the text of a UIBarButtonItem?
Hello,
This is probably really more of a question on IBOutlets but here goes. I want to have an updateable label on my Toolbar. A label doesn't seem to "stick" on the toolbar so I figured I would drop a UIBarButtonItem on it and then just update the Title property of it to change the text as I needed. Problem is I can't figure out how to get a reference to the UIBarButtonItem in my code.
With a pure label control, I can drag from the File's Owner to the label in my view to make it an outlet for my ViewController and then access the text property of the label in code. With the UIBarButtonItem, I can't make it an outlet. I know the button is more of an action thing but I don't need to respond to taps, I just want to change the text.
Thanks for any help,
TomTom,
You should be able to assign the UIBarButtonItem to an outlet as long as:
1) you have defined an instance variable in FilesOwner of UIBarButtonItem and prefixed it with "IBOutlet".
2) FilesOwner is set to your custom view controller in the Interface Builder's Inspector panel. If it still thinks it's a standard UIViewController it won't pick up your custom outlets.
All that being said, I'm not sure you can change the title without using a custom view. The default UIBarButtonItem has an initWithTitle: initializer that may be static (perhaps others know of a way to change it once set). But you can define a custom view for the button. That gives you the ability to add a UILabel and programmatically set the text of the label.
Cheers,
George -
How to set the default text in an input box or a label to be a predefine, multiline text
how to set the default text in an input box or a label to be a predefine, multiline text. In other words how to break the line in the code of a text box.
thank youThere are a couple of ways of doing this:
If you're editing on the canvas, press Shift + Enter.
If you're working in Express View (see lower right hand corner of Project Siena), you'll need to copy a hard return from another app such as Notepad.
I believe a better implementation of hard returns are in the list of requested functionality that you can find here:
https://social.technet.microsoft.com/Forums/en-US/2e1f9446-56b2-419a-9c17-7037d2cd6146/from-the-community-overview-of-requested-additional-functionality?forum=projectsiena
Thor -
How to set the desired font to the selected text in textframe?
Hi,
I want to change the font(let's say Times New Roman) of selected text in textframe when I click on menu-item of my plug-in.
I went through the Adobe Text Engine documentation and tried some code for setting font but failed. I don't see any member function in IFont class to set desired font, so unable to move forward.
plz see the code. I would like to know one more thing that how can we set a particular font for a textframe?
TextRangesRef rangesRef = NULL;
result = sAIDocument->GetTextSelection(&rangesRef);
aisdk::check_ai_error(result);
ITextRanges ranges(rangesRef);
if (ranges.GetSize() > 0)
ITextRange range = ranges.Item(0);
ICharFeatures features = range.GetUniqueLocalCharFeatures();
IFont font; // I don't see any method to put desired font.
// features.SetFont();
Thanks.
D.AFirst, get the font:
AIFontKey fontKey = 0;
AIErr error = sAIFont->FindFont("Times New Roman Regular", kAIAnyFontTechnology, kNativeAIScript, 0, &fontKey);
// do something with error
ATE::FontRef fontRef = 0;
error = sAIFont->FontFromFontKey(fontKey, &fontRef);
// do something with error
ATE::IFont font(fontRef);
Then, apply it like this:
ATE::TextRangeRef textRangeRef = 0;
AIErr error = sAITextFrame->GetATETextRange(handle_to_artwork, &textRangeRef);
// check error
ATE::ITextRange textRange(textRangeRef);
ATE::ICharFeatures charFeatures = textRange.GetUniqueLocalCharFeatures();
charFeatures.SetFont(font);
textRange.ReplaceOrAddLocalCharFeatures(charFeatures);
There are a few other ways to set the text, but you need to understand how character & paragraph styles interact with each other to understand the differneces. This is the most straight forward way to do it though.
Maybe you are looking for
-
Why doesn't the volume control settings allow a greater range (on the low end)?
Maybe my ears are really sensitive, but for every iphone I've had, the lowest volume is not low enough. My phone is often louder than I want in my headphones even at the lowest setting. I find myself trying to lower the volume but ending up in sile
-
Why doesn't the poster image show up as the first frame of my movie?
I am new at this and maybe misunderstand the Help screen. I have a bunch of short movies which I have laid out in iWeb and published to my iDisk. I want them to load with a still image from the movie rather than show up as a black frame. The meager H
-
Where is this file getting generated
DATA : w_csv(200) TYPE c. "CSV output file. m_check_selscr_fnms c3 o. OPEN DATASET w_srvr_nm_o_c3 FOR OUTPUT IN TEXT MODE. IF sy-subrc NE 0. MESSAGE e001 WITH 'File open error for output' w_srvr_nm_o_c3. ENDIF. WRITE: / c_output_file
-
Sat Pro 6000: Unknown Base System-device Windows XP Prof. v.2002 SP1
Where can I find a diver for an unknown Base System-device?
-
Retiring SBS2003 with second server running 2008 server with terminal services
Hi, Can i install Windows Server Essentials R2 2012 and keep the second server that is server 2008 and run it as a terminal server?