Apply Image to datagrid row
hi
i have one problem i need to apply image to selected row in
datagrid dynamically we have
"selectedcolor" but i need to apply image to selected row is
there any way please help me
client requires this effect
karthik.k
hi thanks for the reply i am posting sample code
<DataGrid id="dg_getData1" backgroundColor="0x87A3B7"
selectionColor="0xE4C38D" verticalScrollPolicy="off"
horizontalScrollPolicy="off" itemClick="getIdForPresenter()"
wordWrap="true" width="100%" verticalGridLines="false"
backgroundAlpha="0.3" headerHeight="0" fontSize="20" rowHeight="53"
dataProvider="{model.filteredCollection}" useRollOver="false"
horizontalGridLineColor="0xFFFFFF" horizontalGridLines="true">
<columns>
<DataGridColumn width="30" dataField="sessionTimes" >
<itemRenderer>
<Component>
<HBox horizontalScrollPolicy="off">
<Script>
<![CDATA[
import mx.controls.Alert;
override public function set data(value:Object):void
var s_String1:String;
var s_String2:String;
var s_String3:String;
var num:Number
super.data=value;
s_String1=sessionTimes.text;
var arr_Array:Array=s_String1.split(" /");
for(var i:int;i<arr_Array.length;i++)
s_String3=arr_Array[0]
sessionTime.text=s_String3
s_String2=arr_Array[1];
/* num=arr_Array[2]
if(num%2==0)
setStyle("backgroundColor",0x8EA9BB);
else
setStyle("backgroundColor",0x6B8FAB);
if(s_String2=="NOT RECEIVED")
sessionTime.styleName='textcolor';
else
sessionTime.styleName='textcolor1';
]]>
</Script>
<Label id="sessionTime" />
<Text id="sessionTimes" text="{data.sessionTimes}"
visible="false"/>
</HBox>
</Component></itemRenderer>
</DataGridColumn>
</DataGrid>
i am using itemrenderer i need to place an image and when
that row is clicked i need to display image for the row clicked and
when next row clicked previously clicked image should disappear and
currently clicked row should be displayed with image(every thing
dynamically)
only option i saw is "selectionColor="0xE4C38D" but i don't
know how to place image instead of "selectionColor" for button we
have style effect (upskin, downskin) where we can embed image but
in datagrid any option like that,
any idea this requirement is severe
please help me
karthik
Similar Messages
-
How to show an image on each row of the report?
I have created a report in apex. i want to display image on each row in a column of the report.
How can i do this?See About BLOB Support in Forms and Reports in the documentation.
There's an OBE tutorial that followed the introduction of declarative BLOB support in 3.1 as well.
In future please
<li>Search the forum before posting a new question. Most questions (including this one) have been asked and answered before.
<li>Include as much relevant information with your question as possible, starting with:
- APEX version
- DB version and edition
- Web server architecture (EPG, OHS or APEX listener)
- Browser(s)/version(s) used
- Theme
- Templates
- Region type(s)
<li>Change your forum handle to something better than "845927". -
When clicking on datagrid row it throws me exception - WPF C#
Whenever I try to double click my datagrid row to edit it, I throws me a few exceptions which doesn't say anything to me. Hovever if
I set the whole datagrid to IsReadOnly to true, I want have the problem, but I need the second and third columns editable.
XAML
<DataGrid x:Name="clientList" HorizontalAlignment="Left" Height="225" Margin="11,126,0,0" VerticalAlignment="Top" Width="349" IsSynchronizedWithCurrentItem="False" AutoGenerateColumns="False" HorizontalGridLinesBrush="#FFB9B9B9" VerticalGridLinesBrush="#FF8B8B8B" GridLinesVisibility="Horizontal" CellStyle="{StaticResource Body_Content_DataGrid_Centering}">
<DataGrid.Resources>
<LinearGradientBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" StartPoint="0,0" EndPoint="0,1" >
<GradientStop Color="#66240000" Offset="0"/>
<GradientStop Color="#CC240000" Offset="0.65"/>
</LinearGradientBrush>
</DataGrid.Resources>
<DataGrid.Columns>
<DataGridTextColumn Width="30" Header="Id" IsReadOnly="True" Binding="{Binding Id}"/>
<DataGridTextColumn Width="100" Header="Company" IsReadOnly="False" Binding="{Binding Company}"/>
<DataGridTextColumn Width="130" Header="Name, Surname" IsReadOnly="False" Binding="{Binding Name}"/>
<DataGridTemplateColumn Header="Actions" CellTemplate="{StaticResource myTemplate}"/>
</DataGrid.Columns>
</DataGrid>
C#
clientList.Items.Add(new DataClients { Id = 1, Company = "My Company", Name = "Jane Roe"});
Exceptions
Exception:Thrown: "'EditItem' is not allowed for this view."(System.InvalidOperationException)
Exception:Thrown: "The string was not recognized as a valid DateTime. There is an unknown word starting at index 0." (System.FormatException)You need to set the ItemsSource property of the clientList DataGrid to a collection of DataClients objects that supports editing. HashSet<DataClients> does not for example but List<DataClients> and ObservableCollection<DataClients> does.
You could call the ToList() method on the collection that you set as the ItemsSource for the DataGrid to convert it to a List<DataClients>:
clientList.ItemsSource = yourCollection.ToList();
The "The string was not recognized as a valid DateTime" error message should be pretty self-explanatory. You are trying to convert a string which doesn't contain a valid date or time value to a DateTime value somewhere, perhaps in the 'myTemplate'.
There is nothing in the DataClients class that you have posted that will cause this exception to be thrown so it is impossible for anyone to tell.
But please only ask one question per thread and then start a new thread if you have a new question.
Please also remember to mark helpful posts as answer to close your threads. -
How to display data in ComboBox when click on DataGrid Row.
Hi!
I am new to Adobe Flex. I am building one Project that was related to Comapny and Customer. First I created Company Master. Then I create Customer Master successfully and My Backkend is SQLite Database.
My Problem is I have two files one is CustomerMaster and second one is CustomerForm.
In CustomerMaster I have a datagrid in that data was displaying thru Array Collection. When ever we doublick on datagrid row it's displayed a CompanyForm. CompanyForm contains TextFiled and ComboBox. TextFiled populating data but Combobox doesnot. It display always prompt message.
Please help.
Thanks,
Sree KumarHi! Vibhuti Gosavi,
First of all thanks for your quick reply. Already I saw that link.
Actually, In CustomerForm successfully store the information into the database. While retrieving the data problem cames. Sample Code:
CustomerMaster:
private function createItem():void
openTab(new Object());
public function openTab(customer:Object):void
var children:Array = tn.getChildren();
var length:int = children.length;
for (var i:int = 0; i<length; i++)
if (children[i].customer.customerId == customer.customerId)
tn.selectedIndex = i;
return;
var form:CustomerForm = new CustomerForm();
tn.addChild(form);
form.customer = customer;
form.dao = dao;
form.addEventListener(CustomerEvent.CREATE, customerChangeHandler),
form.addEventListener(CustomerEvent.UPDATE, customerChangeHandler),
form.addEventListener(CustomerEvent.DELETE, customerChangeHandler),
tn.selectedChild = form;
private function customerChangeHandler(event:CustomerEvent):void
customerArrayList = dao.findByCustomerAll();
if (event.type == CustomerEvent.DELETE)
tn.removeChild(event.target as CustomerForm);
]]>
</fx:Script>
<mx:Canvas id="container" left="12" right="12" top="12" bottom="12">
<mx:Canvas left="0" top="2" right="0" height="33">
<mx:Button id="AddCustomer" x="1" width="108" height="32" click="createItem()"
icon="@Embed('assets/icon_plus.png')" label="Add Customer" toolTip="Add Customer"
verticalCenter="-1"/>
</mx:Canvas>
<code:SuperTabNavigator id="tn" x="0" y="39" width="681" height="197"/>
<mx:DataGrid id="customerList" x="1" y="262" width="680" height="231"
dataProvider="{customerArrayList}"
doubleClick="openTab(customerList.selectedItem)" doubleClickEnabled="true">
<mx:columns>
<mx:DataGridColumn dataField="customerId" headerText="Id"/>
<mx:DataGridColumn dataField="customerName" headerText="Name" />
<mx:DataGridColumn dataField="companyName" headerText="companyName" />
</mx:columns>
</mx:DataGrid>
</mx:Canvas>
CustomerForm:
public function set customer(customer:Object):void
this._customer = customer;
public function get customer():Object
return this._customer;
private function saveCustomer():void
if (Validator.validateAll(customerValidators).length>0)
return;
_customer.customerName = customerName.text;
_customer.companyName = companyName.text;
if (_customer.customerId > 0)
updateCustomer();
else
insertCustomer();
private function insertCustomer():void
try
Alert.show(_customer.normalPkts);
dao.insertCustomer(_customer);
customerId.text = _customer.customerId;
dispatchEvent(new CustomerEvent(CustomerEvent.CREATE, _customer, true));
var alertText:String="Company Created Successfully!";
Alert.show(alertText,"",4,null,null,ConfirmMessage);
catch (error:SQLError)
var alertErrorCreate:String="Company not Created...";
Alert.show(alertErrorCreate+"\n"+error.details,"",4,null,null,ErrorMessage);
private function updateCustomer():void
try
dao.updateCustomer(_customer);
dispatchEvent(new CustomerEvent(CustomerEvent.UPDATE, _customer, true));
var alertText:String="Company Updated Successfully!";
Alert.show(alertText,"",4,null,null,ConfirmMessage);
catch (error:SQLError)
var alertErrorText:String="Company not Updated...";
Alert.show(alertErrorText+"\n"+error.details,"",4,null,null,ErrorMessage);
private function deleteItem():void
try
dao.deleteCustomer(_customer);
dispatchEvent(new CustomerEvent(CustomerEvent.DELETE, _customer, true));
catch (error:SQLError)
Alert.show(error.details, "Error");
]]>
</mx:Script>
<mx:Grid x="10" y="10" width="665" height="130" verticalAlign="middle">
<mx:GridRow width="665" height="100%">
<mx:GridItem width="85" height="100%">
<mx:Label width="85" text="Customer Id:"/>
</mx:GridItem>
<mx:GridItem width="115" height="100%">
<mx:TextInput id="customerId" text="{_customer.customerId}" editable="false" width="115"/>
</mx:GridItem>
<mx:GridItem width="102" height="100%">
<mx:Label width="102" text="Company Name:"/>
</mx:GridItem>
<mx:GridItem width="100" height="100%">
<mx:ComboBox id="companyName" dataProvider="{companyIdList}" labelField="companyName"
prompt="Select..." text="{_customer.companyName}" width="100"/>
</mx:GridItem>
<mx:GridItem width="230" height="100%" horizontalAlign="center" verticalAlign="middle">
<mx:Button label="Save" click="saveCustomer()"/>
<mx:Button label="Delete" click="deleteItem()"/>
</mx:GridItem>
</mx:GridRow>
</mx:Grid>
=====================================================================
I have two ArrayCollections 1) companyIdList (CustomerForm)
2) customerArrayList(CustomerMaster)
please go through the bold text. Please focus on two dataProviders. These dataproviders are binding for One Combo Field.
Thanks,
Sree Kumar
Message was edited by: sreekumar1976 -
Insert String array as label content in datagrid row through radio button C# wpf?
I have written some code for inserting label at runtime having its content set to a string array and then insert that label into a datagrid row . All of this will initiate when certain radiobuttons are checked. code is working perfectly fine. But i need
to improve this code as i am learning C#, wpf and datagrid. I know there can be a certain way to improve this code.
This code will be a nightmare when there are 50 radiobuttons.
can it be improve and how it can be? if u can explain that will be very kind of you
Xaml Code:
<Grid>
<RadioButton x:Name="rb_1" Content="RadioButton" HorizontalAlignment="Left" Margin="351,85,0,0" VerticalAlignment="Top" GroupName="1" />
<RadioButton x:Name="rb_2" Content="RadioButton" HorizontalAlignment="Left" Margin="351,105,0,0" VerticalAlignment="Top" GroupName="1"/>
<RadioButton x:Name="rb_3" Content="RadioButton" HorizontalAlignment="Left" Margin="351,120,0,0" VerticalAlignment="Top" GroupName="1" />
<RadioButton Content="RadioButton" HorizontalAlignment="Left" Margin="351,159,0,0" VerticalAlignment="Top" GroupName="2" />
<RadioButton x:Name="rb_4" Content="RadioButton" HorizontalAlignment="Left" Margin="351,179,0,0" VerticalAlignment="Top" GroupName="2"/>
<RadioButton Content="RadioButton" HorizontalAlignment="Left" Margin="351,199,0,0" VerticalAlignment="Top" GroupName="2" />
<Button Content="Button" HorizontalAlignment="Left" Margin="713,60,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click_2"/>
<DataGrid x:Name="datagrid_" HorizontalAlignment="Left" Margin="549,85,0,0" VerticalAlignment="Top" Height="253" Width="399" />
<RadioButton Content="RadioButton" HorizontalAlignment="Left" Margin="351,226,0,0" VerticalAlignment="Top" GroupName="3" />
<RadioButton x:Name="rb_6" Content="RadioButton" HorizontalAlignment="Left" Margin="351,246,0,0" VerticalAlignment="Top" GroupName="3"/>
<RadioButton Content="RadioButton" HorizontalAlignment="Left" Margin="351,266,0,0" VerticalAlignment="Top" GroupName="3" />
<RadioButton Content="RadioButton" HorizontalAlignment="Left" Margin="351,298,0,0" VerticalAlignment="Top" GroupName="4" />
<RadioButton x:Name="rb_8" Content="RadioButton" HorizontalAlignment="Left" Margin="351,318,0,0" VerticalAlignment="Top" GroupName="4"/>
<RadioButton Content="RadioButton" HorizontalAlignment="Left" Margin="351,338,0,0" VerticalAlignment="Top" GroupName="4" />
</Grid>
Code Behind:
public partial class MainWindow : Window
public MainWindow()
InitializeComponent();
DataTable dt;
DataRow dr;
string[] str = new string[4];
int location = 0;
int count = 0;
private void Window_Loaded(object sender, RoutedEventArgs e)
dt = new DataTable("emp");
DataColumn dc1 = new DataColumn("Factors", typeof(string));
DataColumn dc2 = new DataColumn("Non_Compliant", typeof(string));
dt.Columns.Add(dc1);
dt.Columns.Add(dc2);
datagrid_.ItemsSource = dt.DefaultView;
private void Button_Click_2(object sender, RoutedEventArgs e)
if (count >= 1)
datagrid_.ItemsSource = dt.DefaultView;
dt.Clear();
str[0] = "Load Path1";
str[1] = "Load Path2";
str[2] = "Load Path3";
str[3] = "Load Path4";
int j = 0;
if (rb_2.IsChecked == true)
j = 0;
int k = 0;
dr = dt.NewRow();
Label label = new Label();
label.Height = 28;
label.Width = 100;
label.HorizontalAlignment = HorizontalAlignment.Center;
label.VerticalAlignment = VerticalAlignment.Center;
label.Content = str[j];
dr[k] = label.Content;
dt.Rows.Add(dr);
datagrid_.ItemsSource = dt.DefaultView;
location += 34;
if (rb_4.IsChecked == true)
j = 1;
int k = 0;
dr = dt.NewRow();
Label label = new Label();
label.Height = 28;
label.Width = 100;
label.HorizontalAlignment = HorizontalAlignment.Center;
label.VerticalAlignment = VerticalAlignment.Center;
label.Content = str[j];
dr[k] = label.Content;
dt.Rows.Add(dr);
datagrid_.ItemsSource = dt.DefaultView;
location += 34;
if (rb_6.IsChecked == true)
j = 2;
int k = 0;
dr = dt.NewRow();
Label label = new Label();
label.Height = 28;
label.Width = 100;
label.HorizontalAlignment = HorizontalAlignment.Center;
label.VerticalAlignment = VerticalAlignment.Center;
label.Content = str[j];
dr[k] = label.Content;
dt.Rows.Add(dr);
datagrid_.ItemsSource = dt.DefaultView;
location += 34;
if (rb_8.IsChecked == true)
j = 3;
int k = 0;
dr = dt.NewRow();
Label label = new Label();
label.Height = 28;
label.Width = 100;
label.HorizontalAlignment = HorizontalAlignment.Center;
label.VerticalAlignment = VerticalAlignment.Center;
label.Content = str[j];
dr[k] = label.Content;
dt.Rows.Add(dr);
datagrid_.ItemsSource = dt.DefaultView;
location += 34;
count++;@Usamakhan1990,
Use usercontrol with label and checkbox is reasonable for a datagrid control if you don't want to have too much code for those radio buttons. So I agree with andy here with that usercontrol.
So is it required that your radiobutton should be outside the datagrid?
Anyway, I think you already know that you can bind data to columns yourself. So please check the following thread:
http://stackoverflow.com/questions/22922533/how-do-i-automagically-bind-a-string-array-to-a-wpf-datagrid
<DataGrid Name="_dataGrid" Grid.Row="0" AutoGenerateColumns="False">
<DataGrid.Columns>
<DataGridTextColumn Header="Column 1" Binding="{Binding [0]}"/>
<DataGridTextColumn Header="Column 2" Binding="{Binding [1]}"/>
</DataGrid.Columns>
</DataGrid>
Or define the columns from code, in case you have dynamic number of columns, for example :
string[][] array = fs.CSVToStringArray();
for (int i = 0; i < array[0].Length; i++)
var col = new DataGridTextColumn();
col.Header = "Column " + i;
col.Binding = new Binding(string.Format("[{0}]", i));
_dataGrid.Columns.Add(col);
this.ExternalData._dataGrid.ItemsSource = array;
And for Radio button part, please see here:
http://stackoverflow.com/questions/397556/how-to-bind-radiobuttons-to-an-enum
Best regards,
Barry
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. -
Applying images as skins in chat applet
Hi,
I have developed chat applet. I have implemented skins in that applet. But as colors. So how to apply images as diff skins.
It is urgent.
Please be polite and answerGood evening, sir, or madam, as the case may be,
To correctly implement this, you must first learn how to load image files into an applet. Might I be so bold as to recommend that one look at the javax.swing.ImageIcon class, as it is endowed with constructors which facilitate the loading of images via a URL.
Following that, I would then encourage you to learn how to take said loaded image and draw it on component. For this, I would recommend subclassing some component (JPanel, or some other suitable component), and override the paintComponent() method. The java.awt.Graphics class is supremely suited to perform drawing operations of this sort, as well as many others.
Once you have successfully completed these tasks, then you will find that you have an applet which one can decorated with wonderful imagery from all corners of the world.
Yours most sincerely,
bsampieri -
More than four images in a row?
I have it set up to display four images in a row. Does anyone know how to display more than that using Apex? Thanks, E.
Assuming that you are storing your images in a table in a column of type BLOB,
and that you have a procedure to display an image and another to download the
image from your table, change your code to look as shown bellow. Basically
this code generates an image tag < img> and an anchor tag < a> . The anchor
tag calls the download_file procedure to download the image file. The image
tag calls the display_image procedure to display the image.
(see comment below for images stored on the filesystem)
NOTE: I put a space between the < and the tag name in the "img", "br" and "a" tags in the code to keep the system from interpreting them. Take the space out when you use the code in your system.
SELECT col1, col2, col3, col4, col5, col6
FROM
(SELECT
'< img src="#OWNER#.display_image?p_id=' || id || '" height="75" >' ||
'< br/>' || '< a href="#OWNER#.download_file?p_file_id=' || id ||
'">' || doc_name|| ' </a>' col1,
lead('< img src="#OWNER#.display_image?p_id=' || id || '" height="75" >' ||
'< br/>' || '< a href="#OWNER#.download_file?p_file_id=' || id ||
'">' || doc_name|| ' </a>', 1) over (ORDER BY id) col2,
lead('< img src="#OWNER#.display_image?p_id=' || id || '" height="75" >' ||
'< br/>' || '< a href="#OWNER#.download_file?p_file_id=' || id ||
'">' || doc_name|| ' </a>', 2) over (ORDER BY id) col3,
lead('< img src="#OWNER#.display_image?p_id=' || id || '" height="75" >' ||
'< br/>' || '< a href="#OWNER#.download_file?p_file_id=' || id ||
'">' || doc_name|| ' </a>', 3) over (ORDER BY id) col4,
lead('< img src="#OWNER#.display_image?p_id=' || id || '" height="75" >' ||
'< br/>' || '< a href="#OWNER#.download_file?p_file_id=' || id ||
'">' || doc_name|| ' </a>', 4) over (ORDER BY id) col5,
lead('< img src="#OWNER#.display_image?p_id=' || id || '" height="75" >' ||
'< br/>' || '< a href="#OWNER#.download_file?p_file_id=' || id ||
'">' || doc_name|| ' </a>', 5) over (ORDER BY id) col6,
row_number() over (ORDER BY id) rn
FROM image_documents)
WHERE Mod(rn, 6) = 1
The code for my procedures follows. Change table/column names as appropriate.
My image table:
CREATE TABLE image_documents (
id NUMBER NOT NULL,
keywords VARCHAR2(4000) NULL,
doc_name VARCHAR2(500) NULL,
bytes NUMBER NULL,
mime_type VARCHAR2(50) NULL,
file_contents BLOB DEFAULT Empty_Blob() NULL
Code for display_image procedure:
CREATE OR REPLACE PROCEDURE display_image
(p_id NUMBER, p_mode VARCHAR2 DEFAULT 'DISPLAY') AS
v_mime_type VARCHAR2(50);
v_bytes NUMBER;
v_doc_name VARCHAR2(500);
lob_image BLOB;
BEGIN
-- uncomment this block and change XXXX to you app ID to
-- keep users from running procedure
-- from outside your application
APEX_APPLICATION.G_FLOW_ID := XXXX;
IF NOT wwv_flow_custom_auth_std.is_session_valid THEN
htp.p('Error Code: '||APEX_APPLICATION.G_FLOW_ID);
RETURN;
END IF;
SELECT doc_name, bytes, file_contents
INTO v_doc_name, v_bytes, lob_image
FROM image_documents
WHERE id = p_id;
owa_util.mime_header('application/octet', FALSE);
htp.p('Content-length:' || v_bytes);
htp.p('Expires : ' || To_Char(SYSDATE + 1/24, 'FMDy, DD Month YYYY HH24:MI:SS') || ' GMT');
IF (p_mode = 'DOWNLOAD') THEN
htp.p('Content-Disposition: attachment; filename="' || v_doc_name || '"');
END IF;
owa_util.http_header_close;
wpg_docload.download_file(lob_image);
END display_image;
GRANT EXECUTE ON display_image TO PUBLIC;
-- Code for download_file procedure
CREATE OR REPLACE PROCEDURE download_file(p_file_id in number) AS
v_doc_name VARCHAR2(100);
v_mime_type VARCHAR2(48);
v_bytes NUMBER;
v_file_contents BLOB;
BEGIN
-- uncomment this block and change XXXX to your app ID to keep users
-- from running this procedure from outside of your application
APEX_APPLICATION.G_FLOW_ID := XXXX;
IF NOT wwv_flow_custom_auth_std.is_session_valid THEN
htp.p('Error Code: '||APEX_APPLICATION.G_FLOW_ID);
RETURN;
END IF;
SELECT doc_name, bytes, mime_type, file_contents
INTO v_doc_name, v_bytes, v_mime_type, v_file_contents
FROM image_documents
WHERE id = p_file_id;
-- set up HTTP header
-- use an NVL around the mime type and
-- if it is a null set it to application/octect
-- application/octect may launch a download window from windows
owa_util.mime_header( nvl(v_mime_type,'application/octet'), FALSE );
-- set the size so the browser knows how much to download
htp.p('Content-length: ' || v_bytes);
-- the filename will be used by the browser if the users does a save as
htp.p('Content-Disposition: attachment; filename="'||v_doc_name|| '"');
-- close the headers
owa_util.http_header_close;
-- download the BLOB
wpg_docload.download_file( v_file_contents );
end;
For images stored in the file system, you do not need the procedures.
Just define a virtual path in the httpd.conf file pointing to the file
directory and make the tags as follows:
< img src="virtual_path/img_file_name" height=25 />
< a href="virtual_path/img_file_name"> img_file_name </a>
Example: (assuming we are using the /i/ virtual path)
SELECT
'< img src="/i/' || doc_name || '" height="75" >' ||
'< br/>' || '< a href="/i/' || doc_name || '">' ||
doc_name|| ' </a>' col1,
'< img src="/i/' || doc_name || '" height="75" >' ||
'< br/>' || '< a href="/i/' || doc_name || '">' ||
doc_name|| ' </a>' col2,
:Hope this helps.
ackness -
How to apply image texture to imported shape
This is regarding applying am image texture to an object.
I am able to apply an image texture to a Sphere.
Sphere mySphere = new Sphere(1.0f, Sphere.GENERATE_NORMALS | Sphere.GENERATE_TEXTURE_COORDS, 10,appear);
objRoot.addChild(mySphere);
But when i import a model from a file(.obj), and apply the texture to the imported objects,
the image is not displayed as texture but a color similar to the image is displayed.
How to apply image texture to imported objects?Mylenium, thanks for your response but unfortunately I'm still missing something here. I have two problems:
1. I don't understand how to size the logo to only cover a small portion of the golf ball. Because of the other problem I'll describe in 2) below, I simplified my test by trying this on a basic PS sphere. I loaded the logo image into the diffuse texture but it wraps the sphere. I tried editing the texture thinking I could fix it by using Transform scale, but that is greyed out. So, how do I cause the logo to apply to a small portion of the surface (as a traditional golf ball logo would appear)?
2. Perhaps the bigger issue here is when I attempt to do this with the golf ball 3ds model instead of the PS sphere, the wrapped logo appears to be sitting somewhere between the outer surface of the ball and the inner core. In other words, the wrapped logo has a very sporadic appearance where it shows up in some dimples but not others. It isn't just applying to the surface of the ball. Thinking this might have been a problem with the .3ds model I acquired an .obj golf ball from a different source but it exhibited exactly the same problem.
I'm experienced with PS and 3D in a couple of other programs, but new to 3D in PS. I appreciate your help with this.
Jerry -
Photoshop CS4 Channel Apply Image
Good evening, everybody. I am a beginner of Photoshop and I am really interested in Photoshop.
Here is a big challenge I have met in the "Image>Apply Image..."
As it's shown in the picture, I use the Channel Alpha1 to alter the RGB Compound Channel and the Blending mode is ADD. And I can understand the fundamental of the above operation. Then question occur:
I don't get a full understanding of the Chek Box "Mask..." and I don't konw what it is used for. And what about some parameters "Image", "Channel", "Layser" about the "Mask..." Can you explain the secret of it to me? It will be much better if you could give me the fundamental or algorithm of it.
I will really appreciate your reply.
-----From a Ps Loyal fansc.pfaffenbichler wrote:
Do you follow some course?
Because in practice this feature seems to hardly get used by most people.
The Apply Image feature is used in fashion portrait retouching when the frequency separation technique is employed. This technique separates texture and color into two layers, which are edited separately. There are several video tutorials showing how it is done, but none of them gets into the details of the Apply Image settings. They just show you what numbers to stick in a few of the boxes. I, too, would like to know more about what those settings do.
An example of one such tutorial is here: http://fstoppers.com/frequency-separation-with-fashion-photographer-retoucher-elena-jasic -
Apply image with smart object?
What is the trick to be able to use "apply image" to a smart object? If not can someone explain the logic? Thanks
Can't yet.
-
How to add event listener to datagrid ROW
I need to know if it is possible to have the datagrid rows execute a state change.
For example: I have a datagrid populated with various items, when one row is selected I want it to change the state of a part of the canvas it is in.
How is this possible? I can not give the row an id so I would not be able to say "when row is selected change state" because there is no way to tell what row is selected.
Help please. Thanks.See Flex 4 and MXDataGridItemRenderer.
-
I can't find apply image command
I'm learning with the Elements 8 trial system. Trying to blend two photos. The help page gives instructions to us the Apply Image but it doesn't show up when I click image. Where is it?
Wow! That took care of my question and then some. Thank you very much.
Thank you very much!
Tim McNulty
Date: Thu, 16 Sep 2010 05:04:33 -0600
From: [email protected]
To: [email protected]
Subject: I can't find apply image command
Hi,
Please Refer the following link it may help you.
http://www.photoshopessentials.com/photo-effects/elements/photo-blend/
Thanks
www.mediacafe.in
> -
Displaying Datagrid Rows Based on User Login Id
Hey Everyone,
So the problem I am having is that I am making a product configurator and when a user logs in I want to display there previous creations in a data grid so they can select edit or reorder them....the problem I am having is for some reason I can't get the designs to show up based on specific users...here is the process i am currently using in Flex 4.5
I create 2 tables in the database (Users and Designs)
the id for the design is based on the id of the user that created it
In flex I create 2 php services
-One generated from the users table for creating a new user for the configurator
-The other one is generated from the Design table and I use the getAllDesigns(); to display the designs in the data grid
All of the login info is validated through php files that are used by an httpservice call
So my idea was to run an if statement to display the designs for specific user, something like this (i know the syntax isn't right this is just to get my idea accross
Var designId = datagrid.row.id;
(allready have userId var)
if(userId != designId)
row.visible = "false"
I have tried many different approaches but cant get anything to work
Any Ideas would be helpful
Thanks In advanceYour right, i was trying to wrap my head around that idea earlier but decided to go with this option to just see if i could get this to work then work on the server side filtering...
How would I do this in theory,
my thinking is that i query in my php file something like
SELECT * FROM DESIGNS WHERE DESIGNS.ID = USERS.ID;
then take the filtered data and pass it to a xml document
then in flex create an array list out of the xml to insert into the datagrid?
or do you have a better idea?
also will that information even be able to be editable because i am parsing the data through the xml?
Thanks for any input -
Apply image to layers below target, or merge to new layer
I'd like an option to apply image from source: "layers below the target layer", instead of the current options of merged or choosing a layer.
or
possibly a more flexible and faster method may be to choose a selection of contiguous layers and add a "merge to new layer" menu choice. This would merge the selected layers and flatten to a new layer above the selected layers.
This would be convenient for interim builds of layers and retaining layered work.
...... yes there are many ways to do this currently, this is a feature request.Hi Chris
Sorry for the delay a bunch of stuff landed on my desk.
>I don’t want to annoy you, but could you be more specific?
no worries, you're a very helpful person around here. There's nothing really specific, a fun new features areas should be exciting, and there's little benefit to anyone posting ( except for egos ) so I think I'll hang around the other areas that are focused on fixing problems.
regards
j -
Apply image & calculations: when and why please?
Would some one kindly indicate the thinking behind the use of these features?
What problems do they solve, when do we want to use them, etc. Thanks !I use apply image to move pixels from one channel to another. The channel mixer adjustment layer is not spot-channel aware. It's also useful for moving pixels from one image to another.
I use calculations when making masks. A lot of times, using calculations on two channels will result in a better starting point for a mask than from one channel alone.
A video tut here: http://library.creativecow.net/articles/harrington_richard/photoshop_calculations/
Maybe you are looking for
-
PowerMacG4 won't start without old Cinema Display attached
PowerMacG4 867dp (Mirror Door) NVidia GeForce4mx w/ADC+DVI 20" Cinema Display w/ power switch, on ADC port Acer 23" G23HL, on DVI port I replaced my failing ADC with a new display (with much-appreciated help from this board!) Works fine as domina
-
I need to cancel a gift card i ordered
I ordered a gift card for my son's birthday from facebook . He no longer has any devices to use it with. I need it cancelled. How can i get it cancelled?
-
Hello Friends, I have to map the following scenario. Please advise the config & master data. 1) My sample size should change if my acceptance & rejecetion level changes. 2) If rejection increases then the sample size in the next lot should increase &
-
Script for checking the replication process in Netscape Directory Sever 4.1
Hi, We are using Netscape Directory Server 4.1.6 in our production environment. Where we want to know is there any script available to check the replication process. Or can we write a script to check the process. Waiting for your replies at the earli
-
System Preferences- Desktop/Screen saver- crash EVERY TIME
Hi- I have a brand new iMAc 24" with Leopard and all software is up to date via update as of 12 hours ago (10.5.1 etc). I have office 2004 and photoshop/illustrator but NO other software loaded. The computer is now 7 days old. Yesterday I used system