hree girls posing in the night Illustration
Let's learn how to create an illiustration. You can get your favorite photo and try to do the same steps.
Let’s create a new document with dimensions 500x400 and 72 dpi. Using the instrument , create a triangle (colour code is indicated with red).
Continue using the same instrument and create triangles on all the backgrounds - one triangle to one background:
All of them having the same colour:
Continue create triangles:
We’ll get the next picture.
On a new background create a nice star using this instrument :
The colour code is indicated again with red.
Make several stars of different dimensions, but of the same color.
And several stars of different colors:
We’ll combine our stars with the triangles and we’ll have the next picture:
We’ll add some luminescent stars using the instrument Blending Options where we’ll choose Outer Glow and set out like in this picture:
We’ll get luminescent stars:
Add some extra-effects. We’ll use a big brush of white color on a new background and make the upper part of the picture brighter. The brush’s dimensions: hardness – 0% and opacity – 10%:
Also we’ll dark out the edges of the picture by clicking the next instrument and choosing Curves on a new background:
The menu is open and we can install the next parameters. Seizing the left point from the bottom.
If anything is done correctly we’ll see the next:
Let’s take the girl’s photo and using the instrument , move off the background:
Applying Blending options and parameter Colour Overlay on the girls’ background set out the black colour.
We’ll get the girls’ silhouettes:
Add the girls’ silhouettes to the result we got before and we’ll see:
Add also a shadow under the girls. We need to copy the background with girls’ silhouettes and use Free Transform (by clicking the right button of the mouse on the background) and display the silhouettes on 180* vertically. Don’t forget to change the opacity – 55% on the background.
Download: Source File
27 tháng 11 2006
Learn Photoshop 01
This task we’ll learn to create a logotype for Music Records Company.
First create a new file 550x400 px and 72 dpi.
Draw a circle now, using the instrument . The parameters should be the same from the picture.
Now make small circles inside the previous one with the same parameters form the picture.
In the Layers Window set Fill 0%. Use the function Free Transform to minimize the circles. The last circle has the same adjustments like in the picture.
The instrument will help us to create figures like the next ones.
Parameters…
Use the same instrument to create a flame. The parameters are also indicated in the pictures.
Copy and turn it around horizontally, using Free Transform.
Add the text in the end with the instrument . The font should be Verdana.
The final result.
First create a new file 550x400 px and 72 dpi.
Draw a circle now, using the instrument . The parameters should be the same from the picture.
Now make small circles inside the previous one with the same parameters form the picture.
In the Layers Window set Fill 0%. Use the function Free Transform to minimize the circles. The last circle has the same adjustments like in the picture.
The instrument will help us to create figures like the next ones.
Parameters…
Use the same instrument to create a flame. The parameters are also indicated in the pictures.
Copy and turn it around horizontally, using Free Transform.
Add the text in the end with the instrument . The font should be Verdana.
The final result.
24 tháng 11 2006
23 tháng 11 2006
22 tháng 11 2006
21 tháng 11 2006
Swing: How to show JPopupMenu on Empty JTable ?
Swing: How to show JPopupMenu on Empty JTable ?
At 7:03 PM on Sep 15, 2005, Santhosh Kumar T wrote:
It looks like as simple as writing a MouseListener implementation and register with JTable where the MouseListener implementation shows JPopupMenu.
But this doesn't works if there are no rows in JTable. Why so? The height of the JTable is zero when there are no rows, Thus the area where user clicks is not JTable, it is JViewPort.
This can be solved by overriding the method getScrollableTracksViewportHeight () of Scrollable interface. JTable already implements Scrollable interface. So we just override that method and make the table height same as that of view-port if its preferred size is smaller than view-port size
JTable table = new JTable(0, 5){
public boolean getScrollableTracksViewportHeight() {
return getPreferredSize().height < getParent().getHeight();
}
};
This is how JTextComponent handles this. You can checkout JTextComponent.java and see getScrollableTracksViewportHeight() implementation.
Any JComponent can be scrollable by adding to JScrollable. Then what is Scrollable interface is for ? Scrollable interface which gives some hints to perform better scrolling, such as how many pixels to move per mouse-click or page up or page down.
The demo contains two tables. and both tables have the same MouseListener registered. But only the bottom table shows JPopupMenu on right mouse click. The bottom table overrides getScrollableTracksViewportHeight() as explained above.
Select scroll new item
tbList.getSelectionModel().setSelectionInterval(
tbList.scrollCellToVisible(tbList.getRowCount() - 1,tbList.getRowCount() - 1);
tbList.getRowCount()-1, tbList.getRowCount()-1
);tbList.scrollCellToVisible(tbList.getRowCount() - 1,tbList.getRowCount() - 1);
TableModel Standard
class MyModel extends AbstractTableModel{
private String[] _columns = new String[]{"Id", "Name"};
private Class[] _classnames = new Class[]{Integer.class,String.class};
private Vector _data ;
public MyModel( Vector data ){
_data = data;
}
public int getRowCount() {
return _data.size();
}
public int getColumnCount() {
return _columns.length;
}
public Object getValueAt(int rowIndex, int columnIndex) {
MyObject obj = _data.get( rowIndex );
switch ( columnIndex ){
case 0:
return obj.getId();
case 1:
return obj.getName();
}
return null;
}
public String getColumnName(int col)
{
return _columns[col];
}
public Class getColumnClass(int col)
{
return _classnames[ col ];
}
public void addNewItem( MyObject obj ){
_data.add( obj );
this.fireTableRowsInserted( this.getRowCount(), this.getRowCount() );
this.fireTableDataChanged();
}
}
class MyObject{
private int _id;
private String _name;
public void setId( int id ){
_id = id;
}
public void setName ( String name ){
_name = name;
}
public int getId(){
return _id;
}
public String getName(){
return _name;
}
}
private String[] _columns = new String[]{"Id", "Name"};
private Class[] _classnames = new Class[]{Integer.class,String.class};
private Vector
public MyModel( Vector data ){
_data = data;
}
public int getRowCount() {
return _data.size();
}
public int getColumnCount() {
return _columns.length;
}
public Object getValueAt(int rowIndex, int columnIndex) {
MyObject obj = _data.get( rowIndex );
switch ( columnIndex ){
case 0:
return obj.getId();
case 1:
return obj.getName();
}
return null;
}
public String getColumnName(int col)
{
return _columns[col];
}
public Class getColumnClass(int col)
{
return _classnames[ col ];
}
public void addNewItem( MyObject obj ){
_data.add( obj );
this.fireTableRowsInserted( this.getRowCount(), this.getRowCount() );
this.fireTableDataChanged();
}
}
class MyObject{
private int _id;
private String _name;
public void setId( int id ){
_id = id;
}
public void setName ( String name ){
_name = name;
}
public int getId(){
return _id;
}
public String getName(){
return _name;
}
}
20 tháng 11 2006
19 tháng 11 2006
18 tháng 11 2006
Just find this web
Freelancerdesigner
I have just found this blog. I think this blog will usefull for me.
I have just found this blog. I think this blog will usefull for me.
17 tháng 11 2006
Đăng ký:
Bài đăng (Atom)