Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

bitmap bands

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Analizer1 - 11 Mar 2008 16:25 GMT
Hello, I have a BitMap band i created
32x31, 24x24 and 16x16

how can i extract the portion (single bitmap pict) that i want to use

thanks
Peter Duniho - 11 Mar 2008 18:15 GMT
> Hello, I have a BitMap band i created
> 32x31, 24x24 and 16x16
>
> how can i extract the portion (single bitmap pict) that i want to use

What's a "BitMap band".  What exactly are you trying to do?  What are the  
actual .NET types of the input data and what do you want as your output  
data?
Analizer1 - 11 Mar 2008 18:30 GMT
Back in Win32 a Band is 1 to many bitmaps as a Single File with many blocks
Representing Bitmaps
as picts to use on tool bars , Instead of having Single files
or embedded bmps in the dll
ive created 3 bands and would like to use them under net
there sizes are 32x32, 16x16,24x24
so the single File will be rectangle in shape with a bunch of pictures next
to one another.

How to Seperate the Individual pictures under .Net I dont know how

I'll keep researching
thanks

>> Hello, I have a BitMap band i created
>> 32x31, 24x24 and 16x16
[quoted text clipped - 4 lines]
> actual .NET types of the input data and what do you want as your output
> data?
Peter Duniho - 11 Mar 2008 19:03 GMT
> Back in Win32 a Band is 1 to many bitmaps as a Single File with many  
> blocks
> Representing Bitmaps as picts to use on tool bars ,

I am not completely ignorant of unmanaged Win32 programming techniques.  
And yet, while I've seen (and used) "image strips" in which a bitmap is  
divided into some number of equal-sized portions, I've never heard of  
someone mixing different-sized images within the same strip.  It sounds  
wasteful to me.

I've also never heard of someone calling an individual image within an  
image strip a "band", thus the questions about what you're actually doing.

> Instead of having Single files or embedded bmps in the dll
> ive created 3 bands and would like to use them under net
[quoted text clipped - 4 lines]
>
> How to Seperate the Individual pictures under .Net I dont know how

In unmanaged code, you would generally use Blt() or StretchBlt() to copy a  
subset of the bitmap as needed.

Likewise, in .NET, you can use one of the Graphics.DrawImage() overloads  
that allows you to indicate what subset of the image you want to draw.

Pete
Analizer1 - 12 Mar 2008 21:18 GMT
They are not Different Sized Images

3 Different files Ranging from 32x32, 24x24 and 16x16

>> Back in Win32 a Band is 1 to many bitmaps as a Single File with many
>> blocks
[quoted text clipped - 25 lines]
>
> Pete
Analizer1 - 12 Mar 2008 21:20 GMT
thank you peter
I will dive more into System.Drawing

much appriciated

>> Back in Win32 a Band is 1 to many bitmaps as a Single File with many
>> blocks
[quoted text clipped - 25 lines]
>
> Pete

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.