none
How to set alphablend of the mainform RRS feed

  • Question

  • // Transparency3.cpp : main project file.

    #include "stdafx.h"
    #include "Form1.h"

    using namespace Transparency3;

    [STAThreadAttribute]
    int main(array<System::String ^> ^args)
    {
     // Enabling Windows XP visual effects before any controls are created
     Application::EnableVisualStyles();
     Application::SetCompatibleTextRenderingDefault(false);

     // Create the main window and run it
     Application::Run(gcnew Form1());
     return 0;
    }

    //stdafx.cpp

    // stdafx.cpp : source file that includes just the standard includes
    // Transparency3.pch will be the pre-compiled header
    // stdafx.obj will contain the pre-compiled type information

    #include "stdafx.h"

    //stdafx.h

    // stdafx.h : include file for standard system include files,
    // or project specific include files that are used frequently, but
    // are changed infrequently
    #pragma once

    // TODO: reference additional headers your program requires here

    //resource.h

    //{{NO_DEPENDENCIES}}
    // Microsoft Visual C++ generated include file.
    // Used by app.rc

    //app.rc

    // Microsoft Visual C++ generated resource script.
    //
    #include "resource.h"

    #define APSTUDIO_READONLY_SYMBOLS

    /////////////////////////////////////////////////////////////////////////////
    #undef APSTUDIO_READONLY_SYMBOLS

    /////////////////////////////////////////////////////////////////////////////
    // English (U.S.) resources


    /////////////////////////////////////////////////////////////////////////////
    //
    // Icon
    //

    // Icon placed first or with lowest ID value becomes application icon

    LANGUAGE 34, 1
    #pragma code_page(1251)
    1           ICON         "app.ico"

    #ifdef APSTUDIO_INVOKED
    /////////////////////////////////////////////////////////////////////////////
    //
    // TEXTINCLUDE
    //

    1 TEXTINCLUDE 
    BEGIN
        "resource.h\0"
        "\0"
    END

    2 TEXTINCLUDE 
    BEGIN
        "#include ""afxres.h""\r\n"
        "\0"
    END

    3 TEXTINCLUDE 
    BEGIN
        "\0"
    END

    #endif    // APSTUDIO_INVOKED

    /////////////////////////////////////////////////////////////////////////////

    #ifndef APSTUDIO_INVOKED
    /////////////////////////////////////////////////////////////////////////////
    //
    // Generated from the TEXTINCLUDE 3 resource.
    //


    /////////////////////////////////////////////////////////////////////////////
    #endif    // not APSTUDIO_INVOKED

    //app.ico

    //Form1.resx

    <?xml version="1.0" encoding="utf-8"?>
    <root>
      <!--
        Microsoft ResX Schema
       
        Version 2.0
       
        The primary goals of this format is to allow a simple XML format
        that is mostly human readable. The generation and parsing of the
        various data types are done through the TypeConverter classes
        associated with the data types.
       
        Example:
       
        ... ado.net/XML headers & schema ...
        <resheader name="resmimetype">text/microsoft-resx</resheader>
        <resheader name="version">2.0</resheader>
        <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
        <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
        <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
        <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
        <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
            <value>[base64 mime encoded serialized .NET Framework object]</value>
        </data>
        <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
            <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
            <comment>This is a comment</comment>
        </data>
                   
        There are any number of "resheader" rows that contain simple
        name/value pairs.
       
        Each data row contains a name, and value. The row also contains a
        type or mimetype. Type corresponds to a .NET class that support
        text/value conversion through the TypeConverter architecture.
        Classes that don't support this are serialized and stored with the
        mimetype set.
       
        The mimetype is used for serialized objects, and tells the
        ResXResourceReader how to depersist the object. This is currently not
        extensible. For a given mimetype the value must be set accordingly:
       
        Note - application/x-microsoft.net.object.binary.base64 is the format
        that the ResXResourceWriter will generate, however the reader can
        read any of the formats listed below.
       
        mimetype: application/x-microsoft.net.object.binary.base64
        value   : The object must be serialized with
                : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
                : and then encoded with base64 encoding.
       
        mimetype: application/x-microsoft.net.object.soap.base64
        value   : The object must be serialized with
                : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
                : and then encoded with base64 encoding.

        mimetype: application/x-microsoft.net.object.bytearray.base64
        value   : The object must be serialized into a byte array
                : using a System.ComponentModel.TypeConverter
                : and then encoded with base64 encoding.
        -->
      <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
        <xsd:element name="root" msdata:IsDataSet="true">
          <xsd:complexType>
            <xsd:choice maxOccurs="unbounded">
              <xsd:element name="metadata">
                <xsd:complexType>
                  <xsd:sequence>
                    <xsd:element name="value" type="xsd:string" minOccurs="0" />
                  </xsd:sequence>
                  <xsd:attribute name="name" use="required" type="xsd:string" />
                  <xsd:attribute name="type" type="xsd:string" />
                  <xsd:attribute name="mimetype" type="xsd:string" />
                  <xsd:attribute ref="xml:space" />
                </xsd:complexType>
              </xsd:element>
              <xsd:element name="assembly">
                <xsd:complexType>
                  <xsd:attribute name="alias" type="xsd:string" />
                  <xsd:attribute name="name" type="xsd:string" />
                </xsd:complexType>
              </xsd:element>
              <xsd:element name="data">
                <xsd:complexType>
                  <xsd:sequence>
                    <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
                    <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
                  </xsd:sequence>
                  <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
                  <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
                  <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
                  <xsd:attribute ref="xml:space" />
                </xsd:complexType>
              </xsd:element>
              <xsd:element name="resheader">
                <xsd:complexType>
                  <xsd:sequence>
                    <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
                  </xsd:sequence>
                  <xsd:attribute name="name" type="xsd:string" use="required" />
                </xsd:complexType>
              </xsd:element>
            </xsd:choice>
          </xsd:complexType>
        </xsd:element>
      </xsd:schema>
      <resheader name="resmimetype">
        <value>text/microsoft-resx</value>
      </resheader>
      <resheader name="version">
        <value>2.0</value>
      </resheader>
      <resheader name="reader">
        <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
      </resheader>
      <resheader name="writer">
        <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
      </resheader>
    </root>

    //Form1.h

    #pragma once


    namespace Transparency3 {

     using namespace System;
     using namespace System::ComponentModel;
     using namespace System::Collections;
     using namespace System::Windows::Forms;
     using namespace System::Data;
     using namespace System::Drawing;

     /// <summary>
     /// Summary for Form1
     ///
     /// WARNING: If you change the name of this class, you will need to change the
     ///          'Resource File Name' property for the managed resource compiler tool
     ///          associated with all .resx files this class depends on.  Otherwise,
     ///          the designers will not be able to interact properly with localized
     ///          resources associated with this form.
     /// </summary>
     public ref class Form1 : public System::Windows::Forms::Form
     {
     public:
      Form1(void)
      {
       InitializeComponent();
       //
       //TODO: Add the constructor code here
       //
      }

     protected:
      /// <summary>
      /// Clean up any resources being used.
      /// </summary>
      ~Form1()
      {
       if (components)
       {
        delete components;
       }
      }
     private: System::Windows::Forms::Label^  label1;
     protected:
     private: System::Windows::Forms::Label^  label2;
     private: System::Windows::Forms::TrackBar^  trackBar1;
     private: System::Windows::Forms::Label^  label3;
     private: System::Windows::Forms::Label^  label4;

     private:
      /// <summary>
      /// Required designer variable.
      /// </summary>
      System::ComponentModel::Container ^components;

    #pragma region Windows Form Designer generated code
      /// <summary>
      /// Required method for Designer support - do not modify
      /// the contents of this method with the code editor.
      /// </summary>
      void InitializeComponent(void)
      {
       this->label1 = (gcnew System::Windows::Forms::Label());
       this->label2 = (gcnew System::Windows::Forms::Label());
       this->trackBar1 = (gcnew System::Windows::Forms::TrackBar());
       this->label3 = (gcnew System::Windows::Forms::Label());
       this->label4 = (gcnew System::Windows::Forms::Label());
       (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->trackBar1))->BeginInit();
       this->SuspendLayout();
       //
       // label1
       //
       this->label1->AutoSize = true;
       this->label1->Location = System::Drawing::Point(31, 53);
       this->label1->Name = L"label1";
       this->label1->Size = System::Drawing::Size(223, 17);
       this->label1->TabIndex = 0;
       this->label1->Text = L"Zomby Image Transparency value";
       //
       // label2
       //
       this->label2->AutoSize = true;
       this->label2->Location = System::Drawing::Point(301, 53);
       this->label2->Name = L"label2";
       this->label2->Size = System::Drawing::Size(32, 17);
       this->label2->TabIndex = 1;
       this->label2->Text = L"255";
       //
       // trackBar1
       //
       this->trackBar1->LargeChange = 1;
       this->trackBar1->Location = System::Drawing::Point(67, 119);
       this->trackBar1->Maximum = 255;
       this->trackBar1->Name = L"trackBar1";
       this->trackBar1->Size = System::Drawing::Size(247, 53);
       this->trackBar1->TabIndex = 1;
       this->trackBar1->Value = 255;
       this->trackBar1->Scroll += gcnew System::EventHandler(this, &Form1::trackBar1_Scroll);
       //
       // label3
       //
       this->label3->AutoSize = true;
       this->label3->Location = System::Drawing::Point(44, 202);
       this->label3->Name = L"label3";
       this->label3->Size = System::Drawing::Size(56, 17);
       this->label3->TabIndex = 2;
       this->label3->Text = L"Opacity";
       //
       // label4
       //
       this->label4->AutoSize = true;
       this->label4->Location = System::Drawing::Point(214, 202);
       this->label4->Name = L"label4";
       this->label4->Size = System::Drawing::Size(46, 17);
       this->label4->TabIndex = 3;
       this->label4->Text = L"label4";
       //
       // Form1
       //
       this->AutoScaleDimensions = System::Drawing::SizeF(8, 16);
       this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
       this->ClientSize = System::Drawing::Size(417, 267);
       this->Controls->Add(this->label4);
       this->Controls->Add(this->label3);
       this->Controls->Add(this->trackBar1);
       this->Controls->Add(this->label2);
       this->Controls->Add(this->label1);
       this->Name = L"Form1";
       this->Text = L"Form1";
       this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
       (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->trackBar1))->EndInit();
       this->ResumeLayout(false);
       this->PerformLayout();

      }

    private:
       void trackBar1_Scroll( Object^ /*sender*/, System::EventArgs^ /*e*/ )
       {

          // Display the trackbar value in the text box.
           this->label2->Text = String::Concat( "", this->trackBar1->Value );
           // Form1->AlphaBlendValue=i;
        double Alpha=this->trackBar1->Value;
        double Opa =( Alpha /255);
           this->label4->Text=String::Concat( "", Opa );
        this->Opacity=Opa ;//   ;

       }

    #pragma endregion
     private: System::Void Form1_Load(System::Object^  sender, System::EventArgs^  e) {

        }
    };
    }

    /**************************************************/

    //AssemblyInfo.cpp

    #include "stdafx.h"

    using namespace System;
    using namespace System::Reflection;
    using namespace System::Runtime::CompilerServices;
    using namespace System::Runtime::InteropServices;
    using namespace System::Security::Permissions;

    //
    // General Information about an assembly is controlled through the following
    // set of attributes. Change these attribute values to modify the information
    // associated with an assembly.
    //
    [assembly:AssemblyTitleAttribute("Transparency3")];
    [assembly:AssemblyDescriptionAttribute("")];
    [assembly:AssemblyConfigurationAttribute("")];
    [assembly:AssemblyCompanyAttribute("Microsoft")];
    [assembly:AssemblyProductAttribute("Transparency3")];
    [assembly:AssemblyCopyrightAttribute("Copyright (c) Microsoft 2018")];
    [assembly:AssemblyTrademarkAttribute("")];
    [assembly:AssemblyCultureAttribute("")];

    //
    // Version information for an assembly consists of the following four values:
    //
    //      Major Version
    //      Minor Version
    //      Build Number
    //      Revision
    //
    // You can specify all the value or you can default the Revision and Build Numbers
    // by using the '*' as shown below:

    [assembly:AssemblyVersionAttribute("1.0.*")];

    [assembly:ComVisible(false)];

    [assembly:CLSCompliantAttribute(true)];

    [assembly:SecurityPermission(SecurityAction::RequestMinimum, UnmanagedCode = true)];


    • Edited by USERPC01 Friday, February 9, 2018 5:41 PM add modules
    Friday, February 9, 2018 4:14 PM

