473,587 Members | 2,324 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

clipping questions

I am currently experimenting a bit with clipping (with banners).
1. Is it possible to do more then one clipping on a image. For example:
image of 400px x 80 px:
var TELLER = 0;
function unfoldPic() {
TELLER++;
if (TELLER <= 80) {
CURR_PIC.style. clip = 'rect(0px 400px ' + TELLER + 'px 0px)';
window.setTimeo ut('unfoldPic() ', 30);
}
}
This reveals the new pic gently from top to bottom.
But I would like to do something like this.
var TELLER = 0;
function unfoldPic() {
TELLER++;
if (TELLER <= 10) {
CURR_PIC.style. clip = 'rect(0px 400px ' + TELLER + 'px 0px)';
CURR_PIC.style. clip = 'rect(10px 400px ' + (TELLER+10) + 'px 0px)';
CURR_PIC.style. clip = 'rect(20px 400px ' + (TELLER+20) + 'px 0px)';
CURR_PIC.style. clip = 'rect(30px 400px ' + (TELLER+30) + 'px 0px)';
CURR_PIC.style. clip = 'rect(40px 400px ' + (TELLER+40) + 'px 0px)';
CURR_PIC.style. clip = 'rect(50px 400px ' + (TELLER+50) + 'px 0px)';
CURR_PIC.style. clip = 'rect(60px 400px ' + (TELLER+60) + 'px 0px)';
CURR_PIC.style. clip = 'rect(70px 400px ' + (TELLER+70) + 'px 0px)';
window.setTimeo ut('unfoldPic() ', 100);
}
}
To give the impression that there 8 blinds/layers opening/revealing the new
pic.
I am afraid that to accomplish this I will have to divide each image in 8
layers to be able to do this and address each and everyone of these layers
seperately.

2. Can one do clipping with something else then rect ? Ellipse, circle, ....

thanx,

Pugi!
Mar 15 '06 #1
2 1536
VK

Pugi! wrote:
I am currently experimenting a bit with clipping (with banners).
1. Is it possible to do more then one clipping on a image.
To give the impression that there 8 blinds/layers opening/revealing the new
pic.
I am afraid that to accomplish this I will have to divide each image in 8
layers to be able to do this and address each and everyone of these layers
seperately.
Not necessary. You can have a matrix of non-transparent div's atop of
your image and shrink them in a loop. Microsoft transition does the
desired effect in one line of code, but unfortunately not supported by
anyone else.
2. Can one do clipping with something else then rect ? Ellipse, circle, ....


The same approach but use clipping images (of circles etc) atop of the
image you want to reveal.

Mar 15 '06 #2

"VK" <sc**********@y ahoo.com> schreef in bericht
news:11******** *************@j 33g2000cwa.goog legroups.com...

Pugi! wrote:
I am currently experimenting a bit with clipping (with banners).
1. Is it possible to do more then one clipping on a image.
To give the impression that there 8 blinds/layers opening/revealing the
new
pic.
I am afraid that to accomplish this I will have to divide each image in 8
layers to be able to do this and address each and everyone of these
layers
seperately.


Not necessary. You can have a matrix of non-transparent div's atop of
your image and shrink them in a loop. Microsoft transition does the
desired effect in one line of code, but unfortunately not supported by
anyone else.
2. Can one do clipping with something else then rect ? Ellipse, circle,
....


The same approach but use clipping images (of circles etc) atop of the
image you want to reveal.


Hmmmm, you gave me some ideas. Still have some questions, but will start new
thread.

Pugi!
Mar 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1820
by: John Hunter | last post by:
Does gd lib or gdmodule support clipping? I would like to set a clip rectangle and when I issue drawing commands (like im.polygon) have only the part of the polygon inside the clip rectangle displayed. Thanks, John Hunter gd-2.0.15 gdmodule-0.42
14
2063
by: Doug van Vianen | last post by:
Hi, I am trying to show a clipped part of a picture on a webpage and move it on the page and/or change the clipping to a different part of the picture. I show the picture in the body of the page by using <div id=div1 style="position:absolute; top:200; left:400; width:200; height:200; z-index:1; background-image:url(ole01.jpg);...
0
2273
by: phil cunningham | last post by:
Does anyone know of a good library to handle Polygon clipping in C#. This would require clipping of shapes with FLOAT verteces and we need the capability of clipping one Polygon against another to get Interseciton, Union etc. Any information would be much appreciated. Thanks Phil
4
1275
by: Dixon | last post by:
Hai Im a newbie I have a picture in a picture box I drag a portion of the picture with the mouse..... Here i get the area i dragged in and now i want that area to be a separate picture saved in my hard disk
2
2827
by: zeyais | last post by:
I am using ASP.net (should be transparent in this case). The page is generated alright. The page has fieldset, divs and tables and other HTML elements like text box, drop downs etc; all are standards. Also, the page is formatted/decorated using CSS. Here is the issue: HTML generated is alright. Except: 1. IE the text is clipped instead...
9
3403
by: Andy Baxter | last post by:
hello, I'm writing a panoramic image viewer in html / javascript. The idea is I have a div with two identical panoramic photographs embedded in it. The clipping on the div is set to make it a viewport onto the images. Then I use javascript to make the two images scroll through the viewport - the second image is just there to fill the gaps...
4
2098
by: soren625 | last post by:
What I am trying to do is grab a little snippet of data from a remote page based on user input in a form. Take a look at this page: http://www.qrz.com/kb2gsd What I want to do is: when a user types the call sign (in this case, KB2GSD) into a form field, I want to execute an XPath query (or somehow otherwise process the contents of the page)...
0
1330
by: dongarbage | last post by:
Hi there, I have a panel that I'm trying to draw lines on based on mouse events. I'm using a Graphics object to do this. However, the region that the graphics object will draw lines in is different in size than the panel size. I'd like the graphics object's clipping region (is "clipping region" the right terminology?) to be the same size as...
2
5566
by: Rune Jacobsen | last post by:
Hi all, I have a few questions on deriving from ScrollableControl that I hope will be relatively easy to answer. I am using Visual Studio 2003, C# and ..Net 1.1. I have this custom control I am making called ResourceView. It is supposed to show a visual overview of resource usage over time. Time is represented by the X axis, and the...
0
7918
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7843
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8206
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7967
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6621
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5713
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5392
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3875
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.