Re: Copying Format1bppIndexed Images

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Assuming that your source image has a resolution of 204 DPI by 196 DPI,
then use SetResolution to set the new Bitmap's resolution to match the
source.


"Tom Bean" <tbean@xxxxxxxxxxxxxxxx> wrote in message
news:OUWM$iB$FHA.3872@xxxxxxxxxxxxxxxxxxxxxxx
> Michael,
>
> One of the problems with the method you suggested is that the new bitmap
> is created with a HorizontalResolution and VerticalResolution of 96,
> whereas my original image had a HorizontalResolution of 204 and a
> VerticalResolution of 196. If possible, I would like to preserve the
> resolution of the images.
>
> Do you have any suggestions about how I can use this method and keep the
> higher resolution?
>
> Tom
>
> "Michael Phillips, Jr." <mphillips53@xxxxxxxxxxxxxxx> wrote in message
> news:eermB74%23FHA.160@xxxxxxxxxxxxxxxxxxxxxxx
>> Assuming that you are checking to make sure that you
>> have a PixelFormat1bppIndexed image when you
>> call SelectActiveFrame, use Lockbits to obtain the BitmapData
>> and then create a new Bitmap with the constructor
>> Bitmap(int width, int height, int stride, PixelFormat format, IntPtr
>> Scan0)!
>>
>>
>> "Tom Bean" <tbean@xxxxxxxxxxxxxxxx> wrote in message
>> news:OS92Yn3%23FHA.2676@xxxxxxxxxxxxxxxxxxxxxxx
>>> My application breaks multi-page faxes into a collection of images, one
>>> for each page. The faxes are saved by our fax software as multi-frame
>>> TIFFs with a pixel format of Format1bppIndexed.
>>>
>>> While processing the pages, I am creating a new Bitmap of each frame and
>>> found the new Bitmap had a pixel format of Format32bppArgb. As a
>>> consequence of the change from Format1bppIndexed to Format32bppArgb, the
>>> page images are much larger and are causing out of memory errors.
>>>
>>> How can I copy the page image, after calling SelectActiveFrame(), so the
>>> Format1bppIndexed pixel format is preserved?
>>>
>>> Thanks,
>>> Tom
>>>
>>>
>>
>>
>
>


.



Relevant Pages

  • Re: Best export format for commercial print from Publisher
    ... What's the difference between PNG, TIFF, BMP, and JPEG? ... PDF's as a practical matter for most purposes cap out at 1200 dpi, ... resolution imaging for printing presses 2400 is standard. ... PDF is just a container format essentially. ...
    (microsoft.public.publisher)
  • Re: Clipboard reduces the resolution of the copied image
    ... Note that there is no intrinsic dpi property of bitmap files. ... Some file formats have metadata describing the resolution, ... I have an Image being copied over to Clipboard using ... "The information is in a binary format. ...
    (microsoft.public.vc.mfc)
  • Re: 4:3 Resolution: Pixelation Damage on Sides?
    ... However, when high-definition is being utilized, or when I switch to widescreen, I notice that where the screen is black on the sides the pixels are larger, and the resolution is inferior. ... the mid portion of the screen used in the 4:3 format is normal. ... Any fixed screen device (standard TV, big screen or HD) will have the same limitations trying to adjust to different screen formats. ... That's one reason a separate projector and screen is nice. ...
    (sci.electronics.repair)
  • Re: Sony A100 to A700
    ... is that in order to take full advantage of the resolution a ... There are existing lens designs for film cameras in formats ranging from ... designs for any sensor format you can propose. ...
    (rec.photo.digital)
  • Re: Sony A100 to A700
    ... is that in order to take full advantage of the resolution a ... designs for any sensor format you can propose. ... my 10 megapixel APS sensor's images are approaching the ... resolution of medium format film, you are really saying that you are ...
    (rec.photo.digital)