All replies

  • Progam may be used for  detection videoclass-radiation of spy satellites  (if Zomby Image Transparency value=4...112, how in the zomby-visions , videoclass-radiation of hacker's spy satellites activity is detected,it is dangerous for bridges and people , program is used for comparing zomy pseudo-light from spy satellites(convereted with zomby brain) with brightness of   form    ). Program may be used in the police for describe behavor of satellite hackers .

    "Zomby Value" of fantome  pseudo-light   L   (numerically in this program  =     (double) Alpha=this->trackBar1->Value;  )   was  65-115, when videostream (or logical  videoclass of radiation ) of spy satellites radiation was  detected ,  may be   /=0.9...2.6 or *=1.2 using residual  memory properties ( psychical h(t) of memory, weight function and residual variation of mapping ("отображения") of zomby aesthesia of zomby radiation of spy satellites  )  and affect statement of the somby,with psychical extrapolation and get_weightfunct_mid_peak_value()  of the  image  (L*=0.8...1.2,   L<120) .


    "Transparency value" as Alphablend value was used in this  edition of program  for detecting spy in the room  using invese  audoistream( inverse logical audioclass of the radiation of spy satellites).
    • Edited by USERPC01 Friday, February 9, 2018 7:12 PM add information
    Friday, February 9, 2018 4:25 PM
  • //Text of Form1.h for Visual studio Express 2005 /2017  , Windows Forms Application, C++ .net  (without data for zomby detection )

    #pragma once


    namespace Transparency3 {

     using namespace System;
     using namespace System::ComponentModel;
     using namespace System::Collections;
     using namespace System::Windows::Forms;
     using namespace System::Data;
     using namespace System::Drawing;

     /// <summary>
     /// Summary for Form1
     ///
     /// WARNING: If you change the name of this class, you will need to change the
     ///          'Resource File Name' property for the managed resource compiler tool
     ///          associated with all .resx files this class depends on.  Otherwise,
     ///          the designers will not be able to interact properly with localized
     ///          resources associated with this form.
     /// </summary>
     public ref class Form1 : public System::Windows::Forms::Form
     {
     public:
      Form1(void)
      {
       InitializeComponent();
       //
       //TODO: Add the constructor code here
       //
      }

     protected:
      /// <summary>
      /// Clean up any resources being used.
      /// </summary>
      ~Form1()
      {
       if (components)
       {
        delete components;
       }
      }
     private: System::Windows::Forms::Label^  label1;
     protected:
     private: System::Windows::Forms::Label^  label2;
     private: System::Windows::Forms::TrackBar^  trackBar1;
     private: System::Windows::Forms::Label^  label3;
     private: System::Windows::Forms::Label^  label4;

     private:
      /// <summary>
      /// Required designer variable.
      /// </summary>
      System::ComponentModel::Container ^components;

    #pragma region Windows Form Designer generated code
      /// <summary>
      /// Required method for Designer support - do not modify
      /// the contents of this method with the code editor.
      /// </summary>
      void InitializeComponent(void)
      {
       this->label1 = (gcnew System::Windows::Forms::Label());
       this->label2 = (gcnew System::Windows::Forms::Label());
       this->trackBar1 = (gcnew System::Windows::Forms::TrackBar());
       this->label3 = (gcnew System::Windows::Forms::Label());
       this->label4 = (gcnew System::Windows::Forms::Label());
       (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->trackBar1))->BeginInit();
       this->SuspendLayout();
       //
       // label1
       //
       this->label1->AutoSize = true;
       this->label1->Location = System::Drawing::Point(31, 53);
       this->label1->Name = L"label1";
       this->label1->Size = System::Drawing::Size(223, 17);
       this->label1->TabIndex = 0;
       this->label1->Text = L" Alphablend value";
       //
       // label2
       //
       this->label2->AutoSize = true;
       this->label2->Location = System::Drawing::Point(301, 53);
       this->label2->Name = L"label2";
       this->label2->Size = System::Drawing::Size(32, 17);
       this->label2->TabIndex = 1;
       this->label2->Text = L"255";
       //
       // trackBar1
       //
       this->trackBar1->LargeChange = 1;
       this->trackBar1->Location = System::Drawing::Point(67, 119);
       this->trackBar1->Maximum = 255;
       this->trackBar1->Name = L"trackBar1";
       this->trackBar1->Size = System::Drawing::Size(247, 53);
       this->trackBar1->TabIndex = 1;
       this->trackBar1->Value = 255;
       this->trackBar1->Scroll += gcnew System::EventHandler(this, &Form1::trackBar1_Scroll);
       //
       // label3
       //
       this->label3->AutoSize = true;
       this->label3->Location = System::Drawing::Point(44, 202);
       this->label3->Name = L"label3";
       this->label3->Size = System::Drawing::Size(56, 17);
       this->label3->TabIndex = 2;
       this->label3->Text = L"Opacity";
       //
       // label4
       //
       this->label4->AutoSize = true;
       this->label4->Location = System::Drawing::Point(214, 202);
       this->label4->Name = L"label4";
       this->label4->Size = System::Drawing::Size(46, 17);
       this->label4->TabIndex = 3;
       this->label4->Text = L"label4";
       //
       // Form1
       //
       this->AutoScaleDimensions = System::Drawing::SizeF(8, 16);
       this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
       this->ClientSize = System::Drawing::Size(417, 267);
       this->Controls->Add(this->label4);
       this->Controls->Add(this->label3);
       this->Controls->Add(this->trackBar1);
       this->Controls->Add(this->label2);
       this->Controls->Add(this->label1);
       this->Name = L"Form1";
       this->Text = L"Form1";
       this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
       (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->trackBar1))->EndInit();
       this->ResumeLayout(false);
       this->PerformLayout();

      }

    Friday, February 9, 2018 4:29 PM