I want to draw images. So, I do :
myPanel.Invalid ate(new Rectangle(state .getEndX(), state.getEndY() ,
state.getSize() , state.getSize() ));
Then :
public override void repaint(object sender,
System.Windows. Forms.PaintEven tArgs e, int x, int y)
{
e.Graphics.Draw Image(newImage, new Rectangle(x, y, size, size), 0, 0, size,
size, GraphicsUnit.Pi xel, imageAttr);
}
But, I use an imageAttr, in order to hide certain colors. But, if I draw one
image on another, the news one is erasing everything under it. So, instead
having my colorkey around my image, I have the color of the panel.
Any idea ? 0 1115 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Raja |
last post by:
Dear Members,
Has anyone used the Vector Draw (www.vdraw.com) Component in Visual
Basic. I need to create an application to be able to draw the plan
view of a building. Any help in this regard would be highly
appreciated.
Best Regards
RSB
|
by: Florida Draw |
last post by:
------=_NextPart_000_0012_1D5428A2.65C196F8
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
Sign-up for the FREE Holiday Giveaway Draw
You must register to be eligible for the draw.
Fill out this form to register and you may be eligible for our monthly
draw.
|
by: luc wastiaux |
last post by:
Hello,
my boss is looking for a tool that would enable her to draw web interfaces
easily, like visio does for other types of diagrams. What she wants
this for is , I assume, to give me an exact sketch of what she wants me to
develop.
thanks for any suggestions.
--
luc wastiaux - dustpuppy@airpost.net
|
by: DraguVaso |
last post by:
Hi,
I have an inherited DataGrid, that does lots of extra stuff. For exemple
drawing a backgroundimage in every cell. The problem is that it's taking too
much time (using gdi+), so I want to do it using DirectX. I downloaded
already the DSK etc, but I can't find how I need to draw an image on a given
position. I don't need stuff to write advanced 3D-games, just painting that
image. Can anybody help me with this? I'm already looking for...
|
by: felix |
last post by:
Hi,
I have an Image that is drawn with Graphics.DrawImage(..). What I want
to do is drawing it with a given transparency, e.g. at an alpha of only
180 instead of 255.
How am I doing that?!?!?
Regards,
Felix
| |
by: Jheitmuller |
last post by:
Hi, I would like to convert a VB.NET application from being a Windows
app to an ASP.NET app. I'm new to web development, so this may be a
simple question. Is it possible to render simple drawing commands in
an ASP.NET application? Something line draw a line point to point, or
draw a circle at this point. If so, can somebody point me toward the
library or technique to use? I can figure it out if I can get pointed
in the right...
|
by: mrajanikrishna |
last post by:
Hello friends,
I have developed an application using ASP.NET and SQL Server.
Ours is a garment factory. I need to design another module in my
application.
I want to generate images on fly based on users selection(body, sleeve
etc).
Until here no problem. Coz we have only 2 types of bodies and 3 types
of sleeves and 3 types of necks. I can design static images and save in
|
by: HxRLxY |
last post by:
I am trying to write a simple program which will allow users to view pictures. I am loading an image as an icon, then assigning that ImageIcon to an Image object. Then i get the graphics context of my panel. Finally I am trying to use the drawImage method to draw the Image object to the panel. However I keep getting a nullpointerexception when I run the program. I think it has something to do with the drawImage statement I use but I don't...
|
by: martinsmith160 |
last post by:
Hi all
I am trying to create a level builder tool for a final year project and im having some problems drawing. I have placed a picture box within a panel so i can scroll around the image which is working fine. My aim is to double click the picture box and the desired image will be drawn at the mouse position. This works fine unless I scroll or minimise the form because the image isnt repainted after movement. I looked up drawing the image to...
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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: 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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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: 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: 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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |