{"id":283,"date":"2022-03-01T22:08:28","date_gmt":"2022-03-01T21:08:28","guid":{"rendered":"http:\/\/graphics32\/?page_id=283"},"modified":"2022-03-02T00:00:45","modified_gmt":"2022-03-01T23:00:45","slug":"bitmap-image","status":"publish","type":"page","link":"https:\/\/melander.dk\/graphics32\/using-timage32\/bitmap-image\/","title":{"rendered":"Bitmap Image"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Internally a TImage32 represents the bitmap image with a <a href=\"https:\/\/graphics32.github.io\/Docs\/Units\/GR32\/Classes\/TBitmap32\/_Body.htm\">TBitmap32<\/a> object. This bitmap is surfaced by the <a href=\"https:\/\/graphics32.github.io\/Docs\/Units\/GR32_Image\/Classes\/TCustomImage32\/Properties\/Bitmap.htm\">Bitmap<\/a> property. The scale and location of the bitmap within the control is determined by the following properties:<\/p>\n\n\n\n<table class=\"wp-block-advgb-table advgb-table-frontend\"><tbody><tr><td style=\"vertical-align:top;text-align:left;border-style:none\"><a href=\"https:\/\/graphics32.github.io\/Docs\/Units\/GR32_Image\/Classes\/TCustomImage32\/Properties\/BitmapAlign.htm\">BitmapAlign<\/a><\/td><td style=\"vertical-align:top;text-align:left;border-style:none\">Specifies if the bitmap image is positioned at the top-left corner of the control (baTopLeft), centered (baCenter), tiled (baTile) or it its exact location is determined by <a href=\"https:\/\/graphics32.github.io\/Docs\/Units\/GR32_Image\/Classes\/TCustomImage32\/Properties\/OffsetHorz.htm\">OffsetHorz<\/a> and <a href=\"https:\/\/graphics32.github.io\/Docs\/Units\/GR32_Image\/Classes\/TCustomImage32\/Properties\/OffsetVert.htm\">OffsetVert<\/a> properties.<\/td><\/tr><tr><td style=\"vertical-align:top;text-align:left;border-style:none\"><a href=\"https:\/\/graphics32.github.io\/Docs\/Units\/GR32_Image\/Classes\/TCustomImage32\/Properties\/BitmapAlign.htm\">BitmapAlign<\/a><\/td><td style=\"vertical-align:top;text-align:left;border-style:none\">Indicates if the bitmap image is displayed with its original size (smNormal), stretched to fit the control&#8217;s boundaries (smStretch), proportionally resized to fit the control&#8217;s boundaries(smResize) or proportionally scaled using its <a href=\"https:\/\/graphics32.github.io\/Docs\/Units\/GR32_Image\/Classes\/TCustomImage32\/Properties\/Scale.htm\">Scale<\/a> property (smScale).<\/td><\/tr><\/tbody><\/table>\n\n\n\n<div class=\"wp-block-jetpack-layout-grid column1-desktop-grid__span-6 column1-desktop-grid__row-1 column1-tablet-grid__span-8 column1-tablet-grid__row-1 column1-mobile-grid__span-4 column1-mobile-grid__row-1\">\n<div class=\"wp-block-jetpack-layout-grid-column wp-block-jetpack-layout-grid__padding-none\">\n<div class=\"wp-block-group has-background is-layout-flow wp-block-group-is-layout-flow\" style=\"background-color:#545454\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"397\" height=\"301\" src=\"https:\/\/melander.dk\/graphics32\/wp-content\/uploads\/2022\/03\/img_015.gif\" alt=\"\" class=\"wp-image-284\"\/><\/figure>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The bitmap image is combined with the back-buffer according to its <a href=\"https:\/\/graphics32.github.io\/Docs\/Units\/GR32\/Classes\/TCustomBitmap32\/Properties\/DrawMode.htm\">DrawMode<\/a> property. And the quality of its resampling is determined by the <a href=\"https:\/\/graphics32.github.io\/Docs\/Units\/GR32\/Classes\/TCustomBitmap32\/Properties\/StretchFilter.htm\">StretchFilter<\/a> property. If its <a href=\"https:\/\/graphics32.github.io\/Docs\/Units\/GR32\/Classes\/TCustomBitmap32\/Properties\/DrawMode.htm\">DrawMode<\/a> is dmCustom, the bitmap will fire a series of <a href=\"https:\/\/graphics32.github.io\/Docs\/Units\/GR32_Image\/Classes\/TCustomImage32\/Events\/OnPixelCombine.htm\">OnPixelCombine<\/a> events.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Internally a TImage32 represents the bitmap image with a TBitmap32 object. This bitmap is surfaced by the Bitmap property. The scale and location of the bitmap within the control is determined by the following properties: The bitmap image is combined<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":288,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-283","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/melander.dk\/graphics32\/wp-json\/wp\/v2\/pages\/283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/melander.dk\/graphics32\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/melander.dk\/graphics32\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/melander.dk\/graphics32\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/melander.dk\/graphics32\/wp-json\/wp\/v2\/comments?post=283"}],"version-history":[{"count":4,"href":"https:\/\/melander.dk\/graphics32\/wp-json\/wp\/v2\/pages\/283\/revisions"}],"predecessor-version":[{"id":306,"href":"https:\/\/melander.dk\/graphics32\/wp-json\/wp\/v2\/pages\/283\/revisions\/306"}],"up":[{"embeddable":true,"href":"https:\/\/melander.dk\/graphics32\/wp-json\/wp\/v2\/pages\/288"}],"wp:attachment":[{"href":"https:\/\/melander.dk\/graphics32\/wp-json\/wp\/v2\/media?parent=283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}