Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Delphi Zwei Bitmaps zusammenfügen (https://www.delphipraxis.net/50527-zwei-bitmaps-zusammenfuegen.html)

Alois 27. Jul 2005 09:55


Zwei Bitmaps zusammenfügen
 
Ich möchte gerne zwei Bitmaps zu einem zusammenfassen (Darstellung nebeneinander) und sie dann als
bitBtn Grafik einfügen. Gibt's da ein Tool?

Gruss Alois ;)

barf00s 27. Jul 2005 09:56

Re: Zwei Bitmaps zusammenfügen
 
BitBlt()
Bitmap.Canvas.CopyRect()

Zacherl 27. Jul 2005 10:49

Re: Zwei Bitmaps zusammenfügen
 
@barf00s:
Ich glaube er sucht ein fertiges Programm, das diese Aufgabe erledigt!

Florian

barf00s 27. Jul 2005 10:51

Re: Zwei Bitmaps zusammenfügen
 
dann schreib DU es ihm doch - wir sind ja hier nich bei rent-a-coder?

Zacherl 27. Jul 2005 11:32

Re: Zwei Bitmaps zusammenfügen
 
Ich hab leider kein Delphi hier!
Mal so aus dem Kopf:
Delphi-Quellcode:
  image3.picture.assign(image1.picture.bitmap);
  Image3.Picture.Bitmap.Width := Image3.Picture.Bitmap.Width + image1.picture.bitmap.width;
  image3.picture.Bitmap.Canvas.CopyRect(rect(image1.Picture.width, 0, image2.picture.Width + 
  image1.picture.width, image2.picture.height), image2.picture.bitmap.Canvas, rect(0, 0,  
  image2.picture.width, image2.picture.Height));
Die Einzelbilder müssen in Image1 und Image2 geladen werden. Das fertige Bild ist dann in Image3!

Florian

barf00s 27. Jul 2005 11:41

Re: Zwei Bitmaps zusammenfügen
 
die jeweiligen TBitmap.Canvas'es haben auch ein "ClipRect" dem man sich bedienen kann ohne solche RIESIGEN verwurstungen von code zu produzieren ;) @vader

Alois 27. Jul 2005 11:43

Re: Zwei Bitmaps zusammenfügen
 
Hey, nicht so grob. Seid lieb zueinander :kiss:

Ich habe inzwischen ein etwas älteres Tool Names "Picto" gefunden dass das für mich erledigt.
Falls bei jemand noch Interesse besteht hier der Link dazu.
http://www.scip.be/ImagesScreenshots...Picto01_EN.jpg
Features:
  • Nice and user-friendly interface.
  • View all (resource) bitmaps, cursors and icons in BMP, JPG, ICO, ANI, CUR, DLL, EXE, ICL, CPL, BPL, OCX, SCR, RES and DCR-files
  • Properties window with all information about the current file and images (number of images, size, colorpalette, ...) displayed in a treeview.
  • Save images as BMP/JPG (with different colorpalettes and compression).
  • Save images as ICO with 16 or 256 colors (16x16, 32x32, 48x48).
  • Edit images with a range of graphical effects (rotate, mirror, create disabled image, convert to greyscale, contrast and brightness, create bevel, color balance, soften and sharpen, emboss, add shadow, ... ) using a transparent color.
  • The edit window also contains a small painting program to draw lines, rectangles, circles, ...
  • Create a special glyph (=small bitmap for buttons) containing 2,3 or 4 images showing a status of a button (up, disabled, clicked, down). This glyph can be used for TSpeedbutton or TBitBtn components in Delphi or C++ Builder.
  • Add images to a TImageList, change the order and set the properties. Afterwards this TImageList can be pasted in Delphi or C++Builder.
  • Generate HTML pages to catalogue your images with hyperlinks.
  • Resize or crop big bitmaps to the size of an icon.
  • Capture a part of the screen with a fixed size (16x16, 20x20, 32x32, 48x48, ...).
  • Change the background image of the desktop (tile, center, stretch).
  • Change the system icons (my computer, recycle bin, printers, ....)
  • Copy images to the clipboard as a bitmap, TBitBtn, TSpeedButton or TImage.
  • Internal copy, move, delete, rename features for files.
  • A lot of options for viewing images, organizing the interface, links to file paths, copying of Delphi/C++Builder components, links to external editors,
Ich hoffe die Werbung macht den Mod's nicht's aus. :warn:

DP-Maintenance 27. Jul 2005 12:27

DP-Maintenance
 
Dieses Thema wurde von "alcaeus" von "VCL / WinForms / Controls" nach "Multimedia" verschoben.
Das hat eindeutig mehr mit Multimedia zu tun als mit der VCL ;)


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:18 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz