Hi,
I created my website so that each menu and table is drawn with commands like
DrawRectangle and DrawString.
Each of these bitmaps is then stored on the server and then loaded into an
image or imagemap control, created dynamicly.
Here's a piece of the code:
Dim bm As Drawing.Bitmap
Dim fn10 As Drawing.Font
Dim pn2 As Drawing.Pen
Dim imCopyright As New WebControls.Ima geMap
Dim dsUpdate As New Data.DataSet
dsUpdate.ReadXm l(Request.Physi calApplicationP ath + "\update.xm l")
bm = New Drawing.Bitmap( 800, 40)
bm.SetResolutio n(200, 200)
Dim gph As Graphics = Graphics.FromIm age(bm)
fn10 = New Font("Arial", 10, FontStyle.Regul ar, GraphicsUnit.Pi xel)
pn2 = New Pen(Color.DarkS lateGray, 2)
gph.Clear(Color .SlateGray)
gph = CreateArea(gph, pn2, Brushes.Gray, New Point(5, 5), New Size(785,
25))
gph = DrawText(gph, fn10, Brushes.DarkSla teGray, "Design and programming ©
2007", New Point(15, 5), New Size(645, 10), "left")
gph = DrawText(gph, fn10, Brushes.DarkSla teGray, "Quotes from
http://www.quotegarden .com/", New Point(15, 18), New Size(645, 10), "left")
bm.Save(Request .PhysicalApplic ationPath + "\sessionda ta\" +
Session("user") + "_CopyrightView .png", Imaging.ImageFo rmat.Png)
Dim yy As Integer
yy = 600 + top
imCopyright.Sty le("top") = yy.ToString + "px"
imCopyright.Sty le("Left") = "0px"
imCopyright.Sty le("Position") = "Absolute"
imCopyright.Ima geUrl = "~\sessiondata\ " + Session("user") +
"_CopyrightView .png?" + Trim(Str((Rando mNumber())))
imCopyright.Vis ible = True
Me.Controls.Add (imCopyright)
The first few times it works fine, but after a while going to the menu's
testing stuff, a lot of times the images aren't shown.
I just get the little pictogram usualy seen when the image is being loaded.
Doing a reload of the page via the reload button of IE, the page is shown
complete, but even then somtimes I have to reload it a few times.
How is this happening? Is my application going to fast for the browser?
Is this just a very bad approach? I hope not, spend quite a few hours on the
website now.
Can anyone please help me?
rg,
Eric 0 906 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jef Driesen |
last post by:
I'm implementing some image processing algorithms in C++. I created a
class called 'image' (see declaration below), that will take care of the
memory allocations and some basic (mathematical) stuff. The class will
behave like a std::vector (copy constructor and assignment create a deep
copy), but with 2D indexing.
Now I also need a 'view' class that will behave like a reference to an
'image' (can only be constructed from an existing...
|
by: bissatch |
last post by:
Hi,
I am trying to write script that is run when a form is submitted. The
form contains an image input field and when submitted, the image is
uploaded, resized and added as binary information to a db table. Please
note, I am using a PostgreSQL database
I have written all the code out below that deals with the submission
processing:
|
by: Greg Heilers |
last post by:
Hello everyone...
If one has a <div> that is completely filled with a
background-image; how does one style it so that the
image *continues* to fill the <div> top-to-bottom,
left-to-right; if the viewer adjusts the font-size
on his browser? I have everything sized in em's,
so that the actual <div> "box" resizes along with the
text, but the background-image will not resize if the
text is "zoomed". I can not find anything pertaining
|
by: karthikeyan |
last post by:
Hi,
I am having some problems hosting my website. Everything works fine in
my local machine but when I upload to propduction server, my images
won't load properly. I have my state configuration like
this in my web.config:
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
|
by: lgbjr |
last post by:
Hello All,
I¡¯m using a context menu associated with some pictureboxes to provide
copy/paste functionality. Copying the image to the clipboard was easy. But
pasting an image from the clipboard is proving to be more difficult. These
pictureboxes are bound to an AccessDB. If the user wants to add an image,
they select an image using an OpenFileDialog:
Dim result As DialogResult = Pic_Sel.ShowDialog()
If (result = DialogResult.OK) Then
| |
by: David |
last post by:
Hello all. I am trying to implement my first server control and have
run into two problems that I cannot solve. I need the assistance of
someone with more experience.
My goal was to create an input button that would allow for both text
and an image on it. I am attempting to accomplish this by basing off
of the asp:button control. I added a property for the image url and
one to determine if the image is displayed on the left or right...
|
by: OptimalDesigns |
last post by:
I'm trying to convert my website onto my CD drive (F:). Images are
giving me problems due to lack of knowledge for sure. My image url
looks like this ... file:///f:/ws_ftp/ode-cd/scripts/imagewrap.img?
picture.image.url=file:///f:/ws_ftp/ode-cd/image/corp-
entire_refinery.gif&picture.width.max=50&picture.height.max=0
and it doesn't work; ie. no picture shown on webpage in netscape 8.1.
Is the part 'picture.image.url=file:///f:/ws_ftp/' ......
|
by: tshad |
last post by:
This was posted before but the message got messed up (all NLs were stripped
out for some reason).
I have 2 labels that hold the name of different images on my .aspx page.
<asp:Label ID="Logo" runat="server"/>
<asp:Label ID="CompanyPicture" runat="server"/>
I have 2 links that open the windows to preview these images. The previewed
images are done on separate html pages that do nothing but display the
|
by: Chris Beall |
last post by:
See
http://pages.prodigy.net/chris_beall/Demo/photo%20block%20experiments.html
I've ended up with what seems like a rather complex structure for what I
thought would be a somewhat simple problem. Even that complex solution
works well only in FireFox (haven't tested Safari...).
Can anyone come up with a better solution, where 'better' means:
- Works as well as the example above, but is simpler.
OR
|
by: Independent |
last post by:
Python programmers may find the application to decoding an encrypted map
image format known as Memory Map to produce a standard PNG image file
interesting.
Someone obviously very well versed in Python and in the intricacies of image
files has written a routine to decode originally the UK Landranger maps, so
that they can be used with other mapping and GPS programs apart from the
restricted Memory Map viewer.
You can get the details in...
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |