Hi,
I have an app with a whole bunch of buttons, and each of these buttons
have their own bitmap file.
I would like to just have one giant bitmap, which contains all the
images i'll ever want to use.
ie:
this.ALL_BITMAPS = new Bitmap(GetType(),"Bitmaps.AllBitmaps.bmp");
and then have something like this:
this.ButtonBitmap = new Bitmap(this.ALL_BITMAPS, a location in
ALL_BITMAPS, size...)
something similar to good ol' BitBlt function.
-alex- 2 2223
Hello,
The source code in the example in the following link might help you http://www.csharphelp.com/archives2/archive393.html
Hope this would help
--
Rami Saad
Microsoft GTSC Developer support for Middle East
"Alex Gray" <gr*****@netscape.net> wrote in message
news:50**************************@posting.google.c om... Hi,
I have an app with a whole bunch of buttons, and each of these buttons have their own bitmap file.
I would like to just have one giant bitmap, which contains all the images i'll ever want to use.
ie: this.ALL_BITMAPS = new Bitmap(GetType(),"Bitmaps.AllBitmaps.bmp");
and then have something like this:
this.ButtonBitmap = new Bitmap(this.ALL_BITMAPS, a location in ALL_BITMAPS, size...)
something similar to good ol' BitBlt function. -alex-
Right after i posted this message, i found the solution in another message.
The solution is to use Clone(). gr*****@netscape.net (Alex Gray) wrote in message news:<50**************************@posting.google. com>... Hi,
I have an app with a whole bunch of buttons, and each of these buttons have their own bitmap file.
I would like to just have one giant bitmap, which contains all the images i'll ever want to use.
ie: this.ALL_BITMAPS = new Bitmap(GetType(),"Bitmaps.AllBitmaps.bmp");
and then have something like this:
this.ButtonBitmap = new Bitmap(this.ALL_BITMAPS, a location in ALL_BITMAPS, size...)
something similar to good ol' BitBlt function. -alex- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Steve Amey |
last post by:
Hi all
I have an ARGB value for a Colour (Eg. -65536. The value was retrieved by
using the Color.ToArgb method), is there any way that I can create a
System.Drawing.Image or a...
|
by: deko |
last post by:
I have a table that contains a bunch of pictures. When the user selects a
particular image in a form, I need a way to extract the selected bitmap
image (stored in an OLE Object table field) to the...
|
by: Anand Ganesh |
last post by:
HI All,
I have an Image. I want to clip a portion of it and copy to another image.
How to do this? I know the bounding rectangle to clip.
Any suggestions please.
Thanks for your time and...
|
by: Alex Gray |
last post by:
Hi,
I have an app with a whole bunch of buttons, and each of these buttons
have their own bitmap file.
I would like to just have one giant bitmap, which contains all the
images i'll ever want...
|
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...
|
by: Mad Scientist Jr |
last post by:
I have a bitmap (32 pixels high, 8192 pixels wide) that contains 255
images, each 32 pixels wide, that I would like to chop up into
individual 32x32 bitmap files. Rather than spending hours in...
|
by: rs |
last post by:
I have a table with a timestamp field which contains the date and time. ie.
9/13/2004 9:10:00 AM.
I would like to split this field into 2 fields, one with just the DATE
portion ie 9/13/2004
and...
|
by: Analizer1 |
last post by:
Below I can Draw a portion of a Bitmap to a control
what i would like to do is Save the Portion of a Bitmap
strip to a new bitmap 32x32
Can anybody help with this
Thanks
private void...
|
by: VC |
last post by:
Hi
I'd like to display an imagem in a picture box, but just a portion of
it
Example (please ignore the dots, I use them to keep the alignment)
...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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...
|
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,...
|
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...
|
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,...
|
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...
| | |