Hi,
i try to create a bitmap with transparent regions, but it does not work.
the transparent region turns out to be black.
anybody some ideas??
Dim bmap As Bitmap(100,100, Imaging.PixelFo rmat.Format32bp pPArgb)
Dim g As Graphics = Graphics.FromIm age(bmap)
g.Clear(Color.T ransparent)
g.DrawRectangle (New Pen(Color.Blue, 10), New Rectangle(10, 10, 80,80))
g.dispose
'do something with the bitmap.... 2 2075
Hi,
Dim bm As New Bitmap(100, 100)
Dim g As Graphics = Graphics.FromIm age(bm)
g.FillRectangle (Brushes.Blue, 0, 0, 100, 100)
g.FillRectangle (Brushes.Green, 10, 10, 10, 10)
g.FillEllipse(B rushes.Green, 50, 50, 20, 20)
bm.MakeTranspar ent(Color.Green )
g.Dispose()
Ken
-----------------------------
"Willie jan" <un*****@unkown .com> wrote in message
news:41******** *************** @news.euronet.n l...
Hi,
i try to create a bitmap with transparent regions, but it does not work.
the transparent region turns out to be black.
anybody some ideas??
Dim bmap As Bitmap(100,100, Imaging.PixelFo rmat.Format32bp pPArgb)
Dim g As Graphics = Graphics.FromIm age(bmap)
g.Clear(Color.T ransparent)
g.DrawRectangle (New Pen(Color.Blue, 10), New Rectangle(10, 10, 80,80))
g.dispose
'do something with the bitmap....
thanks.
"Ken Tucker [MVP]" <vb***@bellsout h.net> schreef in bericht
news:uP******** ******@TK2MSFTN GP14.phx.gbl... Hi,
Dim bm As New Bitmap(100, 100) Dim g As Graphics = Graphics.FromIm age(bm)
g.FillRectangle (Brushes.Blue, 0, 0, 100, 100)
g.FillRectangle (Brushes.Green, 10, 10, 10, 10)
g.FillEllipse(B rushes.Green, 50, 50, 20, 20)
bm.MakeTranspar ent(Color.Green )
g.Dispose() Ken
-----------------------------
"Willie jan" <un*****@unkown .com> wrote in message news:41******** *************** @news.euronet.n l... Hi,
i try to create a bitmap with transparent regions, but it does not work. the transparent region turns out to be black. anybody some ideas??
Dim bmap As Bitmap(100,100, Imaging.PixelFo rmat.Format32bp pPArgb) Dim g As Graphics = Graphics.FromIm age(bmap) g.Clear(Color.T ransparent) g.DrawRectangle (New Pen(Color.Blue, 10), New Rectangle(10, 10, 80,80)) g.dispose
'do something with the bitmap.... This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: André Borchert |
last post by:
Hello,
how do you select a region (area = x1,y1,x2,y2) of a bitmap and cut or copy
this selection into a new bitmap ?
The original could be a Bitmap object or a Image/PictureBox object.
However, the selected area has to be a new image as I make some Pixel
calculations with the selected area only, while the original image keeps
untouched.
Regards,
|
by: James Dean |
last post by:
Question 1:I have my full image and i only display that when the zoom
rate is 1:1......i guess i will set my default display to 1:16.....is it
okay to just return a thumbnail of the entire image for all the zooms
down from 1:1......As well when i zoom down further do i have to convert
to 16bpp for display puposes. The user is allowed to edit the bitmap at
each zoom. Can you edit a thumbnail?.
Question 2:Also if i rotate a bitmap does the...
|
by: Anonieko Ramos |
last post by:
> I have a graphics images that I want to convert to
> ASCII art. How do I do it?
>
Code:
- Default.aspx.cs
|
by: Hrvoje Voda |
last post by:
What is wrong with this code ?
I get message "Attachment.bmp".
Bitmap bm = Bitmap.FromFile(@"..\..\Attachment.bmp") as Bitmap;
//use the color from 0,0 as tranparent
|
by: Balu Ramachandran |
last post by:
How can I create the Thumbnail view from the form?
In the following approach I tried but Iams facing some limitations to get
the thumbnail image of the form alone.
Plaese any one can help in this regard. It is a serious problem for me.
Thanks!
Approach - I - Bitmap (screen capture method)
=============================================
Can able to create the thumbnail image using Bitmap and BitBlt.
| |
by: news |
last post by:
Hi Guys,
Sorry if this is an obvious question but Im trying to rotate a bitmap and
then save it. So far Ive only found how to rotates a Graphic but I can't
find how to save it. I also want to crop the image and resize it, but I
assume thats straight foward and for the code below Ive set the resize to
0.5 the original size and left the crop out.
This is what Ive got so far :-
|
by: Richard Skopal |
last post by:
In .NET Windows forms I can create a metafile using this code:
Graphics grph = aControl.CreateGraphics();
IntPtr ipHDC = grph.GetHdc();
Metafile mf = new Metafile(aImgFilePath, ipHDC, EmfType.EmfOnly);
grph.ReleaseHdc(ipHDC);
grph.Dispose();
grph = Graphics.FromImage(mf);
grph.DrawRectangle(aPen, 10, 10, 100, 120);
grph.Dispose();
|
by: Peter Proost |
last post by:
Hi group I have the following piece of code that should resize the bitmap in
a picture box but it doesn't work as I tought it would. Can someone help me
with it?
thnx Peter
Public Class Form1
Inherits System.Windows.Forms.Form
|
by: VBTricks.de.vu Webmaster |
last post by:
Hello,
I have an bitmap in a resources file containing all icons displayed in
the toolbar. To display the icons I need to cut them out of the bitmap
and add them to an imagelist. The problem is the cutting out. I wrote
the following function:
Public Shared Function CutOutIcon(ByRef vBitmap As Image, _
ByVal iIndex As Integer) As Image
|
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: 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: 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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |